communi / libcommuni

A cross-platform IRC framework for Qt
https://communi.github.io
BSD 3-Clause "New" or "Revised" License
83 stars 37 forks source link

Document different ways to use/bundle #1

Closed jpnurmi closed 11 years ago

jpnurmi commented 11 years ago
jpnurmi commented 11 years ago

building as a static lib, part of a project tree:

├── project.pro
├── communi
│   ├── communi (communi submodule)
│   ├── communi.pri (include to projects)
│   ├── communi.pro 
│   └── lib (DESTDIR)
└── app
    ├── app.pro
    └── main.cpp

project.pro:
    TEMPLATE = subdirs
    SUBDIRS += communi app
    CONFIG += ordered

communi/communi.pro:
    CONFIG += static uchardet
    COMMUNI_BUILDDIR = ..
    include(communi/src/src.pro)

communi/communi.pri:
    COMMUNI_BUILDDIR = ..
    DEFINES += COMMUNI_STATIC
    QT += network
    include(communi/communi.pri)

app/app.pro:
    include(../communi/communi.pri)
jpnurmi commented 11 years ago

https://github.com/communi/libcommuni/wiki/Submodule