2014-07-09 17:03:29 +00:00
|
|
|
CODECFORTR = UTF-8
|
|
|
|
CODECFORSRC = UTF-8
|
2013-10-07 00:52:34 +00:00
|
|
|
include(subsurface-configure.pri)
|
|
|
|
|
2014-12-25 22:37:36 +00:00
|
|
|
QT_CONFIG -= no-pkg-config
|
2014-08-29 16:38:02 +00:00
|
|
|
QT = core gui network svg
|
2014-01-15 08:30:32 +00:00
|
|
|
lessThan(QT_MAJOR_VERSION, 5) {
|
|
|
|
QT += webkit
|
|
|
|
} else {
|
2014-08-29 16:38:02 +00:00
|
|
|
QT += printsupport concurrent
|
2014-06-30 20:45:52 +00:00
|
|
|
!android: QT += webkitwidgets webkit
|
2014-03-26 22:08:57 +00:00
|
|
|
android: QT += androidextras
|
2014-01-15 08:30:32 +00:00
|
|
|
}
|
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-08-21 01:07:35 +00:00
|
|
|
QMAKE_CLEAN += $$TARGET
|
|
|
|
|
2015-02-04 15:42:29 +00:00
|
|
|
VERSION = 4.4
|
2015-01-30 16:56:12 +00:00
|
|
|
VERSION_FILE = $$OUT_PWD/ssrf-version.h
|
|
|
|
# create a blank VERSION_FILE if missing
|
|
|
|
system(cat $$VERSION_FILE > /dev/null 2>&1 || touch $$VERSION_FILE)
|
2013-10-07 00:52:34 +00:00
|
|
|
|
|
|
|
HEADERS = \
|
2015-01-30 16:56:12 +00:00
|
|
|
$$VERSION_FILE \
|
2015-02-15 18:25:18 +00:00
|
|
|
version.h \
|
2014-10-29 15:14:44 +00:00
|
|
|
cochran.h \
|
2013-10-07 00:52:34 +00:00
|
|
|
color.h \
|
|
|
|
deco.h \
|
|
|
|
device.h \
|
|
|
|
display.h \
|
|
|
|
dive.h \
|
|
|
|
divelist.h \
|
2015-02-11 19:22:00 +00:00
|
|
|
divesite.h \
|
2013-10-07 00:52:34 +00:00
|
|
|
file.h \
|
|
|
|
gettextfromc.h \
|
|
|
|
gettext.h \
|
|
|
|
helpers.h \
|
|
|
|
libdivecomputer.h \
|
|
|
|
planner.h \
|
2014-05-23 18:49:49 +00:00
|
|
|
save-html.h \
|
2014-03-30 20:14:56 +00:00
|
|
|
worldmap-save.h \
|
|
|
|
worldmap-options.h \
|
2013-10-07 00:52:34 +00:00
|
|
|
pref.h \
|
|
|
|
profile.h \
|
2014-08-24 18:48:22 +00:00
|
|
|
gaspressures.h \
|
2013-10-07 00:52:34 +00:00
|
|
|
qt-gui.h \
|
|
|
|
qthelper.h \
|
2014-06-25 13:36:30 +00:00
|
|
|
units.h \
|
2014-05-12 16:53:26 +00:00
|
|
|
divecomputer.h \
|
2013-10-07 00:52:34 +00:00
|
|
|
qt-ui/about.h \
|
|
|
|
qt-ui/completionmodels.h \
|
|
|
|
qt-ui/divecomputermanagementdialog.h \
|
|
|
|
qt-ui/divelistview.h \
|
2014-05-30 17:38:27 +00:00
|
|
|
qt-ui/divepicturewidget.h \
|
2013-10-07 00:52:34 +00:00
|
|
|
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 \
|
2014-10-15 13:30:50 +00:00
|
|
|
qt-ui/metrics.h \
|
2013-10-07 00:52:34 +00:00
|
|
|
qt-ui/preferences.h \
|
|
|
|
qt-ui/printdialog.h \
|
|
|
|
qt-ui/printlayout.h \
|
|
|
|
qt-ui/printoptions.h \
|
|
|
|
qt-ui/simplewidgets.h \
|
|
|
|
qt-ui/starwidget.h \
|
|
|
|
qt-ui/subsurfacewebservices.h \
|
|
|
|
qt-ui/tableview.h \
|
2014-06-02 21:28:02 +00:00
|
|
|
exif.h \
|
2013-10-07 00:52:34 +00:00
|
|
|
sha1.h \
|
|
|
|
statistics.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 \
|
2014-02-27 16:28:58 +00:00
|
|
|
qt-ui/profile/divetooltipitem.h \
|
2014-04-02 19:41:39 +00:00
|
|
|
qt-ui/profile/ruleritem.h \
|
2014-08-15 00:22:27 +00:00
|
|
|
qt-ui/profile/tankitem.h \
|
2014-05-20 16:33:32 +00:00
|
|
|
qt-ui/updatemanager.h \
|
2014-06-13 17:56:46 +00:00
|
|
|
qt-ui/divelogexportdialog.h \
|
2014-06-14 19:27:57 +00:00
|
|
|
qt-ui/usersurvey.h \
|
2014-05-29 15:54:19 +00:00
|
|
|
subsurfacesysinfo.h \
|
2014-05-30 06:56:27 +00:00
|
|
|
qt-ui/configuredivecomputerdialog.h \
|
2014-06-20 04:57:20 +00:00
|
|
|
configuredivecomputer.h \
|
|
|
|
configuredivecomputerthreads.h \
|
2014-08-25 17:52:45 +00:00
|
|
|
devicedetails.h \
|
|
|
|
qt-ui/statistics/monthstatistics.h \
|
|
|
|
qt-ui/statistics/statisticswidget.h \
|
|
|
|
qt-ui/statistics/statisticsbar.h \
|
2014-09-21 14:11:58 +00:00
|
|
|
qt-ui/statistics/yearstatistics.h \
|
2014-11-13 18:31:03 +00:00
|
|
|
qt-ui/diveshareexportdialog.h \
|
2015-02-11 06:28:43 +00:00
|
|
|
qt-ui/filtermodels.h \
|
|
|
|
qt-ui/undocommands.h
|
2013-10-07 00:52:34 +00:00
|
|
|
|
2014-03-26 22:36:06 +00:00
|
|
|
android: HEADERS -= \
|
|
|
|
qt-ui/usermanual.h \
|
|
|
|
qt-ui/printdialog.h \
|
|
|
|
qt-ui/printlayout.h \
|
|
|
|
qt-ui/printoptions.h
|
2014-03-26 22:35:24 +00:00
|
|
|
|
2013-10-07 00:52:34 +00:00
|
|
|
SOURCES = \
|
2015-02-15 18:25:18 +00:00
|
|
|
version.c \
|
2014-10-18 01:03:37 +00:00
|
|
|
cochran.c \
|
2013-10-07 00:52:34 +00:00
|
|
|
deco.c \
|
|
|
|
device.c \
|
|
|
|
dive.c \
|
|
|
|
divelist.c \
|
2015-02-11 19:22:00 +00:00
|
|
|
divesite.c \
|
2013-10-07 00:52:34 +00:00
|
|
|
equipment.c \
|
|
|
|
file.c \
|
|
|
|
gettextfromc.cpp \
|
2015-01-23 03:40:01 +00:00
|
|
|
git-access.c \
|
2013-10-07 00:52:34 +00:00
|
|
|
libdivecomputer.c \
|
2014-11-07 16:30:44 +00:00
|
|
|
liquivision.c \
|
2014-03-07 03:27:28 +00:00
|
|
|
load-git.c \
|
2013-10-07 00:52:34 +00:00
|
|
|
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 \
|
2014-08-24 18:48:22 +00:00
|
|
|
gaspressures.c \
|
2014-05-12 16:53:26 +00:00
|
|
|
divecomputer.cpp \
|
2014-03-30 20:14:56 +00:00
|
|
|
worldmap-save.c \
|
2014-05-23 18:49:49 +00:00
|
|
|
save-html.c \
|
2013-10-07 00:52:34 +00:00
|
|
|
qt-gui.cpp \
|
|
|
|
qthelper.cpp \
|
|
|
|
qt-ui/about.cpp \
|
|
|
|
qt-ui/completionmodels.cpp \
|
|
|
|
qt-ui/divecomputermanagementdialog.cpp \
|
|
|
|
qt-ui/divelistview.cpp \
|
2014-05-30 17:38:27 +00:00
|
|
|
qt-ui/divepicturewidget.cpp \
|
2013-10-07 00:52:34 +00:00
|
|
|
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 \
|
2014-10-15 13:30:50 +00:00
|
|
|
qt-ui/metrics.cpp \
|
2013-10-07 00:52:34 +00:00
|
|
|
qt-ui/preferences.cpp \
|
|
|
|
qt-ui/printdialog.cpp \
|
|
|
|
qt-ui/printlayout.cpp \
|
|
|
|
qt-ui/printoptions.cpp \
|
|
|
|
qt-ui/simplewidgets.cpp \
|
|
|
|
qt-ui/starwidget.cpp \
|
|
|
|
qt-ui/subsurfacewebservices.cpp \
|
|
|
|
qt-ui/tableview.cpp \
|
2014-06-02 21:28:02 +00:00
|
|
|
exif.cpp \
|
Initial implementation of git save format
This saves the dive data into a git object repository instead of a
single XML file.
We create a git object tree with each dive as a separate file,
hierarchically by trip and date.
NOTE 1: This largely duplicates the XML saving code, because trying to
share it seemed just too painful: the logic is very similar, but the
details of the actual strings end up differing sufficiently that there
are tons of trivial differences.
The git save format is line-based with minimal quoting, while XML quotes
everything with either "<..\>" or using single quotes around attributes.
NOTE 2: You currently need a dummy "file" to save to, which points to
the real save location: the git repository and branch to be used. We
should make this a config thing, but for testing, do something like
this:
echo git /home/torvalds/scuba:linus > git-test
to create that git information file, and when you use "Save To" and
specify "git-test" as the file to save to, subsurface will use the new
git save logic to save to the branch "linus" in the repository found at
"/home/torvalds/scuba".
NOTE 3: The git save format uses just the git object directory, it does
*not* check out the result in any git working tree or index. So after
you do a save, you can do
git log -p linus
to see what actually happened in that branch, but it will not affect any
actual checked-out state in the repository.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-03-06 21:28:39 +00:00
|
|
|
save-git.c \
|
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 \
|
2014-02-27 16:28:58 +00:00
|
|
|
qt-ui/profile/divetooltipitem.cpp \
|
2014-04-02 19:41:39 +00:00
|
|
|
qt-ui/profile/ruleritem.cpp \
|
2014-08-15 00:22:27 +00:00
|
|
|
qt-ui/profile/tankitem.cpp \
|
2014-05-20 16:33:32 +00:00
|
|
|
qt-ui/updatemanager.cpp \
|
2014-06-13 17:56:46 +00:00
|
|
|
qt-ui/divelogexportdialog.cpp \
|
2014-06-14 19:27:57 +00:00
|
|
|
qt-ui/usersurvey.cpp \
|
2014-05-29 15:54:19 +00:00
|
|
|
subsurfacesysinfo.cpp \
|
2014-05-30 06:56:27 +00:00
|
|
|
qt-ui/configuredivecomputerdialog.cpp \
|
2014-06-20 04:57:20 +00:00
|
|
|
configuredivecomputer.cpp \
|
|
|
|
configuredivecomputerthreads.cpp \
|
2014-08-25 17:52:45 +00:00
|
|
|
devicedetails.cpp \
|
|
|
|
qt-ui/statistics/statisticswidget.cpp \
|
|
|
|
qt-ui/statistics/yearstatistics.cpp \
|
|
|
|
qt-ui/statistics/statisticsbar.cpp \
|
2014-09-21 14:11:58 +00:00
|
|
|
qt-ui/statistics/monthstatistics.cpp \
|
2014-11-13 18:31:03 +00:00
|
|
|
qt-ui/diveshareexportdialog.cpp \
|
2015-02-11 06:28:43 +00:00
|
|
|
qt-ui/filtermodels.cpp \
|
|
|
|
qt-ui/undocommands.cpp
|
2013-10-07 00:52:34 +00:00
|
|
|
|
2014-03-26 22:08:57 +00:00
|
|
|
android: SOURCES += android.cpp
|
2014-10-13 11:05:17 +00:00
|
|
|
else: win32: SOURCES += windows.c
|
|
|
|
else: mac: SOURCES += macos.c
|
|
|
|
else: SOURCES += linux.c # All other Unix, really
|
2013-10-07 00:52:34 +00:00
|
|
|
|
2014-03-26 22:36:06 +00:00
|
|
|
android: SOURCES -= \
|
|
|
|
qt-ui/usermanual.cpp \
|
|
|
|
qt-ui/printdialog.cpp \
|
|
|
|
qt-ui/printlayout.cpp \
|
|
|
|
qt-ui/printoptions.cpp
|
2014-03-26 22:35:24 +00:00
|
|
|
|
2013-10-07 00:52:34 +00:00
|
|
|
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 \
|
2014-11-25 20:22:02 +00:00
|
|
|
qt-ui/setpoint.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 \
|
2014-06-30 20:45:52 +00:00
|
|
|
qt-ui/searchbar.ui \
|
2014-06-10 15:40:02 +00:00
|
|
|
qt-ui/divelogexportdialog.ui \
|
2014-06-13 17:56:46 +00:00
|
|
|
qt-ui/plannerSettings.ui \
|
2014-08-16 15:32:23 +00:00
|
|
|
qt-ui/usersurvey.ui \
|
2014-08-19 01:25:06 +00:00
|
|
|
qt-ui/divecomponentselection.ui \
|
2014-09-17 16:51:08 +00:00
|
|
|
qt-ui/configuredivecomputerdialog.ui \
|
2014-10-31 17:40:57 +00:00
|
|
|
qt-ui/listfilter.ui \
|
2014-11-16 16:04:06 +00:00
|
|
|
qt-ui/diveshareexportdialog.ui \
|
2015-02-09 18:37:26 +00:00
|
|
|
qt-ui/filterwidget.ui \
|
2015-02-11 15:13:52 +00:00
|
|
|
qt-ui/plannerDetails.ui \
|
|
|
|
qt-ui/locationInformation.ui
|
2013-10-07 00:52:34 +00:00
|
|
|
|
2014-03-26 22:36:06 +00:00
|
|
|
# Nether usermanual or printing is supported on android right now
|
2014-06-30 20:45:52 +00:00
|
|
|
android: FORMS -= qt-ui/printoptions.ui
|
2014-03-26 22:35:24 +00:00
|
|
|
|
2015-01-31 06:08:50 +00:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
2015-01-16 19:43:49 +00:00
|
|
|
FORMS += qt-ui/socialnetworksdialog.ui
|
|
|
|
SOURCES += qt-ui/socialnetworks.cpp
|
|
|
|
HEADERS += qt-ui/socialnetworks.h
|
|
|
|
DEFINES += FBSUPPORT
|
|
|
|
}
|
|
|
|
|
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 \
|
2015-02-02 21:26:12 +00:00
|
|
|
translations/subsurface_cs.ts \
|
2013-10-10 19:39:01 +00:00
|
|
|
translations/subsurface_da_DK.ts \
|
|
|
|
translations/subsurface_de_CH.ts \
|
|
|
|
translations/subsurface_de_DE.ts \
|
2014-04-27 00:31:05 +00:00
|
|
|
translations/subsurface_en_GB.ts \
|
2013-10-10 19:39:01 +00:00
|
|
|
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 \
|
2014-03-12 17:25:57 +00:00
|
|
|
translations/subsurface_lv_LV.ts \
|
2013-10-10 19:39:01 +00:00
|
|
|
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 \
|
2014-03-12 17:25:57 +00:00
|
|
|
translations/subsurface_tr.ts \
|
|
|
|
translations/subsurface_zh_TW.ts
|
2013-10-07 00:52:34 +00:00
|
|
|
|
2015-02-02 21:26:12 +00:00
|
|
|
# disabled translations as they are below 50%:
|
|
|
|
# translations/subsurface_el_GR.ts \
|
|
|
|
# translations/subsurface_he.ts \
|
|
|
|
# translations/subsurface_hu.ts \
|
|
|
|
# translations/subsurface_ro_RO.ts \
|
|
|
|
|
2013-10-11 20:51:03 +00:00
|
|
|
QTTRANSLATIONS = \
|
|
|
|
qt_da.qm \
|
|
|
|
qt_de.qm \
|
|
|
|
qt_es.qm \
|
|
|
|
qt_fr.qm \
|
2014-03-12 17:25:57 +00:00
|
|
|
qt_he.qm \
|
|
|
|
qt_hu.qm \
|
2013-10-11 20:51:03 +00:00
|
|
|
qt_pl.qm \
|
|
|
|
qt_pt.qm \
|
|
|
|
qt_ru.qm \
|
|
|
|
qt_sk.qm \
|
2014-03-12 17:25:57 +00:00
|
|
|
qt_sv.qm \
|
|
|
|
qt_zh_TW.qm
|
2013-10-11 20:51:03 +00:00
|
|
|
|
2014-08-20 02:26:14 +00:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
QTRANSLATIONS += \
|
|
|
|
qtbase_de.qm \
|
2014-08-21 11:10:13 +00:00
|
|
|
qt_fi.qm \
|
2014-08-20 02:26:14 +00:00
|
|
|
qtbase_fi.qm \
|
|
|
|
qtbase_hu.qm \
|
|
|
|
qtbase_ru.qm \
|
|
|
|
qtbase_sk.qm
|
|
|
|
}
|
|
|
|
|
2014-06-06 19:22:42 +00:00
|
|
|
USERMANUALS = \
|
|
|
|
user-manual.html \
|
2014-08-04 13:50:39 +00:00
|
|
|
user-manual_es.html \
|
2015-02-04 21:43:10 +00:00
|
|
|
user-manual_fr.html \
|
|
|
|
user-manual_ru.html
|
2014-06-06 19:22:42 +00:00
|
|
|
|
2014-05-25 17:16:43 +00:00
|
|
|
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
|
2014-06-08 17:22:19 +00:00
|
|
|
all.depends += usermanual
|
|
|
|
usermanual.depends += doc
|
|
|
|
usermanual.target = $$OUT_PWD/Documentation/user-manual.html
|
2014-06-11 18:07:20 +00:00
|
|
|
QMAKE_EXTRA_TARGETS += doc usermanual all
|
|
|
|
# add the generated user manual HTML files to the list of files to remove
|
|
|
|
# when running make clean
|
|
|
|
for(MANUAL,USERMANUALS) QMAKE_CLEAN += $$OUT_PWD/Documentation/$$MANUAL
|
2013-10-07 00:52:34 +00:00
|
|
|
|
2014-03-18 17:59:45 +00:00
|
|
|
marbledata.commands += $(CHK_DIR_EXISTS) $$OUT_PWD/marbledata || $(COPY_DIR) $$PWD/marbledata $$OUT_PWD
|
|
|
|
all.depends += marbledata
|
|
|
|
QMAKE_EXTRA_TARGETS += marbledata
|
|
|
|
|
2014-06-01 04:48:26 +00:00
|
|
|
theme.commands += $(CHK_DIR_EXISTS) $$OUT_PWD/theme || $(COPY_DIR) $$PWD/theme $$OUT_PWD
|
|
|
|
all.depends += theme
|
|
|
|
QMAKE_EXTRA_TARGETS += theme
|
|
|
|
|
2014-06-23 11:48:17 +00:00
|
|
|
android {
|
|
|
|
android.commands += $(CHK_DIR_EXISTS) $$OUT_PWD/android || $(COPY_DIR) $$PWD/android $$OUT_PWD
|
|
|
|
all.depends += android
|
|
|
|
QMAKE_EXTRA_TARGETS += android
|
|
|
|
}
|
|
|
|
|
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
|
2014-12-17 19:30:18 +00:00
|
|
|
DOC_FILES = Documentation/images README ReleaseNotes/ReleaseNotes.txt SupportedDivecomputers.txt
|
2014-06-07 14:01:47 +00:00
|
|
|
for(MANUAL,USERMANUALS) DOC_FILES += $$OUT_PWD/Documentation/$$MANUAL
|
2014-06-05 23:26:35 +00:00
|
|
|
THEME_FILES = theme
|
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
|
2014-10-29 19:51:45 +00:00
|
|
|
QMAKE_TARGET_COMPANY = Subsurface Team
|
|
|
|
QMAKE_TARGET_DESCRIPTION = Subsurface Dive Log
|
|
|
|
QMAKE_TARGET_COPYRIGHT = Linus Torvalds, Dirk Hohndel, Tomaz Canabrava and others
|
2013-10-07 06:12:59 +00:00
|
|
|
|
|
|
|
# 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 \
|
2014-07-04 04:05:08 +00:00
|
|
|
$$QMAKE_INFO_PLIST
|
2013-10-07 01:41:37 +00:00
|
|
|
|
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)
|
2014-06-08 17:13:15 +00:00
|
|
|
|
2014-07-04 04:05:08 +00:00
|
|
|
# to debug planner issues
|
|
|
|
#QMAKE_CFLAGS += -DDEBUG_PLAN=31
|
|
|
|
#QMAKE_CXXFLAGS += -DDEBUG_PLAN=31
|
2014-06-08 17:13:15 +00:00
|
|
|
# to build debuggable binaries on Windows, you need something like this
|
|
|
|
#QMAKE_CFLAGS_RELEASE=$$QMAKE_CFLAGS_DEBUG -O0 -g
|
|
|
|
#QMAKE_CXXFLAGS_RELEASE=$$QMAKE_CXXFLAGS_DEBUG -O0 -g
|
2014-08-21 08:16:17 +00:00
|
|
|
|
|
|
|
QMAKE_CXXFLAGS += $$(CXXFLAGS)
|
|
|
|
QMAKE_CFLAGS += $$(CFLAGS)
|
|
|
|
QMAKE_LFLAGS += $$(LDFLAGS)
|
|
|
|
QMAKE_CPPFLAGS += $$(CPPFLAGS)
|