summaryrefslogtreecommitdiffstats
path: root/app/app.pro
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-09-09 00:00:12 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-09-09 01:23:22 -0700
commit538634c916e66e47cceaee5a98131eaadd60b269 (patch)
tree2cfdc8daf7a3b8082b932dadb1ea52d298b742c2 /app/app.pro
parentfb68a3ddc7fcdf67c62fcde32914d4ed3936680a (diff)
qml: add OpenStreetMaps map engine option
To allow testing in regions without easily accessible MapBox API keys add an ENABLE_OSM build option. Bug-AGL: SPEC-2667 Change-Id: I8ba72b774ed0ab1cf740dc0ebdb3048a6f403696 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/app.pro')
-rw-r--r--app/app.pro12
1 files changed, 10 insertions, 2 deletions
diff --git a/app/app.pro b/app/app.pro
index 9965675..da5d28b 100644
--- a/app/app.pro
+++ b/app/app.pro
@@ -26,8 +26,16 @@ SOURCES += main.cpp \
RESOURCES += \
navigation.qrc \
- images/images.qrc \
- mapbox/mapbox.qrc
+ images/images.qrc
+
+ENABLE_OSM = $$ENABLE_OSM
+
+equals(ENABLE_OSM, 1) {
+ DEFINES += ENABLE_OSM
+ RESOURCES += openstreetmaps/openstreetmaps.qrc
+} else {
+ RESOURCES += mapbox/mapbox.qrc
+}
LIBS += $$OUT_PWD/../dbus_interface/libdbus_interface.a
INCLUDEPATH += $$OUT_PWD/../dbus_interface