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 += qtgui 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, qtgui) {
45 include(targets/qtgui.pri)
46 BUILD_MODS *= $${MODULES}
47 BUILD_TARGETS *= qtgui
50 # Now, we first build all needed modules...
51 for(mod, BUILD_MODS) {
52 SUBDIRS += modules/$${mod}.pro
55 # ... followed by the binaries.
56 for(target, BUILD_TARGETS) {
57 SUBDIRS += targets/$${target}.pro