forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.pro
44 lines (36 loc) · 1.28 KB
/
lib.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
include(../simulationcraft.pri)
TEMPLATE = lib
TARGET = simcengine
CONFIG += staticlib create_prl
QT -= core gui
win32 {
QMAKE_PROJECT_NAME = "Simulationcraft Engine"
}
# If apikey is in environment, use that
ENV_APIKEY=$$(SC_DEFAULT_APIKEY)
!isEmpty(ENV_APIKEY) {
SC_DEFAULT_APIKEY=$$ENV_APIKEY
}
!isEmpty(SC_DEFAULT_APIKEY) {
DEFINES += SC_DEFAULT_APIKEY=\\\"$${SC_DEFAULT_APIKEY}\\\"
}
# On Linux compilation, setup the profile search directory
unix:!macx {
!isEmpty(PREFIX)|!isEmpty(DESTDIR) {
DEFINES += SC_SHARED_DATA=\\\"$$PREFIX/share/$$ORG_NAME/$$APP_NAME\\\"
}
}
# Win32/OS X will setup target directory to the source root instead. On linux, this is setup in
# simulationcraft.pri.
win32|macx {
CONFIG(release, debug|release): DESTDIR = release
CONFIG(debug, debug|release): DESTDIR = debug
}
include(../source_files/QT_engine.pri)
# Fix paths in SOURCES, HEADERS, PRECOMPILED_HEADER, as they need to
# refer to parent directory for the respective subprojects. Additionally,
# simulationcraft.hpp must only be defined in PRECOMPILED_HEADER.
HEADERS -= engine/simulationcraft.hpp
HEADERS = $$replace(HEADERS, engine/, ../engine/)
SOURCES = $$replace(SOURCES, engine/, ../engine/)
PRECOMPILED_HEADER = $$replace(PRECOMPILED_HEADER, engine/, ../engine/)