-
Notifications
You must be signed in to change notification settings - Fork 18
/
DoomRunner.pro
185 lines (152 loc) · 5.26 KB
/
DoomRunner.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
#-------------------------------------------------
#
# Project created by QtCreator 2019-05-13T14:15:57
#
#-------------------------------------------------
TARGET = DoomRunner
TEMPLATE = app
QT += core gui widgets network
#-- 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/Dialogs/AboutDialog.hpp \
Sources/Dialogs/CompatOptsDialog.hpp \
Sources/Dialogs/DialogCommon.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/DoomFiles.hpp \
Sources/Utils/ContainerUtils.hpp \
Sources/Utils/ErrorHandling.hpp \
Sources/Utils/EventFilters.hpp \
Sources/Utils/ExeReader.hpp \
Sources/Utils/FileInfoCache.hpp \
Sources/Utils/FileSystemUtils.hpp \
Sources/Utils/JsonUtils.hpp \
Sources/Utils/LangUtils.hpp \
Sources/Utils/MiscUtils.hpp \
Sources/Utils/OSUtils.hpp \
Sources/Utils/StandardOutput.hpp \
Sources/Utils/TimeStats.hpp \
Sources/Utils/WADReader.hpp \
Sources/Utils/WidgetUtils.hpp \
Sources/Utils/WindowsUtils.hpp \
Sources/Widgets/EditableListView.hpp \
Sources/Widgets/ExtendedTreeView.hpp \
Sources/Widgets/ListModel.hpp \
Sources/CommonTypes.hpp \
Sources/EngineTraits.hpp \
Sources/Essential.hpp \
Sources/MainWindow.hpp \
Sources/OptionsSerializer.hpp \
Sources/Themes.hpp \
Sources/UpdateChecker.hpp \
Sources/UserData.hpp \
Sources/Version.hpp \
Sources/Widgets/SearchPanel.hpp
SOURCES += \
Sources/Dialogs/AboutDialog.cpp \
Sources/Dialogs/CompatOptsDialog.cpp \
Sources/Dialogs/DialogCommon.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/DoomFiles.cpp \
Sources/Utils/ContainerUtils.cpp \
Sources/Utils/ErrorHandling.cpp \
Sources/Utils/EventFilters.cpp \
Sources/Utils/ExeReader.cpp \
Sources/Utils/FileInfoCache.cpp \
Sources/Utils/FileSystemUtils.cpp \
Sources/Utils/LangUtils.cpp \
Sources/Utils/JsonUtils.cpp \
Sources/Utils/MiscUtils.cpp \
Sources/Utils/OSUtils.cpp \
Sources/Utils/StandardOutput.cpp \
Sources/Utils/WADReader.cpp \
Sources/Utils/WidgetUtils.cpp \
Sources/Utils/WindowsUtils.cpp \
Sources/Widgets/EditableListView.cpp \
Sources/Widgets/ExtendedTreeView.cpp \
Sources/Widgets/ListModel.cpp \
Sources/CommonTypes.cpp \
Sources/EngineTraits.cpp \
Sources/MainWindow.cpp \
Sources/OptionsSerializer.cpp \
Sources/Themes.cpp \
Sources/UpdateChecker.cpp \
Sources/UserData.cpp \
Sources/Version.cpp \
Sources/Widgets/SearchPanel.cpp \
Sources/main.cpp \
FORMS += \
Forms/AboutDialog.ui \
Forms/CompatOptsDialog.ui \
Forms/EngineDialog.ui \
Forms/GameOptsDialog.ui \
Forms/MainWindow.ui \
Forms/NewConfigDialog.ui \
Forms/OptionsStorageDialog.ui \
Forms/ProcessOutputWindow.ui \
Forms/SetupDialog.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 -------------------------
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 ------------------------------------
win32: LIBS += -lole32 -luuid -ldwmapi -lversion
#-- user configuration ---------------------------
# add "CONFIG+=flatpak" to the qmake command to activate this
flatpak: DEFINES += FLATPAK_BUILD
#-- 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