forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simcqt.pro
195 lines (169 loc) · 5.39 KB
/
simcqt.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
TEMPLATE = app
TARGET = SimulationCraft
QT += core gui network webkit
#CONFIG += paperdoll
#CONFIG += openssl
#CONFIG += qt5
#CONFIG += to_install // GUI will be installed, use default AppData & Temp location for files created
contains ( QT_MAJOR_VERSION , 5 ) {
QT += widgets webkitwidgets
DEFINES += QT_VERSION_5
}
exists( build.conf ) {
include( build.conf )
}
QMAKE_CXXFLAGS_RELEASE += -DNDEBUG
QMAKE_CXXFLAGS += $$OPTS
win32 {
LIBS += -lwininet -lshell32
RC_FILE += simcqt.rc
# OpenSSL stuff:
OPENSSL_INCLUDES = C:/OpenSSL-Win32/include
OPENSSL_LIBS = C:/OpenSSL-Win32/lib
}
macx {
QMAKE_INFO_PLIST = qt/Simulationcraft.plist
ICON = qt/icon/Simcraft2.icns
LIBS += -framework CoreFoundation -framework AppKit
}
# This will match both 'g++' and 'clang++'
COMPILER_CHECK_CXX = $$replace(QMAKE_CXX,'.*g\\+\\+'.*,'g++')
contains(COMPILER_CHECK_CXX,'g++') {
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3 -fomit-frame-pointer
QMAKE_CXXFLAGS += -ffast-math -Woverloaded-virtual -msse2 -mfpmath=sse
}
win32-msvc2010 {
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -Ox -GL -GS-
QMAKE_LFLAGS_RELEASE += /LTCG
QMAKE_CXXFLAGS += -fp:fast -GF -arch:SSE2
}
INCLUDEPATH += engine
DEPENDPATH += engine
PRECOMPILED_HEADER = engine/simulationcraft.hpp
HEADERS += engine/simulationcraft.hpp
HEADERS += engine/sc_generic.hpp
HEADERS += engine/sc_timespan.hpp
HEADERS += engine/sc_sample_data.hpp
HEADERS += engine/sc_rng.hpp
HEADERS += engine/dbc/data_enums.hh
HEADERS += engine/dbc/data_definitions.hh
HEADERS += engine/dbc/specialization.hpp
HEADERS += engine/dbc/dbc.hpp
HEADERS += engine/utf8.h
HEADERS += engine/utf8/core.h
HEADERS += engine/utf8/checked.h
HEADERS += engine/utf8/unchecked.h
HEADERS += qt/sc_autoupdate.h
HEADERS += qt/simulationcraftqt.hpp
SOURCES += engine/sc_action.cpp
SOURCES += engine/sc_action_state.cpp
SOURCES += engine/sc_attack.cpp
SOURCES += engine/sc_buff.cpp
SOURCES += engine/sc_consumable.cpp
SOURCES += engine/sc_cooldown.cpp
SOURCES += engine/sc_dot.cpp
SOURCES += engine/sc_event.cpp
SOURCES += engine/sc_expressions.cpp
SOURCES += engine/sc_gear_stats.cpp
SOURCES += engine/sc_heal.cpp
SOURCES += engine/sc_io.cpp
SOURCES += engine/sc_item.cpp
SOURCES += engine/sc_option.cpp
SOURCES += engine/sc_pet.cpp
SOURCES += engine/sc_player.cpp
SOURCES += engine/sc_plot.cpp
SOURCES += engine/sc_raid_event.cpp
SOURCES += engine/sc_rating.cpp
SOURCES += engine/sc_reforge_plot.cpp
SOURCES += engine/sc_rng.cpp
SOURCES += engine/sc_scaling.cpp
SOURCES += engine/sc_sequence.cpp
SOURCES += engine/sc_set_bonus.cpp
SOURCES += engine/sc_sim.cpp
SOURCES += engine/sc_spell_base.cpp
SOURCES += engine/sc_harmful_spell.cpp
SOURCES += engine/sc_absorb.cpp
SOURCES += engine/sc_stats.cpp
SOURCES += engine/sc_thread.cpp
SOURCES += engine/sc_unique_gear.cpp
SOURCES += engine/sc_util.cpp
SOURCES += engine/sc_weapon.cpp
SOURCES += engine/report/sc_report_html_player.cpp
SOURCES += engine/report/sc_report_html_sim.cpp
SOURCES += engine/report/sc_report_text.cpp
SOURCES += engine/report/sc_report_xml.cpp
SOURCES += engine/report/sc_report.cpp
SOURCES += engine/report/sc_chart.cpp
SOURCES += engine/dbc/sc_const_data.cpp
SOURCES += engine/dbc/sc_item_data.cpp
SOURCES += engine/dbc/sc_spell_data.cpp
SOURCES += engine/dbc/sc_spell_info.cpp
SOURCES += engine/dbc/sc_data.cpp
SOURCES += engine/interfaces/sc_bcp_api.cpp
SOURCES += engine/interfaces/sc_chardev.cpp
SOURCES += engine/interfaces/sc_http.cpp
SOURCES += engine/interfaces/sc_js.cpp
SOURCES += engine/interfaces/sc_rawr.cpp
SOURCES += engine/interfaces/sc_wowhead.cpp
SOURCES += engine/interfaces/sc_xml.cpp
SOURCES += engine/class_modules/sc_death_knight.cpp
SOURCES += engine/class_modules/sc_druid.cpp
SOURCES += engine/class_modules/sc_enemy.cpp
SOURCES += engine/class_modules/sc_hunter.cpp
SOURCES += engine/class_modules/sc_mage.cpp
SOURCES += engine/class_modules/sc_monk.cpp
SOURCES += engine/class_modules/sc_paladin.cpp
SOURCES += engine/class_modules/sc_priest.cpp
SOURCES += engine/class_modules/sc_rogue.cpp
SOURCES += engine/class_modules/sc_shaman.cpp
SOURCES += engine/class_modules/sc_warlock.cpp
SOURCES += engine/class_modules/sc_warrior.cpp
SOURCES += qt/main.cpp
SOURCES += qt/sc_window.cpp
SOURCES += qt/sc_import.cpp
CONFIG(paperdoll) {
DEFINES += SC_PAPERDOLL
HEADERS += qt/simcpaperdoll.hpp
SOURCES += qt/simcpaperdoll.cc
}
CONFIG(openssl) {
DEFINES += SC_USE_OPENSSL
INCLUDEPATH += $$OPENSSL_INCLUDES
LIBS += -L$$OPENSSL_LIBS -lssleay32
}
CONFIG(to_install) {
DEFINES += SC_TO_INSTALL
}
# deployment for linux
unix:!mac {
DISTFILES += CHANGES \
COPYING
# Disable strip
QMAKE_STRIP=echo
isEmpty(PREFIX):PREFIX = ~
isEmpty(INSTALLPATH):INSTALLPATH = $$PREFIX/SimulationCraft
SHAREDIR = ~/.local/share
INSTALLS += target \
profiles \
data \
icon \
locale
target.path = $$INSTALLPATH
profiles.path = $$INSTALLPATH/profiles
profiles.files += profiles/*
profiles.commands = @echo Installing profiles to $$INSTALLPATH/profiles
data.path = $$INSTALLPATH
data.files += Welcome.html
data.files += Welcome.png
data.files += Legend.html
data.files += READ_ME_FIRST.txt
data.commands = @echo Installing global files to $$INSTALLPATH
icon.path = $$INSTALLPATH
icon.files = debian/simulationcraft.xpm
icon.commands = @echo Installing icon to $$INSTALLPATH
locale.path = $$INSTALLPATH/locale
locale.files += locale/*
locale.commands = @echo Installing localizations to $$INSTALLPATH/locale
}