1 # This project file can be used to set up a build environment for quassel.
2 # To build the default configuration (i.e. qtgui, core and monolithic client),
7 # in this directory. In order to select the binaries to build, you may set
8 # the BUILD variable as follows:
10 # > qmake BUILD=<mode> && make
12 # where <mode> is a quoted string that may contain any of 'qtgui', 'core', 'mono' or 'all'.
14 # NOTE: To change the build configuration, you have to run 'make distclean' first!
17 # Set project-wide config options
19 #CONFIG = qt warn_on release
23 # Check build configuration
25 BUILD = all # build everything by default
28 contains(BUILD, all) {
29 BUILD += qtclient core mono
32 contains(BUILD, mono) {
33 include(targets/monolithic.pri)
34 BUILD_MODS *= $${MODULES}
35 BUILD_TARGETS *= monolithic
38 contains(BUILD, core) {
39 include(targets/core.pri)
40 BUILD_MODS *= $${MODULES}
44 contains(BUILD, qtclient) {
45 include(targets/qtclient.pri)
46 BUILD_MODS *= $${MODULES}
47 BUILD_TARGETS *= qtclient
50 # First we build contrib stuff...
51 # SUBDIRS += contrib/libqxt.pro # no deps to libqxt at the moment
53 # Then we build all needed modules...
54 for(mod, BUILD_MODS) {
55 SUBDIRS += modules/$${mod}.pro
58 # ... followed by the binaries.
59 for(target, BUILD_TARGETS) {
60 SUBDIRS += targets/$${target}.pro