forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.pro
executable file
·95 lines (73 loc) · 2.5 KB
/
gui.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
include(../simulationcraft.pri)
TEMPLATE = app
TARGET = SimulationCraft
CONFIG += link_prl
QT += network widgets
LIBS += -L../lib -lsimcengine
INCLUDEPATH += ../qt
MOC_DIR = moc
RCC_DIR = resources
DEFINES += SC_USE_WEBENGINE
TRANSLATIONS = \
../locale/sc_de.ts \
../locale/sc_cn.ts \
../locale/sc_it.ts \
../locale/sc_ko.ts
lessThan( QT_MAJOR_VERSION, 6 ) {
QT += webengine webenginewidgets
}
greaterThan( QT_MAJOR_VERSION, 5 ) {
QT += webenginecore webenginewidgets
}
# Linux puts binaries to a different place (see simulationcraft.pri)
win32|macx {
DESTDIR = ..
}
CONFIG(release, debug|release): LIBS += -L../lib/release -lsimcengine
CONFIG(debug, debug|release): LIBS += -L../lib/debug -lsimcengine
Resources.files = ../qt/Welcome.html ../qt/Welcome.png ../qt/Error.html
Localization.files = $$files(../locale/*.qm)
Profiles.files = $$files(../profiles/*, recursive=true)
macx {
ICON = ../qt/icon/Simcraft2.icns
LIBS += -framework CoreFoundation -framework AppKit
QMAKE_INFO_PLIST = ../qt/Simulationcraft.plist
DEFINES += SIMC_NO_AUTOUPDATE
contains(QMAKE_CXX, .+/clang\+\+) {
QMAKE_CXXFLAGS += -Wno-inconsistent-missing-override
}
Resources.path = Contents/Resources
Profiles.path = Contents/Resources/profiles
Localization.path = Contents/Resources/locale
QMAKE_BUNDLE_DATA += Profiles Resources Localization
}
win32 {
QMAKE_PROJECT_NAME = "Simulationcraft GUI"
#RC_FILE = ../qt/simcqt.rc
RC_ICONS = ../qt/icon/Simcraft2.ico
CONFIG(debug, debug|release) {
CONFIG += console
}
}
# Deplopyment for Linux, note, the cli project also copies profiles
unix:!macx {
DISTFILES += CHANGES COPYING
INSTALLS += target Profiles Resources icon Localization
# Disable strip
QMAKE_STRIP = echo
target.path = $$DESTDIR$$PREFIX/bin/
Profiles.path = $$SHAREPATH/profiles
profiles.commands = @echo Installing profiles to $$SHAREPATH/profiles
Resources.path = $$SHAREPATH
data.commands = @echo Installing global files to $$SHAREPATH
icon.path = $$SHAREPATH
icon.files = ../qt/icon/SimulationCraft.xpm
icon.commands = @echo Installing icon to $$SHAREPATH
Localization.path = $$SHAREPATH/locale
Localization.commands = @echo Installing localizations to $$SHAREPATH/locale
}
include(../source_files/QT_gui.pri)
# Fix paths in SOURCES and HEADERS, as they need to refer to parent
# directory for the respective subprojects.
HEADERS = $$replace(HEADERS, qt/, ../qt/)
SOURCES = $$replace(SOURCES, qt/, ../qt/)