diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-10 16:43:28 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-10 16:43:28 +0000 |
| commit | 323ce65bcf5fe2c82d16cf7efd7fa3bb1fe49359 (patch) | |
| tree | 9ced2baf4fdf53e69142be67e2ab35a9e0ca7522 | |
| parent | fe474b8266f3a6bcd47b4d7c77a0502805fa45ed (diff) | |
| download | qxmpp-323ce65bcf5fe2c82d16cf7efd7fa3bb1fe49359.tar.gz | |
move common definitions to qxmpp.pri
| -rw-r--r-- | examples/example.pri | 6 | ||||
| -rw-r--r-- | examples/examples.pro (renamed from examples/example.pro) | 4 | ||||
| -rw-r--r-- | qxmpp.pri | 7 | ||||
| -rw-r--r-- | qxmpp.pro | 4 | ||||
| -rw-r--r-- | source/server/server.pro | 2 | ||||
| -rw-r--r-- | source/source.pro | 8 |
6 files changed, 20 insertions, 11 deletions
diff --git a/examples/example.pri b/examples/example.pri index 0875ca16..70720602 100644 --- a/examples/example.pri +++ b/examples/example.pri @@ -1,16 +1,16 @@ +include(../qxmpp.pri) + TEMPLATE = app INCLUDEPATH += ../../source QT += network xml -CONFIG += console debug_and_release +CONFIG += console CONFIG(debug, debug|release) { - QXMPP_LIB = qxmpp_d QXMPP_DIR = ../../source/debug } else { - QXMPP_LIB = qxmpp QXMPP_DIR = ../../source/release } diff --git a/examples/example.pro b/examples/examples.pro index c19cfde3..999ee029 100644 --- a/examples/example.pro +++ b/examples/examples.pro @@ -1,3 +1,5 @@ +include(../qxmpp.pri) + TEMPLATE = subdirs SUBDIRS = example_0_connected\ @@ -9,5 +11,3 @@ SUBDIRS = example_0_connected\ example_6_rpcClient\ example_7_archiveHandling\ tests - -CONFIG += debug_and_release diff --git a/qxmpp.pri b/qxmpp.pri new file mode 100644 index 00000000..81aff4c8 --- /dev/null +++ b/qxmpp.pri @@ -0,0 +1,7 @@ +CONFIG += debug_and_release + +CONFIG(debug, debug|release) { + QXMPP_LIB = qxmpp_d +} else { + QXMPP_LIB = qxmpp +} @@ -1,6 +1,8 @@ +include(qxmpp.pri) + TEMPLATE = subdirs SUBDIRS = source \ examples -CONFIG += ordered debug_and_release +CONFIG += ordered diff --git a/source/server/server.pro b/source/server/server.pro index 324f07cf..55a06ac5 100644 --- a/source/server/server.pro +++ b/source/server/server.pro @@ -104,4 +104,4 @@ SOURCES += ../QXmppUtils.cpp \ ../QXmppVersionIq.cpp \
../xmlrpc.cpp
-
\ No newline at end of file +
diff --git a/source/source.pro b/source/source.pro index a3bdcada..ecef1683 100644 --- a/source/source.pro +++ b/source/source.pro @@ -1,8 +1,9 @@ +include(../qxmpp.pri) + TEMPLATE = lib QT += network \ xml -CONFIG += staticlib \ - debug_and_release +CONFIG += staticlib # To disable the dependency on QtGui, uncomment the following: # DEFINES += QXMPP_NO_GUI @@ -14,12 +15,11 @@ CONFIG += staticlib \ # regardless of the platform. On win32 the library is # automagically put in debug/release folders, so do the # same for other platforms. +TARGET = $$QXMPP_LIB CONFIG(debug, debug|release) { DESTDIR = debug - TARGET = qxmpp_d } else { DESTDIR = release - TARGET = qxmpp } # Header files |
