2013-10-07 00:52:34 +00:00
|
|
|
include(subsurface-configure.pri)
|
|
|
|
|
2014-01-15 08:30:32 +00:00
|
|
|
QT = core gui network svg
|
|
|
|
lessThan(QT_MAJOR_VERSION, 5) {
|
|
|
|
QT += webkit
|
|
|
|
} else {
|
|
|
|
QT += webkitwidgets
|
|
|
|
}
|
2013-10-07 00:52:34 +00:00
|
|
|
INCLUDEPATH += qt-ui $$PWD
|
2014-01-26 18:33:24 +00:00
|
|
|
DEPENDPATH += qt-ui
|
2013-10-07 00:52:34 +00:00
|
|
|
|
2013-10-07 06:12:59 +00:00
|
|
|
mac: TARGET = Subsurface
|
|
|
|
else: TARGET = subsurface
|
|
|
|
|
2014-01-09 01:43:31 +00:00
|
|
|
VERSION = 4.0.2
|
2013-10-07 00:52:34 +00:00
|
|
|
|
|
|
|
HEADERS = \
|
|
|
|
color.h \
|
|
|
|
deco.h \
|
|
|
|
device.h \
|
|
|
|
display.h \
|
|
|
|
dive.h \
|
|
|
|
divelist.h \
|
|
|
|
file.h \
|
|
|
|
flag.h \
|
|
|
|
gettextfromc.h \
|
|
|
|
gettext.h \
|
|
|
|
helpers.h \
|
|
|
|
libdivecomputer.h \
|
|
|
|
planner.h \
|
|
|
|
pref.h \
|
|
|
|
profile.h \
|
|
|
|
qt-gui.h \
|
|
|
|
qthelper.h \
|
|
|
|
qt-ui/about.h \
|
|
|
|
qt-ui/completionmodels.h \
|
|
|
|
qt-ui/divecomputermanagementdialog.h \
|
|
|
|
qt-ui/divelistview.h \
|
|
|
|
qt-ui/diveplanner.h \
|
|
|
|
qt-ui/downloadfromdivecomputer.h \
|
|
|
|
qt-ui/globe.h \
|
|
|
|
qt-ui/graphicsview-common.h \
|
|
|
|
qt-ui/kmessagewidget.h \
|
|
|
|
qt-ui/maintab.h \
|
|
|
|
qt-ui/mainwindow.h \
|
|
|
|
qt-ui/modeldelegates.h \
|
|
|
|
qt-ui/models.h \
|
|
|
|
qt-ui/preferences.h \
|
|
|
|
qt-ui/printdialog.h \
|
|
|
|
qt-ui/printlayout.h \
|
|
|
|
qt-ui/printoptions.h \
|
|
|
|
qt-ui/profilegraphics.h \
|
|
|
|
qt-ui/simplewidgets.h \
|
|
|
|
qt-ui/starwidget.h \
|
|
|
|
qt-ui/subsurfacewebservices.h \
|
|
|
|
qt-ui/tableview.h \
|
2014-01-27 13:44:26 +00:00
|
|
|
qt-ui/exif.h \
|
2013-10-07 00:52:34 +00:00
|
|
|
sha1.h \
|
|
|
|
statistics.h \
|
|
|
|
subsurface-icon.h \
|
|
|
|
subsurfacestartup.h \
|
|
|
|
uemis.h \
|
2013-10-16 19:05:19 +00:00
|
|
|
webservice.h \
|
2013-12-29 16:11:20 +00:00
|
|
|
qt-ui/divelogimportdialog.h \
|
2013-11-02 01:20:02 +00:00
|
|
|
qt-ui/tagwidget.h \
|
2014-01-09 17:21:29 +00:00
|
|
|
qt-ui/groupedlineedit.h \
|
2014-01-14 16:30:13 +00:00
|
|
|
qt-ui/usermanual.h \
|
2014-01-14 16:42:19 +00:00
|
|
|
qt-ui/profile/profilewidget2.h \
|
2014-01-14 16:59:24 +00:00
|
|
|
qt-ui/profile/diverectitem.h \
|
2014-01-14 17:12:00 +00:00
|
|
|
qt-ui/profile/divepixmapitem.h \
|
2014-01-14 17:23:57 +00:00
|
|
|
qt-ui/profile/divelineitem.h \
|
2014-01-14 18:01:17 +00:00
|
|
|
qt-ui/profile/divetextitem.h \
|
2014-01-14 18:20:15 +00:00
|
|
|
qt-ui/profile/animationfunctions.h \
|
2014-01-14 18:43:58 +00:00
|
|
|
qt-ui/profile/divecartesianaxis.h \
|
2014-01-14 19:17:17 +00:00
|
|
|
qt-ui/profile/diveplotdatamodel.h \
|
2014-01-16 17:02:32 +00:00
|
|
|
qt-ui/profile/diveprofileitem.h \
|
2014-02-05 16:25:28 +00:00
|
|
|
qt-ui/profile/diveeventitem.h \
|
|
|
|
qt-ui/profile/divetooltipitem.h
|
2013-10-07 00:52:34 +00:00
|
|
|
|
|
|
|
SOURCES = \
|
|
|
|
deco.c \
|
|
|
|
device.c \
|
|
|
|
dive.c \
|
|
|
|
divelist.c \
|
|
|
|
equipment.c \
|
|
|
|
file.c \
|
|
|
|
gettextfromc.cpp \
|
|
|
|
libdivecomputer.c \
|
|
|
|
main.cpp \
|
2014-01-16 02:03:11 +00:00
|
|
|
membuffer.c \
|
2013-10-07 00:52:34 +00:00
|
|
|
parse-xml.c \
|
|
|
|
planner.c \
|
|
|
|
profile.c \
|
|
|
|
qt-gui.cpp \
|
|
|
|
qthelper.cpp \
|
|
|
|
qt-ui/about.cpp \
|
|
|
|
qt-ui/completionmodels.cpp \
|
|
|
|
qt-ui/divecomputermanagementdialog.cpp \
|
|
|
|
qt-ui/divelistview.cpp \
|
|
|
|
qt-ui/diveplanner.cpp \
|
|
|
|
qt-ui/downloadfromdivecomputer.cpp \
|
|
|
|
qt-ui/globe.cpp \
|
|
|
|
qt-ui/graphicsview-common.cpp \
|
|
|
|
qt-ui/kmessagewidget.cpp \
|
|
|
|
qt-ui/maintab.cpp \
|
|
|
|
qt-ui/mainwindow.cpp \
|
|
|
|
qt-ui/modeldelegates.cpp \
|
|
|
|
qt-ui/models.cpp \
|
|
|
|
qt-ui/preferences.cpp \
|
|
|
|
qt-ui/printdialog.cpp \
|
|
|
|
qt-ui/printlayout.cpp \
|
|
|
|
qt-ui/printoptions.cpp \
|
|
|
|
qt-ui/profilegraphics.cpp \
|
|
|
|
qt-ui/simplewidgets.cpp \
|
|
|
|
qt-ui/starwidget.cpp \
|
|
|
|
qt-ui/subsurfacewebservices.cpp \
|
|
|
|
qt-ui/tableview.cpp \
|
2014-01-27 13:44:26 +00:00
|
|
|
qt-ui/exif.cpp \
|
2013-10-07 00:52:34 +00:00
|
|
|
save-xml.c \
|
|
|
|
sha1.c \
|
|
|
|
statistics.c \
|
2014-01-03 04:35:35 +00:00
|
|
|
strtod.c \
|
2013-10-07 00:52:34 +00:00
|
|
|
subsurfacestartup.c \
|
|
|
|
time.c \
|
|
|
|
uemis.c \
|
2013-10-16 19:05:19 +00:00
|
|
|
uemis-downloader.c \
|
2013-12-29 16:11:20 +00:00
|
|
|
qt-ui/divelogimportdialog.cpp \
|
2013-11-02 01:20:02 +00:00
|
|
|
qt-ui/tagwidget.cpp \
|
2014-01-09 17:21:29 +00:00
|
|
|
qt-ui/groupedlineedit.cpp \
|
2014-01-14 16:30:13 +00:00
|
|
|
qt-ui/usermanual.cpp \
|
2014-01-14 16:42:19 +00:00
|
|
|
qt-ui/profile/profilewidget2.cpp \
|
2014-01-14 16:59:24 +00:00
|
|
|
qt-ui/profile/diverectitem.cpp \
|
2014-01-14 17:12:00 +00:00
|
|
|
qt-ui/profile/divepixmapitem.cpp \
|
2014-01-14 17:23:57 +00:00
|
|
|
qt-ui/profile/divelineitem.cpp \
|
2014-01-14 18:01:17 +00:00
|
|
|
qt-ui/profile/divetextitem.cpp \
|
2014-01-14 18:20:15 +00:00
|
|
|
qt-ui/profile/animationfunctions.cpp \
|
2014-01-14 18:43:58 +00:00
|
|
|
qt-ui/profile/divecartesianaxis.cpp \
|
2014-01-14 19:17:17 +00:00
|
|
|
qt-ui/profile/diveplotdatamodel.cpp \
|
2014-01-16 17:02:32 +00:00
|
|
|
qt-ui/profile/diveprofileitem.cpp \
|
2014-02-05 16:25:28 +00:00
|
|
|
qt-ui/profile/diveeventitem.cpp \
|
|
|
|
qt-ui/profile/divetooltipitem.cpp
|
2013-10-07 00:52:34 +00:00
|
|
|
|
|
|
|
linux*: SOURCES += linux.c
|
|
|
|
mac: SOURCES += macos.c
|
|
|
|
win32: SOURCES += windows.c
|
|
|
|
|
|
|
|
FORMS = \
|
|
|
|
qt-ui/about.ui \
|
|
|
|
qt-ui/divecomputermanagementdialog.ui \
|
|
|
|
qt-ui/diveplanner.ui \
|
|
|
|
qt-ui/downloadfromdivecomputer.ui \
|
|
|
|
qt-ui/maintab.ui \
|
|
|
|
qt-ui/mainwindow.ui \
|
|
|
|
qt-ui/preferences.ui \
|
|
|
|
qt-ui/printoptions.ui \
|
|
|
|
qt-ui/renumber.ui \
|
2013-11-18 13:53:05 +00:00
|
|
|
qt-ui/shifttimes.ui \
|
2014-01-27 13:44:26 +00:00
|
|
|
qt-ui/shiftimagetimes.ui \
|
2013-10-25 00:30:21 +00:00
|
|
|
qt-ui/webservices.ui \
|
2013-10-16 19:05:19 +00:00
|
|
|
qt-ui/tableview.ui \
|
2014-01-09 17:21:29 +00:00
|
|
|
qt-ui/divelogimportdialog.ui \
|
|
|
|
qt-ui/usermanual.ui
|
2013-10-07 00:52:34 +00:00
|
|
|
|
|
|
|
RESOURCES = subsurface.qrc
|
|
|
|
|
2013-10-10 07:21:17 +00:00
|
|
|
TRANSLATIONS = \
|
2013-10-16 03:25:21 +00:00
|
|
|
translations/subsurface_source.ts \
|
2013-10-10 19:39:01 +00:00
|
|
|
translations/subsurface_bg_BG.ts \
|
|
|
|
translations/subsurface_da_DK.ts \
|
|
|
|
translations/subsurface_de_CH.ts \
|
|
|
|
translations/subsurface_de_DE.ts \
|
|
|
|
translations/subsurface_es_ES.ts \
|
|
|
|
translations/subsurface_et_EE.ts \
|
|
|
|
translations/subsurface_fi_FI.ts \
|
|
|
|
translations/subsurface_fr_FR.ts \
|
|
|
|
translations/subsurface_it_IT.ts \
|
|
|
|
translations/subsurface_nb_NO.ts \
|
|
|
|
translations/subsurface_nl_NL.ts \
|
|
|
|
translations/subsurface_pl_PL.ts \
|
|
|
|
translations/subsurface_pt_BR.ts \
|
|
|
|
translations/subsurface_pt_PT.ts \
|
|
|
|
translations/subsurface_ru_RU.ts \
|
|
|
|
translations/subsurface_sk_SK.ts \
|
2013-12-06 04:41:39 +00:00
|
|
|
translations/subsurface_sv_SE.ts \
|
|
|
|
translations/subsurface_zh_TW.ts \
|
2013-12-14 20:04:41 +00:00
|
|
|
translations/subsurface_he.ts
|
2013-10-07 00:52:34 +00:00
|
|
|
|
2013-10-11 20:51:03 +00:00
|
|
|
QTTRANSLATIONS = \
|
|
|
|
qt_da.qm \
|
|
|
|
qt_de.qm \
|
|
|
|
qt_es.qm \
|
|
|
|
qt_fr.qm \
|
|
|
|
qt_pl.qm \
|
|
|
|
qt_pt.qm \
|
|
|
|
qt_ru.qm \
|
|
|
|
qt_sk.qm \
|
|
|
|
qt_sv.qm
|
|
|
|
|
2013-10-11 16:31:58 +00:00
|
|
|
doc.commands += $$escape_expand(\\n\\t)$(MAKE) -C $$PWD/Documentation OUT=$$OUT_PWD/Documentation/ doc
|
2013-10-07 00:52:34 +00:00
|
|
|
all.depends += doc
|
|
|
|
QMAKE_EXTRA_TARGETS += doc all
|
|
|
|
|
2013-10-07 01:41:37 +00:00
|
|
|
DESKTOP_FILE = subsurface.desktop
|
2013-10-07 06:12:59 +00:00
|
|
|
mac: ICON = packaging/macosx/Subsurface.icns
|
|
|
|
else: ICON = subsurface-icon.svg
|
2013-10-07 01:41:37 +00:00
|
|
|
MANPAGE = subsurface.1
|
2013-10-07 06:12:59 +00:00
|
|
|
XSLT_FILES = xslt
|
2013-11-15 23:02:45 +00:00
|
|
|
ICONS_FILES = icons
|
2013-10-07 01:41:37 +00:00
|
|
|
DOC_FILES = $$OUT_PWD/Documentation/user-manual.html Documentation/images
|
2013-10-12 18:38:35 +00:00
|
|
|
MARBLEDIR = marbledata/maps marbledata/bitmaps
|
2013-11-28 01:54:30 +00:00
|
|
|
|
|
|
|
#DEPLOYMENT_PLUGIN += bearer/qnativewifibearer
|
|
|
|
DEPLOYMENT_PLUGIN += codecs/qcncodecs codecs/qjpcodecs codecs/qkrcodecs codecs/qtwcodecs
|
|
|
|
DEPLOYMENT_PLUGIN += imageformats/qgif imageformats/qjpeg imageformats/qsvg
|
|
|
|
DEPLOYMENT_PLUGIN += iconengines/qsvgicon
|
|
|
|
#DEPLOYMENT_PLUGIN += sqldrivers/qsqlite
|
2013-10-07 01:41:37 +00:00
|
|
|
|
2013-10-07 06:12:59 +00:00
|
|
|
# This information will go into the Windows .rc file and linked into the .exe
|
|
|
|
QMAKE_TARGET_COMPANY = subsurface team
|
|
|
|
QMAKE_TARGET_DESCRIPTION = subsurface dive log
|
|
|
|
QMAKE_TARGET_COPYRIGHT = Linus Torvalds, Dirk Hohndel and others
|
|
|
|
|
|
|
|
# And this is the Mac Info.plist file
|
|
|
|
# qmake automatically generates sed rules to replace:
|
|
|
|
# token qmake expansion
|
|
|
|
# @ICON@ $$ICON
|
|
|
|
# @TYPEINFO@ first 4 chars of $$QMAKE_PKGINFO_TYPEINFO
|
|
|
|
# @EXECUTABLE@ $$QMAKE_ORIG_TARGET
|
|
|
|
# @LIBRARY@ $$QMAKE_ORIG_TARGET
|
|
|
|
# @SHORT_VERSION@ $$VER_MAJ.$$VER_MIN
|
|
|
|
QMAKE_INFO_PLIST = packaging/macosx/Info.plist.in
|
|
|
|
|
|
|
|
OTHER_FILES += $$DESKTOPFILE $$ICON $$MANPAGE $$XSLT_FILES $$DOC_FILES $$MARBLEDIR \
|
|
|
|
$$QMAKE_INFO_PLIST
|
2013-10-07 01:41:37 +00:00
|
|
|
|
2014-02-07 02:14:47 +00:00
|
|
|
# enable or disable the dive planner
|
|
|
|
planner {
|
|
|
|
DEFINES += ENABLE_PLANNER
|
|
|
|
}
|
|
|
|
|
2013-10-07 00:52:34 +00:00
|
|
|
include(subsurface-gen-version.pri)
|
2013-10-07 01:41:37 +00:00
|
|
|
include(subsurface-install.pri)
|