diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-04 12:03:12 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-04 12:03:12 +0000 |
| commit | 3631e217756d13d2761f3c66b63153a2bb7525be (patch) | |
| tree | f5651b628a3958ec3a899c7772fd997f4b93e962 /example | |
| parent | 3541dbcf8ebada61f963f8c8785656f61c40f791 (diff) | |
| download | qxmpp-3631e217756d13d2761f3c66b63153a2bb7525be.tar.gz | |
make all examples use example.pri for common definitions
Diffstat (limited to 'example')
10 files changed, 33 insertions, 100 deletions
diff --git a/example/example.pri b/example/example.pri new file mode 100644 index 00000000..b409c5cf --- /dev/null +++ b/example/example.pri @@ -0,0 +1,13 @@ +TEMPLATE = app + +INCLUDEPATH += ../../source + +QT += network xml + +CONFIG += console debug_and_release + +CONFIG(debug, debug|release) { + LIBS += -L../../source -lQXmppClient_d +} else { + LIBS += -L../../source -lQXmppClient +} diff --git a/example/example_0_connected/example_0_connected.pro b/example/example_0_connected/example_0_connected.pro index ac4d3996..2e38510d 100644 --- a/example/example_0_connected/example_0_connected.pro +++ b/example/example_0_connected/example_0_connected.pro @@ -1,19 +1,7 @@ -TEMPLATE = app +include(../example.pri) TARGET = example_0_connected SOURCES += main.cpp -INCLUDEPATH += ../../source - -QT += network xml - -CONFIG += console debug_and_release - -CONFIG(debug, debug|release) { - LIBS += -L../../source -lQXmppClient_d - } else { - LIBS += -L../../source -lQXmppClient - } - OTHER_FILES += README diff --git a/example/example_1_echoClient/example_1_echoClient.pro b/example/example_1_echoClient/example_1_echoClient.pro index 5b9b8c98..ec5a3f05 100644 --- a/example/example_1_echoClient/example_1_echoClient.pro +++ b/example/example_1_echoClient/example_1_echoClient.pro @@ -1,4 +1,4 @@ -TEMPLATE = app +include(../example.pri) TARGET = example_1_echoClient @@ -7,15 +7,4 @@ SOURCES += main.cpp \ HEADERS += echoClient.h -INCLUDEPATH += ../../source - -QT += network xml -CONFIG += console debug_and_release - -CONFIG(debug, debug|release) { - LIBS += -L../../source -lQXmppClient_d - } else { - LIBS += -L../../source -lQXmppClient - } - OTHER_FILES += README diff --git a/example/example_2_rosterHandling/example_2_rosterHandling.pro b/example/example_2_rosterHandling/example_2_rosterHandling.pro index 58ebdf7b..4e4fe6cf 100644 --- a/example/example_2_rosterHandling/example_2_rosterHandling.pro +++ b/example/example_2_rosterHandling/example_2_rosterHandling.pro @@ -1,4 +1,4 @@ -TEMPLATE = app
+include(../example.pri)
TARGET = example_2_rosterHandling
@@ -7,15 +7,4 @@ SOURCES += main.cpp \ HEADERS += xmppClient.h
-INCLUDEPATH += ../../source
-
-QT += network xml
-CONFIG += console debug_and_release
-
-CONFIG(debug, debug|release) {
- LIBS += -L../../source -lQXmppClient_d
- } else {
- LIBS += -L../../source -lQXmppClient
- }
-
OTHER_FILES += README
diff --git a/example/example_3_ibbTransferSource/example_3_ibbTransfer.pro b/example/example_3_ibbTransferSource/example_3_ibbTransfer.pro deleted file mode 100644 index e69de29b..00000000 --- a/example/example_3_ibbTransferSource/example_3_ibbTransfer.pro +++ /dev/null diff --git a/example/example_3_ibbTransferSource/example_3_ibbTransferSource.pro b/example/example_3_ibbTransferSource/example_3_ibbTransferSource.pro index 6fc65df6..587c8b03 100644 --- a/example/example_3_ibbTransferSource/example_3_ibbTransferSource.pro +++ b/example/example_3_ibbTransferSource/example_3_ibbTransferSource.pro @@ -1,4 +1,4 @@ -TEMPLATE = app
+include(../example.pri)
TARGET = example_3_ibbTransferSource
@@ -6,15 +6,3 @@ SOURCES += main.cpp \ ibbClient.cpp
HEADERS += ibbClient.h
-
-INCLUDEPATH += ../../source
-
-QT += network xml
-
-CONFIG += console debug_and_release
-
-CONFIG(debug, debug|release) {
- LIBS += -L../../source -lQXmppClient_d
- } else {
- LIBS += -L../../source -lQXmppClient
- }
diff --git a/example/example_4_ibbTransferTarget/example_4_ibbTransferTarget.pro b/example/example_4_ibbTransferTarget/example_4_ibbTransferTarget.pro index 50c6b54d..8111fb94 100644 --- a/example/example_4_ibbTransferTarget/example_4_ibbTransferTarget.pro +++ b/example/example_4_ibbTransferTarget/example_4_ibbTransferTarget.pro @@ -1,4 +1,4 @@ -TEMPLATE = app +include(../example.pri) TARGET = example_4_ibbTransferTarget @@ -7,15 +7,4 @@ SOURCES += main.cpp \ HEADERS += ibbTransferTarget.h -INCLUDEPATH += ../../source - -QT += network xml -CONFIG += console debug_and_release - -CONFIG(debug, debug|release) { - LIBS += -L../../source -lQXmppClient_d - } else { - LIBS += -L../../source -lQXmppClient - } - OTHER_FILES += README diff --git a/example/example_5_rpcInterface/example_5_rpcInterface.pro b/example/example_5_rpcInterface/example_5_rpcInterface.pro index 57c0791b..eaa19e67 100644 --- a/example/example_5_rpcInterface/example_5_rpcInterface.pro +++ b/example/example_5_rpcInterface/example_5_rpcInterface.pro @@ -1,17 +1,12 @@ -TEMPLATE = app +include(../example.pri) + TARGET = example_5_rpcInterface + SOURCES += main.cpp \ - rpcClient.cpp \ - remoteinterface.cpp + rpcClient.cpp \ + remoteinterface.cpp + HEADERS += rpcClient.h \ - remoteinterface.h -INCLUDEPATH += ../../source -QT += network \ - xml -CONFIG += console \ - debug_and_release -CONFIG(debug, debug|release):LIBS += -L../../source \ - -lQXmppClient_d -else:LIBS += -L../../source \ - -lQXmppClient + remoteinterface.h + OTHER_FILES += README diff --git a/example/example_6_rpcClient/example_6_rpcClient.pro b/example/example_6_rpcClient/example_6_rpcClient.pro index 93840828..0dbb806f 100644 --- a/example/example_6_rpcClient/example_6_rpcClient.pro +++ b/example/example_6_rpcClient/example_6_rpcClient.pro @@ -1,15 +1,10 @@ -TEMPLATE = app +include(../example.pri) + TARGET = example_6_rpcClient + SOURCES += main.cpp \ - rpcClient.cpp + rpcClient.cpp + HEADERS += rpcClient.h -INCLUDEPATH += ../../source -QT += network \ - xml -CONFIG += console \ - debug_and_release -CONFIG(debug, debug|release):LIBS += -L../../source \ - -lQXmppClient_d -else:LIBS += -L../../source \ - -lQXmppClient + OTHER_FILES += README diff --git a/example/example_7_archiveHandling/example_7_archiveHandling.pro b/example/example_7_archiveHandling/example_7_archiveHandling.pro index 0e104c6f..9f16568c 100644 --- a/example/example_7_archiveHandling/example_7_archiveHandling.pro +++ b/example/example_7_archiveHandling/example_7_archiveHandling.pro @@ -1,4 +1,4 @@ -TEMPLATE = app
+include(../example.pri)
TARGET = example_7_archiveHandling
@@ -6,16 +6,3 @@ SOURCES += main.cpp \ xmppClient.cpp
HEADERS += xmppClient.h
-
-INCLUDEPATH += ../../source
-
-QT += network xml
-CONFIG += console debug_and_release
-
-CONFIG(debug, debug|release) {
- LIBS += -L../../source -lQXmppClient_d
- } else {
- LIBS += -L../../source -lQXmppClient
- }
-
-OTHER_FILES += README
|
