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
18 CONFIG += qt debug warn_on
22 # Check build configuration
24 BUILD = all # build everything by default
27 contains(BUILD, all) {
28 BUILD += qtgui core mono
31 contains(BUILD, mono) {
32 include(targets/monolithic.pri)
33 BUILD_MODS *= $${MODULES}
34 BUILD_TARGETS *= monolithic
37 contains(BUILD, core) {
38 include(targets/core.pri)
39 BUILD_MODS *= $${MODULES}
43 contains(BUILD, qtgui) {
44 include(targets/qtgui.pri)
45 BUILD_MODS *= $${MODULES}
46 BUILD_TARGETS *= qtgui
49 # Now, we first build all needed modules...
50 for(mod, BUILD_MODS) {
51 SUBDIRS += modules/$${mod}.pro
54 # ... followed by the binaries.
55 for(target, BUILD_TARGETS) {
56 SUBDIRS += targets/$${target}.pro