diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-03-26 23:08:56 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-27 10:40:06 -0700 |
commit | 770bf9afba18a2d50ead56c0068dc07ed8cb63a1 (patch) | |
tree | 78dfc1706dad2affd6957cf974914745c2f172a8 /subsurface-configure.pri | |
parent | 027ffc41bb2e50ccb6a1b812a225773fb8227fee (diff) | |
download | subsurface-770bf9afba18a2d50ead56c0068dc07ed8cb63a1.tar.gz |
Introduce NO_MARBLE define, make GlobeGPS a dummy
Some users have requested a way to build subsurface without marble.
This hides all traces in the ui and creates a GlobeGPS-dummy thats
just a QLabel saying that marble is disabled, in case its shown
somehow. The dummy is there so we can just ignore the fact that marble
is disabled in the rest of the code.
Fixes #394
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-configure.pri')
-rw-r--r-- | subsurface-configure.pri | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri index c01af7ab8..84e259941 100644 --- a/subsurface-configure.pri +++ b/subsurface-configure.pri @@ -144,8 +144,10 @@ link_pkgconfig: packagesExist(libiconv): PKGCONFIG += libiconv # Before Marble 4.9, the GeoDataTreeModel.h header wasn't installed # Check if it's present by trying to compile # ### FIXME: implement that -win32: CONFIG(debug, debug|release): LIBS += -lmarblewidgetd -else: LIBS += -lmarblewidget +!contains(DEFINES, NO_MARBLE) { + win32: CONFIG(debug, debug|release): LIBS += -lmarblewidgetd + else: LIBS += -lmarblewidget +} libgit21-api { DEFINES += USE_LIBGIT21_API |