forked from d5/node.native
-
Notifications
You must be signed in to change notification settings - Fork 35
/
qttp.pro
59 lines (49 loc) · 1.42 KB
/
qttp.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
contains(CONFIG, SAMPLEAPP) {
message(********* Building SAMPLE APPLICATION qttpserver *********)
# This default configuration is for example purposes.
TEMPLATE = app
DESTDIR = $$PWD
SOURCES += $$PWD/examples/sample/main.cpp
TARGET = QttpServer
macx {
# Since things are buried in the app folder, we'll copy configs there.
Config.files = $$PWD/config/global.json $$PWD/config/routes.json
Config.path = Contents/MacOS/config
QMAKE_BUNDLE_DATA += Config
}
message('Including config files')
include($$PWD/config/config.pri)
} else {
TEMPLATE = lib
TARGET = qttpserver
!win32 {
VERSION = 0.0.1
}
DEFINES += QTTP_LIBRARY QTTP_EXPORT
contains(CONFIG, QTTP_SHARED_LIBRARY) {
message(********* Building shared library qttpserver *********)
unix {
#target.path = /usr/lib
#INSTALLS += target
}
} else {
message(********* Building static library qttpserver *********)
CONFIG += staticlib
}
CONFIG(debug, debug|release) {
win32 {
DESTDIR = $$PWD/build/Debug/lib
} else {
DESTDIR = $$PWD/build/out/Debug
}
} else {
win32 {
DESTDIR = $$PWD/build/Release/lib
} else {
DESTDIR = $$PWD/build/out/Release
}
}
}
QT -= gui
message('Including core files')
include($$PWD/core.pri)