X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=build%2Fquassel.pro;h=33c25b2a1e842272448ca060af3f084ae39f7e74;hp=fd36ddac5277a44ff1eabc86e9e2d4e72cea9433;hb=0c9cd0eef379e1d3e10a75cc8506a7e65f95fd67;hpb=d7052a3218b115ab68d24ea33e670ed26afd19ce diff --git a/build/quassel.pro b/build/quassel.pro index fd36ddac..33c25b2a 100644 --- a/build/quassel.pro +++ b/build/quassel.pro @@ -1,8 +1,32 @@ +# This project file can be used to set up a build environment for quassel. +# To build the default configuration (i.e. qtgui, core and monolithic client), +# simply run +# +# > qmake && make +# +# in this directory. In order to select the binaries to build, you may set +# the BUILD variable as follows: +# +# > qmake BUILD= && make +# +# where is a quoted string that may contain any of 'qtgui', 'core', 'mono' or 'all'. +# +# NOTE: To change the build configuration, you have to run 'make distclean' first! + + +# Set project-wide config options + +#CONFIG = qt warn_on release + +TEMPLATE = subdirs + +# Check build configuration isEmpty(BUILD) { - BUILD = all + BUILD = all # build everything by default } + contains(BUILD, all) { - BUILD += qtgui core mono + BUILD += qtclient core mono } contains(BUILD, mono) { @@ -17,14 +41,21 @@ contains(BUILD, core) { BUILD_TARGETS *= core } -TEMPLATE = subdirs +contains(BUILD, qtclient) { + include(targets/qtclient.pri) + BUILD_MODS *= $${MODULES} + BUILD_TARGETS *= qtclient +} + +# First we build contrib stuff... +# SUBDIRS += contrib/libqxt.pro # no deps to libqxt at the moment +# Then we build all needed modules... for(mod, BUILD_MODS) { SUBDIRS += modules/$${mod}.pro } +# ... followed by the binaries. for(target, BUILD_TARGETS) { SUBDIRS += targets/$${target}.pro } - -CONFIG += qt warn_on