forked from qutescoop/qutescoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuteScoop.pro
275 lines (253 loc) · 8 KB
/
QuteScoop.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
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
264
265
266
267
268
269
270
271
272
273
274
# versiony things
GIT_HASH="\\\"$$system(git -C \""$$_PRO_FILE_PWD_"\" rev-parse --short HEAD)\\\""
DEFINES += GIT_HASH=$$GIT_HASH
GIT_BRANCH="\\\"$$system(git -C \""$$_PRO_FILE_PWD_"\" rev-parse --abbrev-ref HEAD)\\\""
DEFINES += GIT_BRANCH=$$GIT_BRANCH
## this produces v2.3.0 / v2.3.0-6-g29966c2 / v2.3.0-6-g29966c2-dirty
## C/I sets these "long" versions as tags for pre-releases, so we exclude them here as bases
GIT_DESCRIBE="\\\"$$system(git -C \""$$_PRO_FILE_PWD_"\" describe --tags --exclude '*-*-*' --dirty --always)\\\""
DEFINES += GIT_DESCRIBE=$$GIT_DESCRIBE
message(compiling version $$GIT_DESCRIBE)
# maybe fixes version incompatibilities, gets ignored by clang
QMAKE_CXXFLAGS += "-fno-sized-deallocation"
TEMPLATE = app
CONFIG *= qt
CONFIG *= warn_on
TARGET = QuteScoop
DISTFILES += uncrustify.cfg
win32: {
contains(QMAKE_TARGET.arch, x86_64):PLATFORM = "win64"
else:PLATFORM = "win32"
}
macx: {
PLATFORM = "macx64"
}
# linux
!macx:unix: {
PLATFORM = "unix64"
}
# Qt paths
message(Qt lib: $$[QT_INSTALL_LIBS])
message(Qt bin: $$[QT_INSTALL_BINS])
message(Qt plugins: $$[QT_INSTALL_PLUGINS])
QT *= core gui network opengl xml
# in debug mode, we output to current directory
CONFIG(debug,release|debug) {
!build_pass:message("DEBUG")
DEBUGRELEASE = "debug"
DESTDIR = ./
}
# in release mode, we include a 'make install' target and output to ./DIST-$PLATFORM
CONFIG(release,release|debug) {
!build_pass:message("RELEASE")
DEBUGRELEASE = "release"
DESTDIR = ./DIST-$${PLATFORM}
# Add a "make install" target for deploying Qt/compiler/QuteScoop files.
rootFiles.path = $$DESTDIR
rootFiles.files += ./README.md \
./COPYING
unix:rootFiles.files += ./QuteScoop.sh \
./QuteScoop.desktop \
./src/qutescoop.png \
./picsToMovie.sh
win32:rootFiles.files += ./lib/win64/libssl-1_1-x64.dll \
./lib/win64/libcrypto-1_1-x64.dll
dataFiles.path = $$DESTDIR/data
dataFiles.files += ./data/_notes.txt
dataFiles.files += ./data/airports.dat
dataFiles.files += ./data/controllerAirportsMapping.dat
dataFiles.files += ./data/coastline.dat
dataFiles.files += ./data/countries.dat
dataFiles.files += ./data/countrycodes.dat
dataFiles.files += ./data/dataversions.txt
dataFiles.files += ./data/firdisplay.dat
dataFiles.files += ./data/firlist.dat
dataFiles.files += ./data/airlines.dat
dataFiles.files += ./data/station.dat
dataFiles.files += ./data/cloudmirrors.dat
dataFiles.files += "./data/clouds/_notes.txt"
downloadedFiles.path = $$DESTDIR/downloaded
downloadedFiles.files += ./downloaded/_notes.txt
screenshotsFiles.path = $$DESTDIR/screenshots
screenshotsFiles.files += ./screenshots/_notes.txt
texturesFiles.path = $$DESTDIR/textures
texturesFiles.files += ./textures/_notes.txt
texturesFiles.files += ./textures/1024px-continents.png
texturesFiles.files += ./textures/1024px-toposhaded.png
texturesFiles.files += ./textures/1440px-elevation.png
texturesFiles.files += ./textures/2048px.png
texturesFiles.files += ./textures/2048px-color.png
texturesFiles.files += ./textures/2048px-contrast.png
texturesFiles.files += ./textures/2048px-lights.png
texturesFiles.files += ./textures/2048px-toposhaded.png
texturesFiles.files += ./textures/4096px.png
texturesFiles.files += ./textures/4096px-color.png
texturesFiles.files += ./textures/8192px-arctic-toposhaded.png
texturesFiles.files += ./textures/8192px-topo.png
texturesFiles.files += ./textures/10800px.png
texturesFiles.files += ./textures/10800px-continents.png
texturesFiles.files += ./textures/10800px-lights.png
cloudsFiles.path = $$DESTDIR/textures/clouds
cloudsFiles.files += ./textures/clouds/_notes.txt
!build_pass:message("Run 'make install' to copy non-code files")
# Adds an "install" target for make, executed by "make install"
# (Can be added to QtCreator project also as build step)
INSTALLS *= rootFiles \
dataFiles \
downloadedFiles \
screenshotsFiles \
texturesFiles \
cloudsFiles
}
# Notice: 32bit support dropped for OSX, all versions past 10.5 are able to execute 64bit-binaries
macx {
CONFIG += app_bundle
ICON = src/Dolomynum.icns
CONFIG *= x86_64
LIBS += -framework OpenGL
}
win32 {
RC_FILE = src/windowsicon.rc
LIBS += -lOpengl32
LIBS += -lglu32
}
# OSX also considered as unix, therefore condition added to check
# if the platform is a "real" Unix
!macx:unix {
ICON = src/images/qs-logo.png
LIBS += -lGLU
}
# Input
FORMS = \
src/PilotDetails.ui \
src/ControllerDetails.ui \
src/AirportDetails.ui \
src/PreferencesDialog.ui \
src/PlanFlightDialog.ui \
src/BookedAtcDialog.ui \
src/ListClientsDialog.ui\
src/SectorView.ui \
src/Window.ui
HEADERS += \
src/helpers.h \
src/WhazzupData.h \
src/Whazzup.h \
src/Waypoint.h \
src/Tessellator.h \
src/Settings.h \
src/Pilot.h \
src/NavData.h \
src/NavAid.h \
src/Metar.h \
src/MapObject.h \
src/MapScreen.h\
src/LineReader.h \
src/SectorReader.h \
src/Sector.h \
src/FileReader.h \
src/Controller.h \
src/Client.h \
src/BookedController.h \
src/Airline.h \
src/Airway.h \
src/Airport.h \
src/Airac.h \
src/Window.h \
src/SearchVisitor.h \
src/SearchResultModel.h \
src/PreferencesDialog.h \
src/PlanFlightDialog.h \
src/PilotDetails.h \
src/MetarSearchVisitor.h \
src/MetarModel.h \
src/MapObjectVisitor.h \
src/GLWidget.h \
src/FriendsVisitor.h \
src/ControllerDetails.h \
src/ClientSelectionWidget.h \
src/ClientDetails.h \
src/BookedAtcDialogModel.h \
src/BookedAtcDialog.h \
src/AirportDetailsDeparturesModel.h \
src/AirportDetailsAtcModel.h \
src/AirportDetailsArrivalsModel.h \
src/AirportDetails.h \
src/Route.h \
src/PlanFlightRoutesModel.h \
src/BookedAtcSortFilter.h \
src/ListClientsDialogModel.h \
src/ListClientsDialog.h \
src/Ping.h \
src/GuiMessage.h \
src/Station.h \
src/Launcher.h \
src/SectorView.h \
src/Net.h \
src/SondeData.h \
src/JobList.h \
src/MetarDelegate.h \
src/Platform.h
SOURCES += src/WhazzupData.cpp \
src/Whazzup.cpp \
src/Waypoint.cpp \
src/Tessellator.cpp \
src/Settings.cpp \
src/QuteScoop.cpp \
src/Pilot.cpp \
src/NavData.cpp \
src/NavAid.cpp \
src/Metar.cpp \
src/MapObject.cpp \
src/MapScreen.cpp\
src/LineReader.cpp \
src/SectorReader.cpp \
src/Sector.cpp \
src/FileReader.cpp \
src/Controller.cpp \
src/Client.cpp \
src/BookedController.cpp \
src/Airway.cpp \
src/Airport.cpp \
src/Airac.cpp \
src/Window.cpp \
src/SearchVisitor.cpp \
src/SearchResultModel.cpp \
src/PreferencesDialog.cpp \
src/PlanFlightDialog.cpp \
src/PilotDetails.cpp \
src/MetarSearchVisitor.cpp \
src/MetarModel.cpp \
src/GLWidget.cpp \
src/FriendsVisitor.cpp \
src/ControllerDetails.cpp \
src/ClientSelectionWidget.cpp \
src/ClientDetails.cpp \
src/BookedAtcDialogModel.cpp \
src/BookedAtcDialog.cpp \
src/AirportDetailsDeparturesModel.cpp \
src/AirportDetailsAtcModel.cpp \
src/AirportDetailsArrivalsModel.cpp \
src/AirportDetails.cpp \
src/Route.cpp \
src/PlanFlightRoutesModel.cpp \
src/BookedAtcSortFilter.cpp \
src/ListClientsDialogModel.cpp \
src/ListClientsDialog.cpp \
src/Ping.cpp \
src/GuiMessage.cpp \
src/Station.cpp \
src/Launcher.cpp \
src/SectorView.cpp \
src/Net.cpp \
src/SondeData.cpp \
src/JobList.cpp \
src/MetarDelegate.cpp \
src/Platform.cpp
RESOURCES += src/Resources.qrc
# Report DESTDIR to user
!build_pass:message("Compiled $$TARGET will be put to $$DESTDIR")
# temp files
MOC_DIR = ./.cache/$${PLATFORM}-$${DEBUGRELEASE}
UI_DIR = ./.cache/$${PLATFORM}-$${DEBUGRELEASE}
OBJECTS_DIR = ./.cache/$${PLATFORM}-$${DEBUGRELEASE}
RCC_DIR = ./.cache/$${PLATFORM}-$${DEBUGRELEASE}