diff options
Diffstat (limited to 'subsurface.pro')
-rw-r--r-- | subsurface.pro | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/subsurface.pro b/subsurface.pro index fe7061f55..3944da095 100644 --- a/subsurface.pro +++ b/subsurface.pro @@ -4,7 +4,8 @@ QT = core gui network svg lessThan(QT_MAJOR_VERSION, 5) { QT += webkit } else { - QT += webkitwidgets + !android: QT += webkitwidgets + android: QT += androidextras } INCLUDEPATH += qt-ui $$PWD DEPENDPATH += qt-ui @@ -27,6 +28,8 @@ HEADERS = \ helpers.h \ libdivecomputer.h \ planner.h \ + worldmap-save.h \ + worldmap-options.h \ pref.h \ profile.h \ qt-gui.h \ @@ -75,6 +78,12 @@ HEADERS = \ qt-ui/profile/divetooltipitem.h \ qt-ui/profile/ruleritem.h +android: HEADERS -= \ + qt-ui/usermanual.h \ + qt-ui/printdialog.h \ + qt-ui/printlayout.h \ + qt-ui/printoptions.h + SOURCES = \ deco.c \ device.c \ @@ -90,6 +99,7 @@ SOURCES = \ parse-xml.c \ planner.c \ profile.c \ + worldmap-save.c \ qt-gui.cpp \ qthelper.cpp \ qt-ui/about.cpp \ @@ -140,10 +150,17 @@ SOURCES = \ qt-ui/profile/divetooltipitem.cpp \ qt-ui/profile/ruleritem.cpp -linux*: SOURCES += linux.c +android: SOURCES += android.cpp +else: linux*: SOURCES += linux.c mac: SOURCES += macos.c win32: SOURCES += windows.c +android: SOURCES -= \ + qt-ui/usermanual.cpp \ + qt-ui/printdialog.cpp \ + qt-ui/printlayout.cpp \ + qt-ui/printoptions.cpp + FORMS = \ qt-ui/about.ui \ qt-ui/divecomputermanagementdialog.ui \ @@ -161,6 +178,9 @@ FORMS = \ qt-ui/divelogimportdialog.ui \ qt-ui/usermanual.ui +# Nether usermanual or printing is supported on android right now +android: FORMS -= qt-ui/usermanual.ui qt-ui/printoptions.ui + RESOURCES = subsurface.qrc TRANSLATIONS = \ @@ -204,10 +224,14 @@ QTTRANSLATIONS = \ qt_sv.qm \ qt_zh_TW.qm -doc.commands += $(CHK_DIR_EXISTS) $$OUT_PWD/Documentation$$escape_expand(\\n\\t)$(MAKE) -C $$PWD/Documentation OUT=$$OUT_PWD/Documentation/ doc +doc.commands += $(CHK_DIR_EXISTS) $$OUT_PWD/Documentation || $(MKDIR) $$OUT_PWD/Documentation $$escape_expand(\\n\\t)$(MAKE) -C $$PWD/Documentation OUT=$$OUT_PWD/Documentation/ doc all.depends += doc QMAKE_EXTRA_TARGETS += doc all +marbledata.commands += $(CHK_DIR_EXISTS) $$OUT_PWD/marbledata || $(COPY_DIR) $$PWD/marbledata $$OUT_PWD +all.depends += marbledata +QMAKE_EXTRA_TARGETS += marbledata + DESKTOP_FILE = subsurface.desktop mac: ICON = packaging/macosx/Subsurface.icns else: ICON = subsurface-icon.svg |