20 greaterThan(QT_MAJOR_VERSION
, 5) {
24 CONFIG
+= object_parallel_to_source
26 HEADERS
+= src
/common
/config
.h \
28 src
/common
/coordinates
.h \
33 src
/common
/textcodec
.h \
34 src
/common
/treenode
.h \
39 src
/common
/greatcircle
.h \
40 src
/common
/programpaths
.h \
41 src
/common
/tifffile
.h \
42 src
/common
/downloader
.h \
43 src
/common
/polygon
.h \
47 src
/GUI
/crosshairitem
.h \
48 src
/GUI
/motioninfoitem
.h \
49 src
/GUI
/pluginparameters
.h \
50 src
/GUI
/authenticationwidget
.h \
51 src
/GUI
/axislabelitem
.h \
52 src
/GUI
/dirselectwidget
.h \
53 src
/GUI
/flowlayout
.h \
54 src
/GUI
/graphicsscene
.h \
58 src
/GUI
/marginswidget
.h \
59 src
/GUI
/markerinfoitem
.h \
69 src
/GUI
/slideritem
.h \
70 src
/GUI
/markeritem
.h \
72 src
/GUI
/elevationgraph
.h \
73 src
/GUI
/speedgraph
.h \
74 src
/GUI
/sliderinfoitem
.h \
75 src
/GUI
/filebrowser
.h \
79 src
/GUI
/waypointitem
.h \
81 src
/GUI
/heartrategraph
.h \
83 src
/GUI
/fileselectwidget
.h \
84 src
/GUI
/temperaturegraph
.h \
93 src
/GUI
/cadencegraph
.h \
94 src
/GUI
/powergraph
.h \
95 src
/GUI
/gearratiograph
.h \
96 src
/GUI
/optionsdialog
.h \
98 src
/GUI
/stylecombobox
.h \
100 src
/GUI
/percentslider
.h \
101 src
/GUI
/elevationgraphitem
.h \
102 src
/GUI
/speedgraphitem
.h \
103 src
/GUI
/heartrategraphitem
.h \
104 src
/GUI
/temperaturegraphitem
.h \
105 src
/GUI
/cadencegraphitem
.h \
106 src
/GUI
/powergraphitem
.h \
107 src
/GUI
/gearratiographitem
.h \
108 src
/GUI
/oddspinbox
.h \
110 src
/GUI
/searchpointer
.h \
114 src
/GUI
/coordinatesitem
.h \
115 src
/GUI
/projectioncombobox
.h \
116 src
/GUI
/pathtickitem
.h \
117 src
/GUI
/pdfexportdialog
.h \
118 src
/GUI
/pngexportdialog
.h \
119 src
/GUI
/timezoneinfo
.h \
120 src
/GUI
/passwordedit
.h \
121 src
/data
/gpsdumpparser
.h \
123 src
/data
/twonavparser
.h \
124 src
/map
/ENC
/attributes
.h \
125 src
/map
/ENC
/mapdata
.h \
126 src
/map
/ENC
/atlasdata
.h \
127 src
/map
/ENC
/objects
.h \
128 src
/map
/ENC
/rastertile
.h \
129 src
/map
/ENC
/style
.h \
130 src
/map
/IMG
/section
.h \
132 src
/map
/conversion
.h \
136 src
/map
/ENC
/iso8211
.h \
140 src
/map
/osmdroidmap
.h \
141 src
/map
/proj
/polyconic
.h \
142 src
/map
/proj
/webmercator
.h \
143 src
/map
/proj
/transversemercator
.h \
144 src
/map
/proj
/latlon
.h \
145 src
/map
/proj
/lambertconic
.h \
146 src
/map
/proj
/lambertazimuthal
.h \
147 src
/map
/proj
/albersequal
.h \
148 src
/map
/proj
/mercator
.h \
149 src
/map
/proj
/krovak
.h \
150 src
/map
/proj
/polarstereographic
.h \
151 src
/map
/proj
/obliquestereographic
.h \
152 src
/map
/bitmapline
.h \
153 src
/map
/IMG
/bitstream
.h \
154 src
/map
/IMG
/deltastream
.h \
155 src
/map
/IMG
/gmapdata
.h \
156 src
/map
/IMG
/huffmanbuffer
.h \
157 src
/map
/IMG
/huffmanstream
.h \
158 src
/map
/IMG
/huffmantable
.h \
159 src
/map
/IMG
/huffmantext
.h \
160 src
/map
/IMG
/nodfile
.h \
161 src
/map
/IMG
/mapdata
.h \
162 src
/map
/IMG
/raster
.h \
163 src
/map
/IMG
/rastertile
.h \
164 src
/map
/IMG
/shield
.h \
165 src
/map
/IMG
/imgdata
.h \
166 src
/map
/IMG
/subfile
.h \
167 src
/map
/IMG
/trefile
.h \
168 src
/map
/IMG
/rgnfile
.h \
169 src
/map
/IMG
/lblfile
.h \
170 src
/map
/IMG
/vectortile
.h \
171 src
/map
/IMG
/subdiv
.h \
172 src
/map
/IMG
/style
.h \
173 src
/map
/IMG
/netfile
.h \
174 src
/map
/IMG
/label
.h \
175 src
/map
/mapsforge
/style
.h \
176 src
/map
/mapsforge
/mapdata
.h \
177 src
/map
/mapsforge
/rastertile
.h \
178 src
/map
/mapsforge
/subfile
.h \
180 src
/map
/textpathitem
.h \
181 src
/map
/textpointitem
.h \
184 src
/map
/invalidmap
.h \
186 src
/map
/projection
.h \
187 src
/map
/ellipsoid
.h \
189 src
/map
/sqlitemap
.h \
193 src
/map
/onlinemap
.h \
203 src
/map
/transform
.h \
206 src
/map
/angularunits
.h \
207 src
/map
/primemeridian
.h \
208 src
/map
/linearunits
.h \
210 src
/map
/mapsource
.h \
211 src
/map
/tileloader
.h \
218 src
/map
/coordinatesystem
.h \
221 src
/map
/geocentric
.h \
223 src
/map
/geotiffmap
.h \
225 src
/map
/mbtilesmap
.h \
228 src
/map
/calibrationpoint
.h \
231 src
/map
/mapsforgemap
.h \
232 src
/map
/worldfilemap
.h \
234 src
/map
/hillshading
.h \
235 src
/data
/itnparser
.h \
237 src
/data
/onmoveparsers
.h \
238 src
/data
/ov2parser
.h \
241 src
/data
/waypoint
.h \
244 src
/data
/trackpoint
.h \
247 src
/data
/trackdata
.h \
248 src
/data
/routedata
.h \
250 src
/data
/gpxparser
.h \
251 src
/data
/tcxparser
.h \
252 src
/data
/csvparser
.h \
253 src
/data
/kmlparser
.h \
254 src
/data
/fitparser
.h \
255 src
/data
/igcparser
.h \
256 src
/data
/nmeaparser
.h \
257 src
/data
/oziparsers
.h \
258 src
/data
/locparser
.h \
259 src
/data
/slfparser
.h \
260 src
/data
/demloader
.h \
262 src
/data
/exifparser
.h \
263 src
/data
/cupparser
.h \
264 src
/data
/gpiparser
.h \
266 src
/data
/smlparser
.h \
267 src
/data
/geojsonparser
.h
269 SOURCES
+= src
/main
.cpp \
270 src
/common
/coordinates
.cpp \
271 src
/common
/rectc
.cpp \
272 src
/common
/range
.cpp \
273 src
/common
/textcodec
.cpp \
274 src
/common
/util
.cpp \
275 src
/common
/greatcircle
.cpp \
276 src
/common
/programpaths
.cpp \
277 src
/common
/tifffile
.cpp \
278 src
/common
/downloader
.cpp \
281 src
/GUI
/crosshairitem
.cpp \
282 src
/GUI
/motioninfoitem
.cpp \
283 src
/GUI
/pluginparameters
.cpp \
284 src
/GUI
/settings
.cpp \
285 src
/GUI
/authenticationwidget
.cpp \
286 src
/GUI
/axislabelitem
.cpp \
287 src
/GUI
/dirselectwidget
.cpp \
288 src
/GUI
/flowlayout
.cpp \
289 src
/GUI
/infolabel
.cpp \
290 src
/GUI
/mapitem
.cpp \
291 src
/GUI
/marginswidget
.cpp \
292 src
/GUI
/markerinfoitem
.cpp \
294 src
/GUI
/thumbnail
.cpp \
297 src
/GUI
/axisitem
.cpp \
298 src
/GUI
/slideritem
.cpp \
299 src
/GUI
/markeritem
.cpp \
300 src
/GUI
/infoitem
.cpp \
301 src
/GUI
/elevationgraph
.cpp \
302 src
/GUI
/speedgraph
.cpp \
303 src
/GUI
/sliderinfoitem
.cpp \
304 src
/GUI
/filebrowser
.cpp \
305 src
/GUI
/scaleitem
.cpp \
306 src
/GUI
/graphview
.cpp \
307 src
/GUI
/waypointitem
.cpp \
308 src
/GUI
/palette
.cpp \
309 src
/GUI
/heartrategraph
.cpp \
310 src
/GUI
/trackinfo
.cpp \
311 src
/GUI
/fileselectwidget
.cpp \
312 src
/GUI
/temperaturegraph
.cpp \
313 src
/GUI
/trackitem
.cpp \
314 src
/GUI
/routeitem
.cpp \
315 src
/GUI
/graphitem
.cpp \
316 src
/GUI
/pathitem
.cpp \
317 src
/GUI
/griditem
.cpp \
319 src
/GUI
/cadencegraph
.cpp \
320 src
/GUI
/powergraph
.cpp \
321 src
/GUI
/gearratiograph
.cpp \
322 src
/GUI
/optionsdialog
.cpp \
323 src
/GUI
/colorbox
.cpp \
324 src
/GUI
/stylecombobox
.cpp \
325 src
/GUI
/oddspinbox
.cpp \
326 src
/GUI
/percentslider
.cpp \
327 src
/GUI
/elevationgraphitem
.cpp \
328 src
/GUI
/speedgraphitem
.cpp \
329 src
/GUI
/heartrategraphitem
.cpp \
330 src
/GUI
/temperaturegraphitem
.cpp \
331 src
/GUI
/cadencegraphitem
.cpp \
332 src
/GUI
/powergraphitem
.cpp \
333 src
/GUI
/gearratiographitem
.cpp \
334 src
/GUI
/mapview
.cpp \
335 src
/GUI
/areaitem
.cpp \
336 src
/GUI
/coordinatesitem
.cpp \
337 src
/GUI
/pathtickitem
.cpp \
338 src
/GUI
/graphicsscene
.cpp \
339 src
/GUI
/pdfexportdialog
.cpp \
340 src
/GUI
/pngexportdialog
.cpp \
341 src
/GUI
/projectioncombobox
.cpp \
342 src
/GUI
/passwordedit
.cpp \
343 src
/map
/ENC
/atlasdata
.cpp \
344 src
/map
/ENC
/mapdata
.cpp \
345 src
/map
/ENC
/rastertile
.cpp \
346 src
/map
/ENC
/style
.cpp \
347 src
/map
/conversion
.cpp \
348 src
/map
/encatlas
.cpp \
350 src
/map
/ENC
/iso8211
.cpp \
351 src
/map
/gemfmap
.cpp \
352 src
/map
/gmifile
.cpp \
353 src
/map
/oruxmap
.cpp \
354 src
/map
/osmdroidmap
.cpp \
355 src
/map
/proj
/polyconic
.cpp \
356 src
/map
/proj
/webmercator
.cpp \
357 src
/map
/proj
/transversemercator
.cpp \
358 src
/map
/proj
/lambertconic
.cpp \
359 src
/map
/proj
/albersequal
.cpp \
360 src
/map
/proj
/lambertazimuthal
.cpp \
361 src
/map
/proj
/mercator
.cpp \
362 src
/map
/proj
/krovak
.cpp \
363 src
/map
/proj
/polarstereographic
.cpp \
364 src
/map
/proj
/obliquestereographic
.cpp \
365 src
/map
/bitmapline
.cpp \
366 src
/map
/IMG
/bitstream
.cpp \
367 src
/map
/IMG
/deltastream
.cpp \
368 src
/map
/IMG
/gmapdata
.cpp \
369 src
/map
/IMG
/huffmanbuffer
.cpp \
370 src
/map
/IMG
/huffmanstream
.cpp \
371 src
/map
/IMG
/huffmantable
.cpp \
372 src
/map
/IMG
/huffmantext
.cpp \
373 src
/map
/IMG
/nodfile
.cpp \
374 src
/map
/IMG
/mapdata
.cpp \
375 src
/map
/IMG
/rastertile
.cpp \
376 src
/map
/IMG
/imgdata
.cpp \
377 src
/map
/IMG
/subfile
.cpp \
378 src
/map
/IMG
/trefile
.cpp \
379 src
/map
/IMG
/rgnfile
.cpp \
380 src
/map
/IMG
/lblfile
.cpp \
381 src
/map
/IMG
/vectortile
.cpp \
382 src
/map
/IMG
/style
.cpp \
383 src
/map
/IMG
/netfile
.cpp \
384 src
/map
/mapsforge
/style
.cpp \
385 src
/map
/mapsforge
/mapdata
.cpp \
386 src
/map
/mapsforge
/rastertile
.cpp \
387 src
/map
/mapsforge
/subfile
.cpp \
389 src
/map
/prjfile
.cpp \
391 src
/map
/textpathitem
.cpp \
392 src
/map
/textpointitem
.cpp \
395 src
/map
/maplist
.cpp \
396 src
/map
/onlinemap
.cpp \
397 src
/map
/emptymap
.cpp \
399 src
/map
/sqlitemap
.cpp \
404 src
/map
/ellipsoid
.cpp \
407 src
/map
/geotiff
.cpp \
409 src
/map
/transform
.cpp \
410 src
/map
/mapfile
.cpp \
411 src
/map
/projection
.cpp \
413 src
/map
/angularunits
.cpp \
414 src
/map
/primemeridian
.cpp \
415 src
/map
/linearunits
.cpp \
416 src
/map
/mapsource
.cpp \
417 src
/map
/tileloader
.cpp \
418 src
/map
/wldfile
.cpp \
419 src
/map
/wmtsmap
.cpp \
424 src
/map
/coordinatesystem
.cpp \
425 src
/map
/geocentric
.cpp \
428 src
/map
/geotiffmap
.cpp \
430 src
/map
/mbtilesmap
.cpp \
434 src
/map
/textitem
.cpp \
436 src
/map
/mapsforgemap
.cpp \
437 src
/map
/worldfilemap
.cpp \
438 src
/map
/hillshading
.cpp \
439 src
/data
/gpsdumpparser
.cpp \
440 src
/data
/twonavparser
.cpp \
441 src
/data
/address
.cpp \
442 src
/data
/itnparser
.cpp \
443 src
/data
/onmoveparsers
.cpp \
444 src
/data
/ov2parser
.cpp \
445 src
/data
/waypoint
.cpp \
451 src
/data
/gpxparser
.cpp \
452 src
/data
/tcxparser
.cpp \
453 src
/data
/csvparser
.cpp \
454 src
/data
/kmlparser
.cpp \
455 src
/data
/fitparser
.cpp \
456 src
/data
/igcparser
.cpp \
457 src
/data
/nmeaparser
.cpp \
458 src
/data
/oziparsers
.cpp \
459 src
/data
/locparser
.cpp \
460 src
/data
/slfparser
.cpp \
461 src
/data
/demloader
.cpp \
462 src
/data
/exifparser
.cpp \
463 src
/data
/cupparser
.cpp \
464 src
/data
/gpiparser
.cpp \
465 src
/data
/smlparser
.cpp \
466 src
/data
/geojsonparser
.cpp
468 DEFINES
+= APP_VERSION
=\\\"$$VERSION
\\\" \
469 QT_NO_DEPRECATED_WARNINGS
471 RESOURCES
+= gpxsee
.qrc
472 TRANSLATIONS
= lang
/gpxsee_en
.ts \
484 lang
/gpxsee_pt_BR
.ts \
494 RESOURCES
+= theme
-grayscale
.qrc
496 ICON
= icons
/app
/gpxsee
.icns
497 QMAKE_INFO_PLIST
= pkg
/mac
/Info
.plist
498 locale
.path
= Contents
/Resources
/translations
499 locale
.files
= $$
files(lang
/*.qm)
500 crs.path = Contents/Resources
502 maps.path = Contents/Resources
503 maps.files = data/maps
504 symbols.path = Contents/Resources/symbols
505 symbols.files = $$files(icons/symbols/*.png)
506 icons.path = Contents/Resources/icons
507 icons.files = $$files(icons/formats/*.icns)
508 lproj.path = Contents/Resources
509 lproj.files = $$files(pkg/mac/lproj/*)
510 QMAKE_BUNDLE_DATA += locale maps symbols icons crs lproj
515 RESOURCES += theme-color.qrc
517 QMAKE_TARGET_DESCRIPTION = GPXSee
518 QMAKE_TARGET_COPYRIGHT = Copyright (c) 2015-2024 Martin Tuma
519 RC_ICONS = icons/app/gpxsee.ico \
520 icons/formats/gpx.ico \
521 icons/formats/tcx.ico \
522 icons/formats/kml.ico \
523 icons/formats/fit.ico \
524 icons/formats/igc.ico \
525 icons/formats/nmea.ico \
526 icons/formats/plt.ico \
527 icons/formats/rte.ico \
528 icons/formats/wpt.ico \
529 icons/formats/loc.ico \
530 icons/formats/slf.ico \
531 icons/formats/json.ico \
532 icons/formats/cup.ico \
533 icons/formats/gpi.ico \
534 icons/formats/sml.ico \
535 icons/formats/img.ico \
536 icons/formats/jnx.ico \
537 icons/formats/kap.ico \
538 icons/formats/map.ico \
539 icons/formats/mbts.ico \
540 icons/formats/rmap.ico \
541 icons/formats/tba.ico \
542 icons/formats/aqm.ico \
543 icons/formats/sqlt.ico \
544 icons/formats/ov2.ico \
545 icons/formats/itn.ico \
546 icons/formats/wld.ico \
547 icons/formats/omd.ico \
548 icons/formats/ghp.ico \
549 icons/formats/qct.ico \
550 icons/formats/trk.ico \
551 icons/formats/gemf.ico \
552 icons/formats/000.ico \
553 icons/formats/031.ico
554 DEFINES += _USE_MATH_DEFINES \
558 unix:!macx:!android {
559 RESOURCES += theme-grayscale.qrc
561 isEmpty(PREFIX):PREFIX = /usr/local
562 maps.files = $$files(data/maps/*)
563 maps.path = $$PREFIX/share/gpxsee/maps
564 crs.files = $$files(data/CRS/*)
565 crs.path = $$PREFIX/share/gpxsee/CRS
566 symbols.files = $$files(icons/symbols/*.png)
567 symbols.path = $$PREFIX/share/gpxsee/symbols
568 locale.files = $$files(lang/*.qm)
569 locale.path = $$PREFIX/share/gpxsee/translations
570 icon.files = $$files(icons/app/hicolor/*)
571 icon.path = $$PREFIX/share/icons/hicolor
572 desktop.files = pkg/linux/gpxsee.desktop
573 desktop.path = $$PREFIX/share/applications
574 mime.files = pkg/linux/gpxsee.xml
575 mime.path = $$PREFIX/share/mime/packages
576 appdata.files = pkg/linux/gpxsee.appdata.xml
577 appdata.path = $$PREFIX/share/metainfo
578 target.path = $$PREFIX/bin
579 INSTALLS += target maps crs symbols locale icon desktop mime appdata
585 HEADERS += src/GUI/navigationwidget.h
586 SOURCES += src/GUI/navigationwidget.cpp
588 RESOURCES += theme-color.qrc
590 defineReplace(versionCode) {
591 segments = $$split(1, ".")
592 for (segment, segments): \
593 vCode = "$$first(vCode)$$format_number($$segment, width=3 zeropad)"
594 contains(ANDROID_TARGET_ARCH, armeabi-v7a): \
596 contains(ANDROID_TARGET_ARCH, arm64-v8a): \
598 contains(ANDROID_TARGET_ARCH, x86): \
600 contains(ANDROID_TARGET_ARCH, x86_64): \
603 return($$first(vCode)$$first(suffix))
606 !include($$OPENSSL_PATH/openssl.pri) {
607 message("OpenSSL not found, building without HTTPS support!")
610 ANDROID_TARGET_SDK_VERSION = 33
611 ANDROID_VERSION_NAME = $$VERSION
612 ANDROID_VERSION_CODE = $$versionCode($$ANDROID_VERSION_NAME)
613 ANDROID_PACKAGE_SOURCE_DIR = $$PWD/pkg/android
615 pkg/android/AndroidManifest.xml \
616 pkg/android/build.gradle \
617 pkg/android/res/values/libs.xml
619 maps.files = $$files(data/maps/*)
620 maps.path = /assets/maps
621 crs.files = $$files(data/CRS/*)
622 crs.path = /assets/CRS
623 symbols.files = $$files(icons/symbols/*.png)
624 symbols.path = /assets/symbols
625 translations.files = $$files(lang/*.qm)
626 translations.path = /assets/translations
627 INSTALLS += maps crs symbols translations