Merge branch 'origin/master' into Weblate.
[GPXSee.git] / gpxsee.pro
blobc744af680dac8ec0994fe802d7c10dfafb8f1036
1 unix:!macx {
2 TARGET = gpxsee
3 } else {
4 TARGET = GPXSee
6 VERSION = 7.8
8 QT += core \
9 gui \
10 network \
11 sql \
12 concurrent
13 greaterThan(QT_MAJOR_VERSION, 4) {
14 QT += widgets
15 QT += printsupport
17 lessThan(QT_MAJOR_VERSION, 5) {QT += opengl}
18 equals(QT_MAJOR_VERSION, 5) : lessThan(QT_MINOR_VERSION, 4) {QT += opengl}
20 INCLUDEPATH += ./src
21 HEADERS += src/common/config.h \
22 src/common/staticassert.h \
23 src/common/coordinates.h \
24 src/common/range.h \
25 src/common/rectc.h \
26 src/common/wgs84.h \
27 src/common/util.h \
28 src/common/rtree.h \
29 src/common/kv.h \
30 src/common/greatcircle.h \
31 src/common/programpaths.h \
32 src/common/tifffile.h \
33 src/GUI/app.h \
34 src/GUI/icons.h \
35 src/GUI/gui.h \
36 src/GUI/axisitem.h \
37 src/GUI/keys.h \
38 src/GUI/slideritem.h \
39 src/GUI/markeritem.h \
40 src/GUI/infoitem.h \
41 src/GUI/elevationgraph.h \
42 src/GUI/speedgraph.h \
43 src/GUI/sliderinfoitem.h \
44 src/GUI/filebrowser.h \
45 src/GUI/units.h \
46 src/GUI/scaleitem.h \
47 src/GUI/graphview.h \
48 src/GUI/waypointitem.h \
49 src/GUI/palette.h \
50 src/GUI/heartrategraph.h \
51 src/GUI/trackinfo.h \
52 src/GUI/exportdialog.h \
53 src/GUI/fileselectwidget.h \
54 src/GUI/margins.h \
55 src/GUI/temperaturegraph.h \
56 src/GUI/graphtab.h \
57 src/GUI/trackitem.h \
58 src/GUI/tooltip.h \
59 src/GUI/routeitem.h \
60 src/GUI/graphitem.h \
61 src/GUI/pathitem.h \
62 src/GUI/griditem.h \
63 src/GUI/format.h \
64 src/GUI/cadencegraph.h \
65 src/GUI/powergraph.h \
66 src/GUI/gearratiograph.h \
67 src/GUI/optionsdialog.h \
68 src/GUI/colorbox.h \
69 src/GUI/stylecombobox.h \
70 src/GUI/opengl.h \
71 src/GUI/timetype.h \
72 src/GUI/percentslider.h \
73 src/GUI/elevationgraphitem.h \
74 src/GUI/speedgraphitem.h \
75 src/GUI/heartrategraphitem.h \
76 src/GUI/temperaturegraphitem.h \
77 src/GUI/cadencegraphitem.h \
78 src/GUI/powergraphitem.h \
79 src/GUI/gearratiographitem.h \
80 src/GUI/oddspinbox.h \
81 src/GUI/settings.h \
82 src/GUI/cpuarch.h \
83 src/GUI/searchpointer.h \
84 src/GUI/mapview.h \
85 src/GUI/font.h \
86 src/GUI/areaitem.h \
87 src/map/IMG/bitmapline.h \
88 src/map/IMG/textpathitem.h \
89 src/map/IMG/textpointitem.h \
90 src/map/projection.h \
91 src/map/ellipsoid.h \
92 src/map/datum.h \
93 src/map/webmercator.h \
94 src/map/transversemercator.h \
95 src/map/latlon.h \
96 src/map/utm.h \
97 src/map/lambertconic.h \
98 src/map/lambertazimuthal.h \
99 src/map/albersequal.h \
100 src/map/map.h \
101 src/map/maplist.h \
102 src/map/onlinemap.h \
103 src/map/downloader.h \
104 src/map/tile.h \
105 src/map/emptymap.h \
106 src/map/ozimap.h \
107 src/map/tar.h \
108 src/map/ozf.h \
109 src/map/atlas.h \
110 src/map/matrix.h \
111 src/map/geotiff.h \
112 src/map/pcs.h \
113 src/map/transform.h \
114 src/map/mapfile.h \
115 src/map/gcs.h \
116 src/map/angularunits.h \
117 src/map/primemeridian.h \
118 src/map/linearunits.h \
119 src/map/ct.h \
120 src/map/mapsource.h \
121 src/map/tileloader.h \
122 src/map/wmtsmap.h \
123 src/map/wmts.h \
124 src/map/wmsmap.h \
125 src/map/wms.h \
126 src/map/crs.h \
127 src/map/coordinatesystem.h \
128 src/map/pointd.h \
129 src/map/rectd.h \
130 src/map/geocentric.h \
131 src/map/mercator.h \
132 src/map/jnxmap.h \
133 src/map/krovak.h \
134 src/map/geotiffmap.h \
135 src/map/image.h \
136 src/map/mbtilesmap.h \
137 src/map/osm.h \
138 src/map/polarstereographic.h \
139 src/data/graph.h \
140 src/data/poi.h \
141 src/data/waypoint.h \
142 src/data/track.h \
143 src/data/route.h \
144 src/data/trackpoint.h \
145 src/data/data.h \
146 src/data/parser.h \
147 src/data/trackdata.h \
148 src/data/routedata.h \
149 src/data/path.h \
150 src/data/gpxparser.h \
151 src/data/tcxparser.h \
152 src/data/csvparser.h \
153 src/data/kmlparser.h \
154 src/data/fitparser.h \
155 src/data/igcparser.h \
156 src/data/nmeaparser.h \
157 src/data/oziparsers.h \
158 src/data/locparser.h \
159 src/data/slfparser.h \
160 src/data/dem.h \
161 src/data/polygon.h \
162 src/data/area.h \
163 src/map/obliquestereographic.h \
164 src/GUI/coordinatesitem.h \
165 src/map/rmap.h \
166 src/map/calibrationpoint.h \
167 src/map/color.h \
168 src/data/exifparser.h \
169 src/data/imageinfo.h \
170 src/map/imgmap.h \
171 src/map/IMG/img.h \
172 src/map/IMG/subfile.h \
173 src/map/IMG/trefile.h \
174 src/map/IMG/rgnfile.h \
175 src/map/IMG/lblfile.h \
176 src/map/IMG/vectortile.h \
177 src/map/IMG/subdiv.h \
178 src/map/IMG/units.h \
179 src/map/IMG/style.h \
180 src/map/IMG/netfile.h \
181 src/GUI/limitedcombobox.h \
182 src/GUI/pathtickitem.h
183 SOURCES += src/main.cpp \
184 src/common/coordinates.cpp \
185 src/common/rectc.cpp \
186 src/common/range.cpp \
187 src/common/util.cpp \
188 src/common/greatcircle.cpp \
189 src/common/programpaths.cpp \
190 src/common/tifffile.cpp \
191 src/GUI/app.cpp \
192 src/GUI/gui.cpp \
193 src/GUI/axisitem.cpp \
194 src/GUI/slideritem.cpp \
195 src/GUI/markeritem.cpp \
196 src/GUI/infoitem.cpp \
197 src/GUI/elevationgraph.cpp \
198 src/GUI/speedgraph.cpp \
199 src/GUI/sliderinfoitem.cpp \
200 src/GUI/filebrowser.cpp \
201 src/GUI/scaleitem.cpp \
202 src/GUI/graphview.cpp \
203 src/GUI/waypointitem.cpp \
204 src/GUI/palette.cpp \
205 src/GUI/heartrategraph.cpp \
206 src/GUI/trackinfo.cpp \
207 src/GUI/exportdialog.cpp \
208 src/GUI/fileselectwidget.cpp \
209 src/GUI/temperaturegraph.cpp \
210 src/GUI/trackitem.cpp \
211 src/GUI/tooltip.cpp \
212 src/GUI/routeitem.cpp \
213 src/GUI/graphitem.cpp \
214 src/GUI/pathitem.cpp \
215 src/GUI/griditem.cpp \
216 src/GUI/format.cpp \
217 src/GUI/cadencegraph.cpp \
218 src/GUI/powergraph.cpp \
219 src/GUI/gearratiograph.cpp \
220 src/GUI/optionsdialog.cpp \
221 src/GUI/colorbox.cpp \
222 src/GUI/stylecombobox.cpp \
223 src/GUI/oddspinbox.cpp \
224 src/GUI/percentslider.cpp \
225 src/GUI/elevationgraphitem.cpp \
226 src/GUI/speedgraphitem.cpp \
227 src/GUI/heartrategraphitem.cpp \
228 src/GUI/temperaturegraphitem.cpp \
229 src/GUI/cadencegraphitem.cpp \
230 src/GUI/powergraphitem.cpp \
231 src/GUI/gearratiographitem.cpp \
232 src/GUI/mapview.cpp \
233 src/GUI/areaitem.cpp \
234 src/map/IMG/bitmapline.cpp \
235 src/map/IMG/textpathitem.cpp \
236 src/map/IMG/textpointitem.cpp \
237 src/map/maplist.cpp \
238 src/map/onlinemap.cpp \
239 src/map/downloader.cpp \
240 src/map/emptymap.cpp \
241 src/map/ozimap.cpp \
242 src/map/tar.cpp \
243 src/map/atlas.cpp \
244 src/map/ozf.cpp \
245 src/map/matrix.cpp \
246 src/map/ellipsoid.cpp \
247 src/map/datum.cpp \
248 src/map/webmercator.cpp \
249 src/map/transversemercator.cpp \
250 src/map/utm.cpp \
251 src/map/lambertconic.cpp \
252 src/map/albersequal.cpp \
253 src/map/lambertazimuthal.cpp \
254 src/map/geotiff.cpp \
255 src/map/pcs.cpp \
256 src/map/transform.cpp \
257 src/map/mapfile.cpp \
258 src/map/projection.cpp \
259 src/map/gcs.cpp \
260 src/map/angularunits.cpp \
261 src/map/primemeridian.cpp \
262 src/map/linearunits.cpp \
263 src/map/mapsource.cpp \
264 src/map/tileloader.cpp \
265 src/map/wmtsmap.cpp \
266 src/map/wmts.cpp \
267 src/map/wmsmap.cpp \
268 src/map/wms.cpp \
269 src/map/crs.cpp \
270 src/map/coordinatesystem.cpp \
271 src/map/geocentric.cpp \
272 src/map/mercator.cpp \
273 src/map/jnxmap.cpp \
274 src/map/krovak.cpp \
275 src/map/map.cpp \
276 src/map/geotiffmap.cpp \
277 src/map/image.cpp \
278 src/map/mbtilesmap.cpp \
279 src/map/osm.cpp \
280 src/map/polarstereographic.cpp \
281 src/map/rectd.cpp \
282 src/data/data.cpp \
283 src/data/poi.cpp \
284 src/data/track.cpp \
285 src/data/route.cpp \
286 src/data/path.cpp \
287 src/data/gpxparser.cpp \
288 src/data/tcxparser.cpp \
289 src/data/csvparser.cpp \
290 src/data/kmlparser.cpp \
291 src/data/fitparser.cpp \
292 src/data/igcparser.cpp \
293 src/data/nmeaparser.cpp \
294 src/data/oziparsers.cpp \
295 src/data/locparser.cpp \
296 src/data/slfparser.cpp \
297 src/data/dem.cpp \
298 src/data/polygon.cpp \
299 src/map/obliquestereographic.cpp \
300 src/GUI/coordinatesitem.cpp \
301 src/map/rmap.cpp \
302 src/data/exifparser.cpp \
303 src/map/imgmap.cpp \
304 src/map/IMG/img.cpp \
305 src/map/IMG/subfile.cpp \
306 src/map/IMG/trefile.cpp \
307 src/map/IMG/rgnfile.cpp \
308 src/map/IMG/lblfile.cpp \
309 src/map/IMG/vectortile.cpp \
310 src/map/IMG/style.cpp \
311 src/map/IMG/netfile.cpp \
312 src/GUI/pathtickitem.cpp
314 greaterThan(QT_MAJOR_VERSION, 4) {
315 HEADERS += src/data/geojsonparser.h
316 SOURCES += src/data/geojsonparser.cpp
319 DEFINES += APP_VERSION=\\\"$$VERSION\\\"
320 DEFINES *= QT_USE_QSTRINGBUILDER
322 RESOURCES += gpxsee.qrc
323 TRANSLATIONS = lang/gpxsee_en.ts \
324 lang/gpxsee_cs.ts \
325 lang/gpxsee_sv.ts \
326 lang/gpxsee_de.ts \
327 lang/gpxsee_ru.ts \
328 lang/gpxsee_fi.ts \
329 lang/gpxsee_fr.ts \
330 lang/gpxsee_pl.ts \
331 lang/gpxsee_nb.ts \
332 lang/gpxsee_da.ts \
333 lang/gpxsee_tr.ts \
334 lang/gpxsee_es.ts \
335 lang/gpxsee_pt_BR.ts
337 macx {
338 ICON = icons/gpxsee.icns
339 QMAKE_INFO_PLIST = pkg/Info.plist
340 locale.path = Contents/Resources/translations
341 locale.files = lang/gpxsee_en.qm \
342 lang/gpxsee_cs.qm \
343 lang/gpxsee_de.qm \
344 lang/gpxsee_fi.qm \
345 lang/gpxsee_fr.qm \
346 lang/gpxsee_ru.qm \
347 lang/gpxsee_sv.qm \
348 lang/gpxsee_pl.qm \
349 lang/gpxsee_nb.qm \
350 lang/gpxsee_da.qm \
351 lang/gpxsee_tr.qm \
352 lang/gpxsee_es.qm \
353 lang/gpxsee_pt_BR.qm
354 csv.path = Contents/Resources
355 csv.files = pkg/csv
356 maps.path = Contents/Resources
357 maps.files = pkg/maps
358 icons.path = Contents/Resources/icons
359 icons.files = icons/formats/gpx.icns \
360 icons/formats/tcx.icns \
361 icons/formats/kml.icns \
362 icons/formats/fit.icns \
363 icons/formats/igc.icns \
364 icons/formats/nmea.icns \
365 icons/formats/plt.icns \
366 icons/formats/rte.icns \
367 icons/formats/wpt.icns \
368 icons/formats/loc.icns \
369 icons/formats/slf.icns \
370 icons/formats/json.icns
371 QMAKE_BUNDLE_DATA += locale maps icons csv
374 win32 {
375 RC_ICONS = icons/gpxsee.ico \
376 icons/formats/gpx.ico \
377 icons/formats/tcx.ico \
378 icons/formats/kml.ico \
379 icons/formats/fit.ico \
380 icons/formats/igc.ico \
381 icons/formats/nmea.ico \
382 icons/formats/plt.ico \
383 icons/formats/rte.ico \
384 icons/formats/wpt.ico \
385 icons/formats/loc.ico \
386 icons/formats/slf.ico \
387 icons/formats/json.ico
388 DEFINES += _USE_MATH_DEFINES \
389 NOGDI
392 unix:!macx {
393 isEmpty(PREFIX):PREFIX = /usr/local
394 DEFINES += PREFIX=\\\"$$PREFIX\\\"
396 maps.files = pkg/maps/*
397 maps.path = $$PREFIX/share/gpxsee/maps
398 csv.files = pkg/csv/*
399 csv.path = $$PREFIX/share/gpxsee/csv
400 locale.files = lang/*.qm
401 locale.path = $$PREFIX/share/gpxsee/translations
402 icon.files = icons/gpxsee.png
403 icon.path = $$PREFIX/share/pixmaps
404 desktop.files = pkg/gpxsee.desktop
405 desktop.path = $$PREFIX/share/applications
406 mime.files = pkg/gpxsee.xml
407 mime.path = $$PREFIX/share/mime/packages
408 target.path = $$PREFIX/bin
409 INSTALLS += target maps csv locale icon desktop mime