-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathDoomRunner.pro
More file actions
263 lines (225 loc) · 7.81 KB
/
DoomRunner.pro
File metadata and controls
263 lines (225 loc) · 7.81 KB
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
#-------------------------------------------------
#
# Project created by QtCreator 2019-05-13T14:15:57
#
#-------------------------------------------------
TARGET = DoomRunner
TEMPLATE = app
QT += core gui widgets network
CONFIG -= qml_debug
#-- compiler options -----------------------------
CONFIG += c++17
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
#DEFINES += QT_DEPRECATED_WARNINGS
QMAKE_CXXFLAGS += -Wno-deprecated-declarations # commenting-out the above doesn't work
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
# Some Qt headers use deprecated C++ features and generate tons of warnings.
# This will silence them and prevent them from shadowing our own potentially important warnings.
QMAKE_CXXFLAGS += -Wno-deprecated-copy
QMAKE_CXXFLAGS += -Wno-attributes
QMAKE_CXXFLAGS += -Wno-comment
#-- sources --------------------------------------
INCLUDEPATH += Sources
HEADERS += \
Sources/DataModels/AModelItem.hpp \
Sources/DataModels/GenericListModel.hpp \
Sources/DataModels/ModelCommon.hpp \
Sources/Dialogs/AboutDialog.hpp \
Sources/Dialogs/CompatOptsDialog.hpp \
Sources/Dialogs/DialogCommon.hpp \
Sources/Dialogs/DMBEditor.hpp \
Sources/Dialogs/EngineDialog.hpp \
Sources/Dialogs/GameOptsDialog.hpp \
Sources/Dialogs/NewConfigDialog.hpp \
Sources/Dialogs/OptionsStorageDialog.hpp \
Sources/Dialogs/OwnFileDialog.hpp \
Sources/Dialogs/ProcessOutputWindow.hpp \
Sources/Dialogs/SetupDialog.hpp \
Sources/Dialogs/WADDescViewer.hpp \
Sources/Utils/ContainerUtils.hpp \
Sources/Utils/DoomModBundles.hpp \
Sources/Utils/EnumTraits.hpp \
Sources/Utils/ErrorHandling.hpp \
Sources/Utils/EventFilters.hpp \
Sources/Utils/ExeReader.hpp \
Sources/Utils/ExeReaderTypes.hpp \
Sources/Utils/FileInfoCache.hpp \
Sources/Utils/FileInfoCacheTypes.hpp \
Sources/Utils/FileSystemUtils.hpp \
Sources/Utils/FileSystemUtilsTypes.hpp \
Sources/Utils/JsonUtils.hpp \
Sources/Utils/LangUtils.hpp \
Sources/Utils/MapInfo.hpp \
Sources/Utils/MiscUtils.hpp \
Sources/Utils/OSUtils.hpp \
Sources/Utils/OSUtilsTypes.hpp \
Sources/Utils/PathCheckUtils.hpp \
Sources/Utils/Pk3Reader.hpp \
Sources/Utils/PtrList.hpp \
Sources/Utils/StandardOutput.hpp \
Sources/Utils/StringUtils.hpp \
Sources/Utils/TimeStats.hpp \
Sources/Utils/TypeTraits.hpp \
Sources/Utils/UniqueIdGenerator.hpp \
Sources/Utils/Version.hpp \
Sources/Utils/WADReader.hpp \
Sources/Utils/WidgetUtils.hpp \
Sources/Utils/WindowsUtils.hpp \
Sources/Utils/ZipReader.hpp \
Sources/Widgets/ExtendedListView.hpp \
Sources/Widgets/ExtendedTreeView.hpp \
Sources/Widgets/ExtendedViewCommon.hpp \
Sources/Widgets/ExtendedViewCommon.impl.hpp \
Sources/Widgets/RightClickableLabel.hpp \
Sources/Widgets/RightClickableButton.hpp \
Sources/Widgets/RightClickableWidget.hpp \
Sources/Widgets/RightClickableWidget.impl.hpp \
Sources/Widgets/SearchPanel.hpp \
Sources/AppVersion.hpp \
Sources/CommonTypes.hpp \
Sources/DoomFiles.hpp \
Sources/EngineTraits.hpp \
Sources/Essential.hpp \
Sources/MainWindowPtr.hpp \
Sources/MainWindow.hpp \
Sources/OptionsSerializer.hpp \
Sources/Themes.hpp \
Sources/UpdateChecker.hpp \
Sources/UserData.hpp \
SOURCES += \
Sources/DataModels/GenericListModel.cpp \
Sources/Dialogs/AboutDialog.cpp \
Sources/Dialogs/CompatOptsDialog.cpp \
Sources/Dialogs/DialogCommon.cpp \
Sources/Dialogs/DMBEditor.cpp \
Sources/Dialogs/EngineDialog.cpp \
Sources/Dialogs/GameOptsDialog.cpp \
Sources/Dialogs/NewConfigDialog.cpp \
Sources/Dialogs/OptionsStorageDialog.cpp \
Sources/Dialogs/OwnFileDialog.cpp \
Sources/Dialogs/ProcessOutputWindow.cpp \
Sources/Dialogs/SetupDialog.cpp \
Sources/Dialogs/WADDescViewer.cpp \
Sources/Utils/ContainerUtils.cpp \
Sources/Utils/DoomModBundles.cpp \
Sources/Utils/ErrorHandling.cpp \
Sources/Utils/EventFilters.cpp \
Sources/Utils/ExeReader.cpp \
Sources/Utils/ExeReaderTypes.cpp \
Sources/Utils/FileInfoCache.cpp \
Sources/Utils/FileInfoCacheTypes.cpp \
Sources/Utils/FileSystemUtils.cpp \
Sources/Utils/FileSystemUtilsTypes.cpp \
Sources/Utils/LangUtils.cpp \
Sources/Utils/JsonUtils.cpp \
Sources/Utils/MapInfo.cpp \
Sources/Utils/MiscUtils.cpp \
Sources/Utils/OSUtils.cpp \
Sources/Utils/OSUtilsTypes.cpp \
Sources/Utils/PathCheckUtils.cpp \
Sources/Utils/Pk3Reader.cpp \
Sources/Utils/PtrList.cpp \
Sources/Utils/StandardOutput.cpp \
Sources/Utils/StringUtils.cpp \
Sources/Utils/TypeTraitsTest.cpp \
Sources/Utils/UniqueIdGenerator.cpp \
Sources/Utils/Version.cpp \
Sources/Utils/WADReader.cpp \
Sources/Utils/WidgetUtils.cpp \
Sources/Utils/WindowsUtils.cpp \
Sources/Utils/ZipReader.cpp \
Sources/Widgets/ExtendedListView.cpp \
Sources/Widgets/ExtendedTreeView.cpp \
Sources/Widgets/RightClickableLabel.cpp \
Sources/Widgets/RightClickableButton.cpp \
Sources/Widgets/SearchPanel.cpp \
Sources/DoomFiles.cpp \
Sources/EngineTraits.cpp \
Sources/MainWindow.cpp \
Sources/OptionsSerializer.cpp \
Sources/Themes.cpp \
Sources/UpdateChecker.cpp \
Sources/UserData.cpp \
Sources/main.cpp \
FORMS += \
Forms/AboutDialog.ui \
Forms/CompatOptsDialog.ui \
Forms/DMBEditor.ui \
Forms/EngineDialog.ui \
Forms/GameOptsDialog.ui \
Forms/MainWindow.ui \
Forms/NewConfigDialog.ui \
Forms/OptionsStorageDialog.ui \
Forms/ProcessOutputWindow.ui \
Forms/SetupDialog.ui \
Forms/WADDescViewer.ui \
RESOURCES += \
Resources/Resources.qrc
# To set an icon for the exe file we need to use the Windows resource system, see https://doc.qt.io/qt-6/appicon.html
win32: RC_ICONS += Resources/DoomRunner.ico
macx: ICON = Resources/DoomRunner.icns
#-- build type variables -------------------------
DEFINES += PROJECT_NAME=\\\"$$TARGET\\\"
CONFIG(debug, debug|release) {
DEFINES += DEBUG
DEFINES += IS_DEBUG_BUILD=true
} else {
DEFINES += NDEBUG # to disable asserts
DEFINES += IS_DEBUG_BUILD=false
}
win32 {
DEFINES += IS_WINDOWS=true
DEFINES += IS_MACOS=false
} else: macx {
DEFINES += IS_WINDOWS=false
DEFINES += IS_MACOS=true
} else {
DEFINES += IS_WINDOWS=false
DEFINES += IS_MACOS=false
}
#-- libraries ------------------------------------
# To link libraries on Mac we must manually add their installation paths.
macx {
# Libraries are most commonly installed via Homebrew.
# But the typical Homebrew paths depends on the CPU architecture, so we must detect it first.
CPU_ARCH = $$system(uname -m)
equals(CPU_ARCH, arm64) {
HOMEBREW_PREFIX = /opt/homebrew/opt
} else: equals(CPU_ARCH, x86_64) {
HOMEBREW_PREFIX = /usr/local/opt
}
# add "LIBRARY_DIR=/custom/path" to the qmake command to override the auto-detected value
isEmpty(LIBRARY_DIR) {
!isEmpty(HOMEBREW_PREFIX): LIBRARY_DIR = $$HOMEBREW_PREFIX
else: error("Unable to detect library installation path. Please specify LIBRARY_DIR=")
}
INCLUDEPATH += \
$$LIBRARY_DIR/minizip/include
LIBS += \
-L$$LIBRARY_DIR/minizip/lib
}
LIBS += -lminizip
equals(QT_MAJOR_VERSION, 5): LIBS += -lbz2
win32: LIBS += -lole32 -luuid -ldwmapi -lversion
#-- user configuration ---------------------------
# add "CONFIG+=flatpak" to the qmake command to activate this
flatpak {
DEFINES += FLATPAK_BUILD
DEFINES += IS_FLATPAK_BUILD=true
} else {
DEFINES += IS_FLATPAK_BUILD=false
}
#-- deployment -----------------------------------
# add "INSTALL_DIR=/custom/path" to the qmake command to override this default value
isEmpty(INSTALL_DIR): INSTALL_DIR = /usr/bin
unix: !android
{
target.path = $$INSTALL_DIR
}
!isEmpty(target.path): INSTALLS += target