-
Notifications
You must be signed in to change notification settings - Fork 0
/
kst.pri
69 lines (51 loc) · 1.54 KB
/
kst.pri
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
64
65
66
67
68
69
TOPOUTDIR=$$OUT_PWD/$$TOPOUT_REL
OUTPUT_DIR=$$TOPOUTDIR/build
INSTALL_PREFIX = $$(INSTALL_PREFIX)
unix {
!mac {
isEmpty(INSTALL_PREFIX):INSTALL_PREFIX=/usr
} }
INSTALL_LIBDIR = $$(INSTALL_LIBDIR)
unix {
!mac {
isEmpty(INSTALL_LIBDIR):INSTALL_LIBDIR=lib
} }
INSTALL_PREFIX=$$(DESTDIR)$$INSTALL_PREFIX
!win32-msvc2010:DEFINES += INSTALL_LIBDIR=\\\"$$INSTALL_LIBDIR\\\"
win32-msvc2010:DEFINES += INSTALL_LIBDIR=\"$$INSTALL_LIBDIR\"
win32-msvc*:DEFINES += _USE_MATH_DEFINES
QT += core xml
CONFIG += warn_on
!win32:CONFIG += silent
DEBUG_MODE = $$(KST_DEBUG_MODE)
contains(DEBUG_MODE, 1) {
!win32:CONFIG += debug
QMAKE_RPATHDIR += $$OUTPUT_DIR/lib $$OUTPUT_DIR/plugin
}
!win32:OBJECTS_DIR = tmp
!win32:MOC_DIR = tmp
TOPLEVELDIR = $$PWD
INCLUDEPATH += $$TOPLEVELDIR
LIBS += -L$$OUTPUT_DIR/lib -L$$OUTPUT_DIR/plugin
#If VERSION is set qmake appends '2' to each dll, but we don't need this numbering.
#VERSION = 2.0.0
# use precompiled headers
PRECOMPILED_HEADER = $$TOPLEVELDIR/pch.h
CONFIG += precompile_header
# similar to qtLibraryTarget from mkspecs\features\qt_functions.p
defineReplace(kstlib) {
unset(LIBRARY_NAME)
LIBRARY_NAME = $$1
mac:!static:contains(QT_CONFIG, qt_framework) {
QMAKE_FRAMEWORK_BUNDLE_NAME = $$LIBRARY_NAME
export(QMAKE_FRAMEWORK_BUNDLE_NAME)
}
CONFIG(debug, debug|release) {
!debug_and_release|build_pass {
mac:RET = $$member(LIBRARY_NAME, 0)_debug
else:win32-msvc*:RET = $$member(LIBRARY_NAME, 0)d
}
}
isEmpty(RET):RET = $$LIBRARY_NAME
return($$RET)
}