2020-11-18 22:02:38 +00:00
|
|
|
TEMPLATE = app
|
|
|
|
|
2020-11-19 03:18:09 +00:00
|
|
|
QT += qml quick quickcontrols2 widgets positioning concurrent svg bluetooth
|
2020-11-18 22:02:38 +00:00
|
|
|
|
2022-06-13 03:29:17 +00:00
|
|
|
DEFINES += SUBSURFACE_MOBILE BT_SUPPORT BLE_SUPPORT MAP_SUPPORT
|
2020-11-18 22:02:38 +00:00
|
|
|
|
|
|
|
CONFIG += c++17
|
|
|
|
CONFIG += qtquickcompiler
|
|
|
|
|
|
|
|
SOURCES += subsurface-mobile-main.cpp \
|
|
|
|
subsurface-helper.cpp \
|
|
|
|
map-widget/qmlmapwidgethelper.cpp \
|
|
|
|
commands/command_base.cpp \
|
|
|
|
commands/command.cpp \
|
|
|
|
commands/command_device.cpp \
|
|
|
|
commands/command_divelist.cpp \
|
|
|
|
commands/command_divesite.cpp \
|
|
|
|
commands/command_edit.cpp \
|
|
|
|
commands/command_edit_trip.cpp \
|
|
|
|
commands/command_event.cpp \
|
|
|
|
commands/command_filter.cpp \
|
|
|
|
commands/command_pictures.cpp \
|
|
|
|
core/cloudstorage.cpp \
|
|
|
|
core/configuredivecomputerthreads.cpp \
|
|
|
|
core/devicedetails.cpp \
|
|
|
|
core/downloadfromdcthread.cpp \
|
|
|
|
core/qtserialbluetooth.cpp \
|
2024-03-07 10:09:40 +00:00
|
|
|
core/plannernotes.cpp \
|
2024-03-02 08:12:21 +00:00
|
|
|
core/uemis-downloader.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/qthelper.cpp \
|
|
|
|
core/checkcloudconnection.cpp \
|
|
|
|
core/color.cpp \
|
|
|
|
core/configuredivecomputer.cpp \
|
|
|
|
core/divelogexportlogic.cpp \
|
|
|
|
core/divesitehelpers.cpp \
|
2024-03-24 18:21:00 +00:00
|
|
|
core/errorhelper.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/exif.cpp \
|
|
|
|
core/format.cpp \
|
|
|
|
core/gettextfromc.cpp \
|
|
|
|
core/metrics.cpp \
|
|
|
|
core/qt-init.cpp \
|
|
|
|
core/subsurfacesysinfo.cpp \
|
|
|
|
core/windowtitleupdate.cpp \
|
2024-02-28 06:50:11 +00:00
|
|
|
core/file.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/fulltext.cpp \
|
2024-02-28 05:33:44 +00:00
|
|
|
core/subsurfacestartup.cpp \
|
2024-03-25 09:58:27 +00:00
|
|
|
core/subsurface-string.cpp \
|
2024-05-02 05:56:47 +00:00
|
|
|
core/pref.cpp \
|
2024-03-07 10:09:40 +00:00
|
|
|
core/profile.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/device.cpp \
|
2024-02-27 11:02:20 +00:00
|
|
|
core/dive.cpp \
|
2024-05-01 16:21:06 +00:00
|
|
|
core/divecomputer.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/divefilter.cpp \
|
|
|
|
core/event.c \
|
2024-02-14 09:59:13 +00:00
|
|
|
core/eventtype.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/filterconstraint.cpp \
|
|
|
|
core/filterpreset.cpp \
|
2024-05-01 16:11:35 +00:00
|
|
|
core/divelist.cpp \
|
core: introduce divelog structure
The parser API was very annoying, as a number of tables
to-be-filled were passed in as pointers. The goal of this
commit is to collect all these tables in a single struct.
This should make it (more or less) clear what is actually
written into the divelog files.
Moreover, it should now be rather easy to search for
instances, where the global logfile is accessed (and it
turns out that there are many!).
The divelog struct does not contain the tables as substructs,
but only collects pointers. The idea is that the "divelog.h"
file can be included without all the other files describing
the numerous tables.
To make it easier to use from C++ parts of the code, the
struct implements a constructor and a destructor. Sadly,
we can't use smart pointers, since the pointers are accessed
from C code. Therfore the constructor and destructor are
quite complex.
The whole commit is large, but was mostly an automatic
conversion.
One oddity of note: the divelog structure also contains
the "autogroup" flag, since that is saved in the divelog.
This actually fixes a bug: Before, when importing dives
from a different log, the autogroup flag was overwritten.
This was probably not intended and does not happen anymore.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2022-11-08 20:31:08 +00:00
|
|
|
core/divelog.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/gas-model.c \
|
|
|
|
core/gaspressures.c \
|
2024-02-27 22:22:49 +00:00
|
|
|
core/git-access.cpp \
|
2022-03-12 17:30:23 +00:00
|
|
|
core/globals.cpp \
|
2024-03-01 12:09:20 +00:00
|
|
|
core/liquivision.cpp \
|
2024-02-28 07:42:23 +00:00
|
|
|
core/load-git.cpp \
|
2024-02-28 21:01:51 +00:00
|
|
|
core/parse-xml.cpp \
|
|
|
|
core/parse.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/picture.c \
|
|
|
|
core/pictureobj.cpp \
|
2024-02-27 15:31:44 +00:00
|
|
|
core/sample.cpp \
|
2024-02-29 06:29:11 +00:00
|
|
|
core/import-suunto.cpp \
|
|
|
|
core/import-shearwater.cpp \
|
|
|
|
core/import-seac.cpp \
|
|
|
|
core/import-cobalt.cpp \
|
|
|
|
core/import-divinglog.cpp \
|
|
|
|
core/import-csv.cpp \
|
2024-03-10 15:35:53 +00:00
|
|
|
core/save-html.cpp \
|
2024-05-01 21:16:00 +00:00
|
|
|
core/statistics.cpp \
|
2024-03-08 16:09:02 +00:00
|
|
|
core/worldmap-save.cpp \
|
2024-03-01 12:09:20 +00:00
|
|
|
core/libdivecomputer.cpp \
|
2024-04-23 07:13:56 +00:00
|
|
|
core/version.cpp \
|
2024-02-27 17:40:45 +00:00
|
|
|
core/save-git.cpp \
|
2024-03-01 12:09:20 +00:00
|
|
|
core/datatrak.cpp \
|
2024-05-02 07:36:00 +00:00
|
|
|
core/ostctools.cpp \
|
2024-03-07 10:09:40 +00:00
|
|
|
core/planner.cpp \
|
2024-02-28 05:36:48 +00:00
|
|
|
core/save-xml.cpp \
|
2024-03-01 12:09:20 +00:00
|
|
|
core/cochran.cpp \
|
2024-03-07 10:09:40 +00:00
|
|
|
core/deco.cpp \
|
2024-04-23 07:42:19 +00:00
|
|
|
core/divesite.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/equipment.c \
|
|
|
|
core/gas.c \
|
2021-07-20 05:24:07 +00:00
|
|
|
core/membuffer.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/selection.cpp \
|
2024-04-23 13:30:40 +00:00
|
|
|
core/sha1.cpp \
|
2020-12-14 21:42:07 +00:00
|
|
|
core/string-format.cpp \
|
2024-04-23 07:11:29 +00:00
|
|
|
core/strtod.cpp \
|
2024-03-10 16:20:59 +00:00
|
|
|
core/tag.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/taxonomy.c \
|
2024-02-29 10:31:46 +00:00
|
|
|
core/time.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/trip.c \
|
2024-05-02 05:56:47 +00:00
|
|
|
core/units.cpp \
|
2024-04-23 14:09:52 +00:00
|
|
|
core/uemis.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/btdiscovery.cpp \
|
|
|
|
core/connectionlistmodel.cpp \
|
|
|
|
core/qt-ble.cpp \
|
|
|
|
core/uploadDiveShare.cpp \
|
|
|
|
core/uploadDiveLogsDE.cpp \
|
|
|
|
core/save-profiledata.c \
|
|
|
|
core/xmlparams.cpp \
|
|
|
|
core/settings/qPref.cpp \
|
|
|
|
core/settings/qPrefCloudStorage.cpp \
|
|
|
|
core/settings/qPrefDisplay.cpp \
|
|
|
|
core/settings/qPrefDiveComputer.cpp \
|
|
|
|
core/settings/qPrefDivePlanner.cpp \
|
|
|
|
core/settings/qPrefGeneral.cpp \
|
|
|
|
core/settings/qPrefGeocoding.cpp \
|
|
|
|
core/settings/qPrefLanguage.cpp \
|
|
|
|
core/settings/qPrefPartialPressureGas.cpp \
|
|
|
|
core/settings/qPrefPrivate.cpp \
|
|
|
|
core/settings/qPrefProxy.cpp \
|
|
|
|
core/settings/qPrefTechnicalDetails.cpp \
|
|
|
|
core/settings/qPrefUnit.cpp \
|
|
|
|
core/settings/qPrefEquipment.cpp \
|
|
|
|
core/settings/qPrefLog.cpp \
|
|
|
|
core/settings/qPrefMedia.cpp \
|
|
|
|
core/settings/qPrefUpdateManager.cpp \
|
|
|
|
core/subsurface-qt/divelistnotifier.cpp \
|
|
|
|
backend-shared/exportfuncs.cpp \
|
|
|
|
backend-shared/plannershared.cpp \
|
2021-01-03 11:46:56 +00:00
|
|
|
backend-shared/roundrectitem.cpp \
|
2021-01-08 20:53:27 +00:00
|
|
|
stats/statsvariables.cpp \
|
|
|
|
stats/statsview.cpp \
|
|
|
|
stats/barseries.cpp \
|
|
|
|
stats/boxseries.cpp \
|
2021-01-12 14:20:05 +00:00
|
|
|
stats/chartitem.cpp \
|
2021-01-08 20:53:27 +00:00
|
|
|
stats/chartlistmodel.cpp \
|
2021-01-14 08:48:44 +00:00
|
|
|
stats/histogrammarker.cpp \
|
2021-01-08 20:53:27 +00:00
|
|
|
stats/informationbox.cpp \
|
|
|
|
stats/legend.cpp \
|
|
|
|
stats/pieseries.cpp \
|
2021-01-14 07:48:56 +00:00
|
|
|
stats/quartilemarker.cpp \
|
2021-01-15 17:39:14 +00:00
|
|
|
stats/regressionitem.cpp \
|
2021-01-08 20:53:27 +00:00
|
|
|
stats/scatterseries.cpp \
|
|
|
|
stats/statsaxis.cpp \
|
|
|
|
stats/statscolors.cpp \
|
|
|
|
stats/statsgrid.cpp \
|
2021-02-06 11:26:54 +00:00
|
|
|
stats/statshelper.cpp \
|
2021-02-08 16:07:37 +00:00
|
|
|
stats/statsselection.cpp \
|
2021-01-08 20:53:27 +00:00
|
|
|
stats/statsseries.cpp \
|
|
|
|
stats/statsstate.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
mobile-widgets/qmlinterface.cpp \
|
|
|
|
mobile-widgets/qmlmanager.cpp \
|
2021-01-07 14:12:25 +00:00
|
|
|
mobile-widgets/statsmanager.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
mobile-widgets/themeinterface.cpp \
|
|
|
|
qt-models/divesummarymodel.cpp \
|
|
|
|
qt-models/completionmodels.cpp \
|
|
|
|
qt-models/divelocationmodel.cpp \
|
|
|
|
qt-models/maplocationmodel.cpp \
|
|
|
|
qt-models/diveimportedmodel.cpp \
|
|
|
|
qt-models/messagehandlermodel.cpp \
|
|
|
|
qt-models/diveplannermodel.cpp \
|
|
|
|
qt-models/divetripmodel.cpp \
|
|
|
|
qt-models/mobilelistmodel.cpp \
|
|
|
|
qt-models/cylindermodel.cpp \
|
|
|
|
qt-models/cleanertablemodel.cpp \
|
|
|
|
qt-models/tankinfomodel.cpp \
|
|
|
|
qt-models/models.cpp \
|
|
|
|
qt-models/weightsysteminfomodel.cpp \
|
|
|
|
qt-models/filterconstraintmodel.cpp \
|
|
|
|
qt-models/filterpresetmodel.cpp \
|
|
|
|
profile-widget/qmlprofile.cpp \
|
|
|
|
profile-widget/divecartesianaxis.cpp \
|
|
|
|
profile-widget/diveeventitem.cpp \
|
2021-08-29 20:13:26 +00:00
|
|
|
profile-widget/divepercentageitem.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
profile-widget/diveprofileitem.cpp \
|
2021-06-05 16:42:56 +00:00
|
|
|
profile-widget/profilescene.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
profile-widget/animationfunctions.cpp \
|
2021-08-30 19:11:11 +00:00
|
|
|
profile-widget/divepixmapcache.cpp \
|
2020-11-18 22:02:38 +00:00
|
|
|
profile-widget/divepixmapitem.cpp \
|
|
|
|
profile-widget/divetooltipitem.cpp \
|
|
|
|
profile-widget/tankitem.cpp \
|
|
|
|
profile-widget/divelineitem.cpp \
|
|
|
|
profile-widget/diverectitem.cpp \
|
|
|
|
profile-widget/divetextitem.cpp
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
commands/command_base.h \
|
|
|
|
commands/command.h \
|
|
|
|
commands/command_device.h \
|
|
|
|
commands/command_divelist.h \
|
|
|
|
commands/command_divesite.h \
|
|
|
|
commands/command_edit.h \
|
|
|
|
commands/command_edit_trip.h \
|
|
|
|
commands/command_event.h \
|
|
|
|
commands/command_filter.h \
|
|
|
|
commands/command_pictures.h \
|
|
|
|
core/interpolate.h \
|
|
|
|
core/libdivecomputer.h \
|
|
|
|
core/cloudstorage.h \
|
|
|
|
core/configuredivecomputerthreads.h \
|
|
|
|
core/device.h \
|
|
|
|
core/devicedetails.h \
|
|
|
|
core/dive.h \
|
|
|
|
core/divecomputer.h \
|
|
|
|
core/event.h \
|
2024-02-14 09:59:13 +00:00
|
|
|
core/eventtype.h \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/extradata.h \
|
|
|
|
core/git-access.h \
|
2022-03-12 17:30:23 +00:00
|
|
|
core/globals.h \
|
2022-11-06 11:18:27 +00:00
|
|
|
core/owning_ptrs.h \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/pref.h \
|
|
|
|
core/profile.h \
|
|
|
|
core/qthelper.h \
|
2022-09-24 12:06:56 +00:00
|
|
|
core/range.h \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/save-html.h \
|
|
|
|
core/statistics.h \
|
|
|
|
core/units.h \
|
|
|
|
core/version.h \
|
|
|
|
core/picture.h \
|
|
|
|
core/pictureobj.h \
|
|
|
|
core/planner.h \
|
|
|
|
core/divesite.h \
|
|
|
|
core/checkcloudconnection.h \
|
|
|
|
core/cochran.h \
|
|
|
|
core/color.h \
|
|
|
|
core/configuredivecomputer.h \
|
|
|
|
core/datatrak.h \
|
|
|
|
core/deco.h \
|
|
|
|
core/divefilter.h \
|
|
|
|
core/filterconstraint.h \
|
|
|
|
core/filterpreset.h \
|
|
|
|
core/divelist.h \
|
core: introduce divelog structure
The parser API was very annoying, as a number of tables
to-be-filled were passed in as pointers. The goal of this
commit is to collect all these tables in a single struct.
This should make it (more or less) clear what is actually
written into the divelog files.
Moreover, it should now be rather easy to search for
instances, where the global logfile is accessed (and it
turns out that there are many!).
The divelog struct does not contain the tables as substructs,
but only collects pointers. The idea is that the "divelog.h"
file can be included without all the other files describing
the numerous tables.
To make it easier to use from C++ parts of the code, the
struct implements a constructor and a destructor. Sadly,
we can't use smart pointers, since the pointers are accessed
from C code. Therfore the constructor and destructor are
quite complex.
The whole commit is large, but was mostly an automatic
conversion.
One oddity of note: the divelog structure also contains
the "autogroup" flag, since that is saved in the divelog.
This actually fixes a bug: Before, when importing dives
from a different log, the autogroup flag was overwritten.
This was probably not intended and does not happen anymore.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2022-11-08 20:31:08 +00:00
|
|
|
core/divelog.h \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/divelogexportlogic.h \
|
|
|
|
core/divesitehelpers.h \
|
|
|
|
core/exif.h \
|
|
|
|
core/file.h \
|
|
|
|
core/fulltext.h \
|
|
|
|
core/gaspressures.h \
|
|
|
|
core/gettext.h \
|
|
|
|
core/gettextfromc.h \
|
|
|
|
core/membuffer.h \
|
|
|
|
core/metrics.h \
|
|
|
|
core/qt-gui.h \
|
|
|
|
core/sample.h \
|
|
|
|
core/selection.h \
|
|
|
|
core/sha1.h \
|
2020-12-14 21:42:07 +00:00
|
|
|
core/string-format.h \
|
2020-11-18 22:02:38 +00:00
|
|
|
core/subsurfacestartup.h \
|
|
|
|
core/subsurfacesysinfo.h \
|
|
|
|
core/taxonomy.h \
|
|
|
|
core/uemis.h \
|
|
|
|
core/webservice.h \
|
|
|
|
core/windowtitleupdate.h \
|
|
|
|
core/worldmap-options.h \
|
|
|
|
core/worldmap-save.h \
|
|
|
|
core/downloadfromdcthread.h \
|
|
|
|
core/btdiscovery.h \
|
|
|
|
core/connectionlistmodel.h \
|
|
|
|
core/qt-ble.h \
|
|
|
|
core/save-profiledata.h \
|
|
|
|
core/uploadDiveShare.h \
|
|
|
|
core/uploadDiveLogsDE.h \
|
|
|
|
core/xmlparams.h \
|
|
|
|
core/settings/qPref.h \
|
|
|
|
core/settings/qPrefCloudStorage.h \
|
|
|
|
core/settings/qPrefDisplay.h \
|
|
|
|
core/settings/qPrefDiveComputer.h \
|
|
|
|
core/settings/qPrefDivePlanner.h \
|
|
|
|
core/settings/qPrefGeneral.h \
|
|
|
|
core/settings/qPrefGeocoding.h \
|
|
|
|
core/settings/qPrefLanguage.h \
|
|
|
|
core/settings/qPrefPartialPressureGas.h \
|
|
|
|
core/settings/qPrefPrivate.h \
|
|
|
|
core/settings/qPrefProxy.h \
|
|
|
|
core/settings/qPrefTechnicalDetails.h \
|
|
|
|
core/settings/qPrefUnit.h \
|
|
|
|
core/settings/qPrefEquipment.h \
|
|
|
|
core/settings/qPrefLog.h \
|
|
|
|
core/settings/qPrefMedia.h \
|
|
|
|
core/settings/qPrefUpdateManager.h \
|
|
|
|
core/subsurface-qt/divelistnotifier.h \
|
|
|
|
backend-shared/exportfuncs.h \
|
|
|
|
backend-shared/plannershared.h \
|
2021-01-03 11:46:56 +00:00
|
|
|
backend-shared/roundrectitem.h \
|
2021-01-08 20:53:27 +00:00
|
|
|
stats/barseries.h \
|
|
|
|
stats/boxseries.h \
|
2021-01-12 14:20:05 +00:00
|
|
|
stats/chartitem.h \
|
2021-01-08 20:53:27 +00:00
|
|
|
stats/chartlistmodel.h \
|
2021-01-14 08:48:44 +00:00
|
|
|
stats/histogrammarker.h \
|
2021-01-08 20:53:27 +00:00
|
|
|
stats/informationbox.h \
|
|
|
|
stats/legend.h \
|
|
|
|
stats/pieseries.h \
|
2021-01-14 07:48:56 +00:00
|
|
|
stats/quartilemarker.h \
|
2021-01-15 17:39:14 +00:00
|
|
|
stats/regressionitem.h \
|
2021-01-08 20:53:27 +00:00
|
|
|
stats/scatterseries.h \
|
|
|
|
stats/statsaxis.h \
|
|
|
|
stats/statscolors.h \
|
|
|
|
stats/statsgrid.h \
|
2021-02-06 11:26:54 +00:00
|
|
|
stats/statshelper.h \
|
2021-02-08 16:07:37 +00:00
|
|
|
stats/statsselection.h \
|
2021-01-08 20:53:27 +00:00
|
|
|
stats/statsseries.h \
|
|
|
|
stats/statsstate.h \
|
|
|
|
stats/statstranslations.h \
|
|
|
|
stats/statsvariables.h \
|
|
|
|
stats/statsview.h \
|
|
|
|
stats/zvalues.h \
|
2020-11-18 22:02:38 +00:00
|
|
|
mobile-widgets/qmlinterface.h \
|
|
|
|
mobile-widgets/qmlmanager.h \
|
2021-01-07 14:12:25 +00:00
|
|
|
mobile-widgets/statsmanager.h \
|
2020-11-18 22:02:38 +00:00
|
|
|
mobile-widgets/themeinterface.h \
|
|
|
|
map-widget/qmlmapwidgethelper.h \
|
|
|
|
qt-models/divesummarymodel.h \
|
|
|
|
qt-models/divelocationmodel.h \
|
|
|
|
qt-models/completionmodels.h \
|
|
|
|
qt-models/weightsysteminfomodel.h \
|
|
|
|
qt-models/maplocationmodel.h \
|
|
|
|
qt-models/diveimportedmodel.h \
|
|
|
|
qt-models/messagehandlermodel.h \
|
|
|
|
qt-models/diveplannermodel.h \
|
|
|
|
qt-models/divetripmodel.h \
|
|
|
|
qt-models/mobilelistmodel.h \
|
|
|
|
qt-models/cylindermodel.h \
|
|
|
|
qt-models/cleanertablemodel.h \
|
|
|
|
qt-models/tankinfomodel.h \
|
|
|
|
qt-models/models.h \
|
|
|
|
qt-models/weightsysteminfomodel.h \
|
|
|
|
qt-models/filterconstraintmodel.h \
|
|
|
|
qt-models/filterpresetmodel.h \
|
|
|
|
profile-widget/qmlprofile.h \
|
2021-08-29 20:13:26 +00:00
|
|
|
profile-widget/divepercentageitem.h \
|
2020-11-18 22:02:38 +00:00
|
|
|
profile-widget/diveprofileitem.h \
|
2021-06-05 16:42:56 +00:00
|
|
|
profile-widget/profilescene.h \
|
2020-11-18 22:02:38 +00:00
|
|
|
profile-widget/diveeventitem.h \
|
|
|
|
profile-widget/divetooltipitem.h \
|
|
|
|
profile-widget/tankitem.h \
|
|
|
|
profile-widget/animationfunctions.h \
|
|
|
|
profile-widget/divecartesianaxis.h \
|
|
|
|
profile-widget/divelineitem.h \
|
2021-08-30 19:11:11 +00:00
|
|
|
profile-widget/divepixmapcache.h \
|
2020-11-18 22:02:38 +00:00
|
|
|
profile-widget/divepixmapitem.h \
|
|
|
|
profile-widget/diverectitem.h \
|
|
|
|
profile-widget/divetextitem.h
|
|
|
|
|
2020-11-19 03:18:09 +00:00
|
|
|
RESOURCES += mobile-widgets/qml/mobile-resources.qrc \
|
2020-12-15 21:11:41 +00:00
|
|
|
mobile-widgets/3rdparty/icons.qrc \
|
2021-01-16 18:16:29 +00:00
|
|
|
map-widget/qml/map-widget.qrc \
|
2022-03-13 00:18:26 +00:00
|
|
|
stats/statsicons.qrc \
|
|
|
|
profile.qrc
|
2020-11-19 03:18:09 +00:00
|
|
|
|
2020-11-18 22:02:38 +00:00
|
|
|
android {
|
2020-11-19 03:18:09 +00:00
|
|
|
SOURCES += core/android.cpp \
|
|
|
|
core/serial_usb_android.cpp
|
2020-11-27 22:08:17 +00:00
|
|
|
|
|
|
|
# ironically, we appear to need to include the Kirigami shaders here
|
2022-06-13 03:29:17 +00:00
|
|
|
# as they are not found when we assume that they are part of the
|
2020-11-27 22:08:17 +00:00
|
|
|
# libkirigami library
|
|
|
|
RESOURCES += packaging/android/translations.qrc \
|
|
|
|
android-mobile/font.qrc \
|
|
|
|
mobile-widgets/3rdparty/kirigami/src/scenegraph/shaders/shaders.qrc
|
2020-11-19 03:18:09 +00:00
|
|
|
QT += androidextras
|
|
|
|
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-mobile
|
|
|
|
ANDROID_VERSION_CODE = $$BUILD_NR
|
|
|
|
ANDROID_VERSION_NAME = $$BUILD_VERSION_NAME
|
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
android-build/AndroidManifest.xml \
|
|
|
|
android-build/build.gradle \
|
|
|
|
android-build/res/values/libs.xml
|
|
|
|
|
|
|
|
# at link time our CWD is parallel to the install-root
|
|
|
|
LIBS += ../install-root-$${QT_ARCH}/lib/libdivecomputer.a \
|
2020-11-25 22:38:43 +00:00
|
|
|
../install-root-$${QT_ARCH}/lib/qml/org/kde/kirigami.2/libkirigamiplugin.a \
|
2020-11-19 03:18:09 +00:00
|
|
|
../install-root-$${QT_ARCH}/lib/libgit2.a \
|
|
|
|
../install-root-$${QT_ARCH}/lib/libzip.a \
|
|
|
|
../install-root-$${QT_ARCH}/lib/libxslt.a \
|
|
|
|
../install-root-$${QT_ARCH}/lib/libxml2.a \
|
|
|
|
../install-root-$${QT_ARCH}/lib/libsqlite3.a \
|
|
|
|
../install-root-$${QT_ARCH}/lib/libssl_1_1.so \
|
|
|
|
../install-root-$${QT_ARCH}/lib/libcrypto_1_1.so \
|
2020-12-23 17:55:02 +00:00
|
|
|
../googlemaps-build/libplugins_geoservices_qtgeoservices_googlemaps_$${QT_ARCH}.so
|
2020-11-19 03:18:09 +00:00
|
|
|
|
|
|
|
# ensure that the openssl libraries are bundled into the app
|
2020-11-23 00:32:11 +00:00
|
|
|
# for some reason doing so with dollar dollar { QT_ARCH } (like what works
|
|
|
|
# above for the link time case) doesn not work for the EXTRA_LIBS case.
|
|
|
|
# so stupidly do it explicitly
|
2020-11-19 03:18:09 +00:00
|
|
|
ANDROID_EXTRA_LIBS += \
|
2020-11-23 00:32:11 +00:00
|
|
|
../install-root-arm64-v8a/lib/libcrypto_1_1.so \
|
|
|
|
../install-root-arm64-v8a/lib/libssl_1_1.so \
|
|
|
|
../install-root-armeabi-v7a/lib/libcrypto_1_1.so \
|
|
|
|
../install-root-armeabi-v7a/lib/libssl_1_1.so
|
2020-11-19 03:18:09 +00:00
|
|
|
|
|
|
|
INCLUDEPATH += ../install-root-$${QT_ARCH}/include/ \
|
|
|
|
../install-root/lib/libzip/include \
|
|
|
|
../install-root-$${QT_ARCH}/include/libxstl \
|
|
|
|
../install-root-$${QT_ARCH}/include/libxml2 \
|
|
|
|
../install-root-$${QT_ARCH}/include/libexstl \
|
|
|
|
../install-root-$${QT_ARCH}/include/openssl \
|
|
|
|
. \
|
|
|
|
core \
|
2020-11-25 22:38:43 +00:00
|
|
|
mobile-widgets/3rdparty/kirigami/src
|
2020-11-19 03:18:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ios {
|
|
|
|
SOURCES += core/ios.cpp
|
|
|
|
RESOURCES += packaging/ios/translations.qrc
|
2022-08-29 23:09:46 +00:00
|
|
|
QMAKE_IOS_DEPLOYMENT_TARGET = 12.0
|
2020-11-19 03:18:09 +00:00
|
|
|
QMAKE_TARGET_BUNDLE_PREFIX = org.subsurface-divelog
|
|
|
|
QMAKE_BUNDLE = subsurface-mobile
|
|
|
|
QMAKE_INFO_PLIST = packaging/ios/Info.plist
|
|
|
|
QMAKE_ASSET_CATALOGS += packaging/ios/storeIcon.xcassets
|
|
|
|
app_launch_images.files = packaging/ios/SubsurfaceMobileLaunch.xib $$files(packaging/ios/SubsurfaceMobileLaunchImage*.png)
|
|
|
|
images.files = icons/subsurface-mobile-icon.png
|
|
|
|
QMAKE_BUNDLE_DATA += app_launch_images images
|
|
|
|
|
2022-08-29 23:40:04 +00:00
|
|
|
OBJECTIVE_SOURCES += ios/ios-share.mm
|
|
|
|
HEADERS += ios/ios-share.h
|
|
|
|
Q_ENABLE_BITCODE.name = ENABLE_BITCODE
|
|
|
|
Q_ENABLE_BITCODE.value = NO
|
|
|
|
QMAKE_MAC_XCODE_SETTINGS += Q_ENABLE_BITCODE
|
2024-01-03 03:46:36 +00:00
|
|
|
ARCH_PATH = ../install-root/ios/$${ARCH}
|
2022-08-29 23:40:04 +00:00
|
|
|
|
2024-01-03 03:46:36 +00:00
|
|
|
LIBS += $${ARCH_PATH}/lib/libdivecomputer.a \
|
|
|
|
$${ARCH_PATH}/lib/libgit2.a \
|
|
|
|
$${ARCH_PATH}/lib/libzip.a \
|
|
|
|
$${ARCH_PATH}/lib/libxslt.a \
|
|
|
|
$${ARCH_PATH}/lib/qml/org/kde/kirigami.2/libkirigamiplugin.a \
|
2020-12-17 00:39:30 +00:00
|
|
|
../googlemaps-build/libqtgeoservices_googlemaps.a \
|
2020-11-19 03:18:09 +00:00
|
|
|
-liconv \
|
|
|
|
-lsqlite3 \
|
|
|
|
-lxml2
|
|
|
|
|
2022-08-29 23:40:04 +00:00
|
|
|
LIBS += -framework MessageUI
|
|
|
|
|
2024-01-03 03:46:36 +00:00
|
|
|
INCLUDEPATH += $${ARCH_PATH}/include/ \
|
|
|
|
$${ARCH_PATH}/include/libxstl \
|
|
|
|
$${ARCH_PATH}/include/libexstl \
|
|
|
|
$${ARCH_PATH}/include/openssl \
|
2020-11-19 03:18:09 +00:00
|
|
|
. \
|
|
|
|
./core \
|
2020-11-25 22:38:43 +00:00
|
|
|
./mobile-widgets/3rdparty/kirigami/src/libkirigami \
|
2024-01-03 03:46:36 +00:00
|
|
|
$${ARCH_PATH}/include/libxml2
|
2020-11-18 22:02:38 +00:00
|
|
|
|
|
|
|
}
|