Skip to content

Commit

Permalink
example: exlude keepalive pro when client is ruled out
Browse files Browse the repository at this point in the history
  • Loading branch information
azadkuh committed Jun 30, 2016
1 parent c22acdf commit 2cc654a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 7 additions & 5 deletions commondir.pri
@@ -1,18 +1,20 @@
# specifying common dirs

# comment following line to build the lib as static library
DEFINES *= QHTTP_DYNAMIC_LIB
# comment following line to trim client classes from build
DEFINES *= QHTTP_HAS_CLIENT
# Qt5.5.1 on OSX needs both c++11 and c++14!! the c++14 is not enough
CONFIG += c++11 c++14

unix {
TEMPDIR = $$PRJDIR/tmp/unix/$$TARGET
macx:TEMPDIR = $$PRJDIR/tmp/osx/$$TARGET
TEMPDIR = $$PRJDIR/tmp/unix/$$TARGET
macx:TEMPDIR = $$PRJDIR/tmp/osx/$$TARGET
}

win32 {
warning("Windows port of this library has not been tested nor profiled.")
TEMPDIR = $$PRJDIR/tmp/win32/$$TARGET
DEFINES += _WINDOWS WIN32_LEAN_AND_MEAN NOMINMAX
TEMPDIR = $$PRJDIR/tmp/win32/$$TARGET
DEFINES += _WINDOWS WIN32_LEAN_AND_MEAN NOMINMAX
}


Expand Down
5 changes: 4 additions & 1 deletion example/example.pro
Expand Up @@ -3,5 +3,8 @@ TEMPLATE = subdirs
SUBDIRS += helloworld
SUBDIRS += postcollector
SUBDIRS += basic-server
SUBDIRS += keep-alive

contains(DEFINES, QHTTP_HAS_CLIENT) {
SUBDIRS += keep-alive
}

0 comments on commit 2cc654a

Please sign in to comment.