-
Notifications
You must be signed in to change notification settings - Fork 0
/
http-daemon.pro
63 lines (49 loc) · 2.29 KB
/
http-daemon.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#-------------------------------------------------
#
# Project created by QtCreator 2013-07-22T11:51:36
#
#-------------------------------------------------
QT += core network concurrent
QT -= gui
TARGET = http-daemon
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp \
httpparser.cpp \
httpconnection.cpp \
httpconnectionmanager.cpp \
dispatcher.cpp \
httpdaemon.cpp \
logging.cpp \
configuration.cpp
HEADERS += \
httpparser.h \
httpconnection.h \
httpconnectionmanager.h \
dispatcher.h \
httpdaemon.h \
logging.h \
configuration.h
QMAKE_CXXFLAGS += -std=c++11
OTHER_FILES += \
httpdaemon.conf
DEFINES += CONFIG_DIR=\\\"/path/to/http-daemon/config/dir/\\\"
CONFIG(release, debug|release){
DEFINES += QT_NO_DEBUG_OUTPUT QT_NO_WARNING_OUTPUT
message("Release mode: No debug or warning messages from Qt")
QMAKE_CXXFLAGS += -O3
}
#TODO: find a way to link to a more general location, if I move on another machine I won't have to create all the build-* dirs
#TODO: find a way to move the plugins to their central location without relying on qt creator
# provide an installation script
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../build-http-daemon-components-Desktop-Release/release/ -lhttp-daemon-components
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../build-http-daemon-components-Desktop-Debug/debug/ -lhttp-daemon-components
else:unix:CONFIG(debug, debug|release): LIBS += -L$$PWD/../build-http-daemon-components-Desktop-Debug/ -lhttp-daemon-components
else:unix:CONFIG(release, debug|release): LIBS += -L$$PWD/../build-http-daemon-components-Desktop-Release/ -lhttp-daemon-components
INCLUDEPATH += $$PWD/../http-daemon-components
DEPENDPATH += $$PWD/../http-daemon-components
win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../build-http-daemon-components-Desktop-Release/release/libhttp-daemon-components.a
else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../build-http-daemon-components-Desktop-Debug/debug/libhttp-daemon-components.a
else:unix:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../build-http-daemon-components-Desktop-Release/libhttp-daemon-components.a
else:unix:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../build-http-daemon-components-Desktop-Debug/libhttp-daemon-components.a