2015-09-02 23:52:34 +00:00
|
|
|
set(PLATFORM_SRC unknown_platform.c)
|
2015-11-05 15:57:47 +00:00
|
|
|
message(STATUS "system name ${CMAKE_SYSTEM_NAME}")
|
2015-09-02 23:52:34 +00:00
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
2015-11-05 15:57:47 +00:00
|
|
|
if(ANDROID)
|
|
|
|
set(PLATFORM_SRC android.cpp)
|
|
|
|
else()
|
2018-07-18 09:04:35 +00:00
|
|
|
set(PLATFORM_SRC unix.c)
|
2015-11-05 15:57:47 +00:00
|
|
|
endif()
|
2015-11-07 00:51:31 +00:00
|
|
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
|
|
|
set(PLATFORM_SRC android.cpp)
|
2015-09-02 23:52:34 +00:00
|
|
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
|
|
|
set(PLATFORM_SRC macos.c)
|
|
|
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
|
|
|
set(PLATFORM_SRC windows.c)
|
2018-07-18 09:04:35 +00:00
|
|
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
|
|
|
set(PLATFORM_SRC unix.c)
|
2015-09-02 23:52:34 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(FTDISUPPORT)
|
|
|
|
set(SERIAL_FTDI serial_ftdi.c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(BTSUPPORT)
|
|
|
|
add_definitions(-DBT_SUPPORT)
|
2015-11-16 09:49:58 +00:00
|
|
|
set(BT_SRC_FILES desktop-widgets/btdeviceselectiondialog.cpp)
|
2019-03-25 21:47:44 +00:00
|
|
|
set(BT_CORE_SRC_FILES
|
|
|
|
btdiscovery.cpp
|
|
|
|
btdiscovery.h
|
|
|
|
qtserialbluetooth.cpp
|
|
|
|
)
|
2015-09-02 23:52:34 +00:00
|
|
|
endif()
|
|
|
|
|
2017-06-13 02:47:50 +00:00
|
|
|
if(BLESUPPORT)
|
|
|
|
add_definitions(-DBLE_SUPPORT)
|
2019-03-25 21:47:44 +00:00
|
|
|
list(APPEND BT_CORE_SRC_FILES qt-ble.cpp qt-ble.h)
|
2017-06-13 02:47:50 +00:00
|
|
|
endif()
|
|
|
|
|
2018-06-16 07:52:01 +00:00
|
|
|
# compile the core library part in C, part in C++
|
2015-09-02 23:52:34 +00:00
|
|
|
set(SUBSURFACE_CORE_LIB_SRCS
|
2019-05-10 17:51:43 +00:00
|
|
|
applicationstate.cpp
|
|
|
|
applicationstate.h
|
2018-06-16 07:52:01 +00:00
|
|
|
checkcloudconnection.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
checkcloudconnection.h
|
2018-06-16 07:52:01 +00:00
|
|
|
cloudstorage.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
cloudstorage.h
|
2015-09-02 23:52:34 +00:00
|
|
|
cochran.c
|
2019-03-25 21:47:44 +00:00
|
|
|
cochran.h
|
2018-06-16 07:52:01 +00:00
|
|
|
color.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
color.h
|
2018-06-16 07:52:01 +00:00
|
|
|
configuredivecomputer.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
configuredivecomputer.h
|
2018-06-16 07:52:01 +00:00
|
|
|
configuredivecomputerthreads.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
configuredivecomputerthreads.h
|
2018-06-16 07:52:01 +00:00
|
|
|
connectionlistmodel.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
connectionlistmodel.h
|
2015-09-02 23:52:34 +00:00
|
|
|
datatrak.c
|
2019-03-25 21:47:44 +00:00
|
|
|
datatrak.h
|
2015-09-02 23:52:34 +00:00
|
|
|
deco.c
|
2019-03-25 21:47:44 +00:00
|
|
|
deco.h
|
2015-09-02 23:52:34 +00:00
|
|
|
device.c
|
2019-03-25 21:47:44 +00:00
|
|
|
device.h
|
2018-06-16 07:52:01 +00:00
|
|
|
devicedetails.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
devicedetails.h
|
|
|
|
display.h
|
2015-09-02 23:52:34 +00:00
|
|
|
dive.c
|
2019-03-25 21:47:44 +00:00
|
|
|
dive.h
|
2018-06-16 07:52:01 +00:00
|
|
|
divecomputer.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
divecomputer.h
|
2019-11-17 17:13:55 +00:00
|
|
|
divefilter.cpp
|
|
|
|
divefilter.h
|
2019-03-25 21:47:44 +00:00
|
|
|
divelist.c
|
|
|
|
divelist.h
|
2018-06-16 07:52:01 +00:00
|
|
|
divelogexportlogic.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
divelogexportlogic.h
|
|
|
|
divesite-helper.cpp
|
2015-09-02 23:52:34 +00:00
|
|
|
divesite.c
|
2019-03-25 21:47:44 +00:00
|
|
|
divesite.h
|
2018-06-16 07:52:01 +00:00
|
|
|
divesitehelpers.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
divesitehelpers.h
|
2018-06-16 07:52:01 +00:00
|
|
|
downloadfromdcthread.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
downloadfromdcthread.h
|
2015-09-02 23:52:34 +00:00
|
|
|
equipment.c
|
2019-05-30 18:51:30 +00:00
|
|
|
equipment.h
|
2017-10-26 12:33:02 +00:00
|
|
|
errorhelper.c
|
2018-06-16 07:52:01 +00:00
|
|
|
exif.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
exif.h
|
2015-09-02 23:52:34 +00:00
|
|
|
file.c
|
2019-03-25 21:47:44 +00:00
|
|
|
file.h
|
2018-06-16 07:52:01 +00:00
|
|
|
format.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
format.h
|
2019-06-04 11:52:48 +00:00
|
|
|
gas.c
|
|
|
|
gas.h
|
2016-03-02 21:49:59 +00:00
|
|
|
gas-model.c
|
2019-03-25 21:47:44 +00:00
|
|
|
gaspressures.c
|
|
|
|
gaspressures.h
|
|
|
|
gettext.h
|
2018-06-16 07:52:01 +00:00
|
|
|
gettextfromc.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
gettextfromc.h
|
2015-09-02 23:52:34 +00:00
|
|
|
git-access.c
|
2019-03-25 21:47:44 +00:00
|
|
|
git-access.h
|
2018-06-16 07:52:01 +00:00
|
|
|
gpslocation.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
gpslocation.h
|
2018-06-16 07:52:01 +00:00
|
|
|
imagedownloader.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
imagedownloader.h
|
|
|
|
import-cobalt.c
|
|
|
|
import-csv.c
|
|
|
|
import-csv.h
|
|
|
|
import-divinglog.c
|
|
|
|
import-shearwater.c
|
|
|
|
import-suunto.c
|
2015-09-02 23:52:34 +00:00
|
|
|
libdivecomputer.c
|
2019-03-25 21:47:44 +00:00
|
|
|
libdivecomputer.h
|
2015-09-02 23:52:34 +00:00
|
|
|
liquivision.c
|
|
|
|
load-git.c
|
|
|
|
membuffer.c
|
2019-03-25 21:47:44 +00:00
|
|
|
membuffer.h
|
2018-06-16 07:52:01 +00:00
|
|
|
metadata.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
metadata.h
|
2018-06-16 07:52:01 +00:00
|
|
|
metrics.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
metrics.h
|
2015-09-02 23:52:34 +00:00
|
|
|
ostctools.c
|
|
|
|
parse-xml.c
|
2017-11-27 17:41:10 +00:00
|
|
|
parse.c
|
2019-03-25 21:47:44 +00:00
|
|
|
parse.h
|
2015-09-02 23:52:34 +00:00
|
|
|
planner.c
|
2019-03-25 21:47:44 +00:00
|
|
|
planner.h
|
2017-05-25 10:57:06 +00:00
|
|
|
plannernotes.c
|
2019-03-25 21:47:44 +00:00
|
|
|
pref.h
|
2015-09-02 23:52:34 +00:00
|
|
|
profile.c
|
2019-03-25 21:47:44 +00:00
|
|
|
profile.h
|
|
|
|
qt-gui.h
|
2018-06-16 07:52:01 +00:00
|
|
|
qt-init.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
qthelper.cpp
|
|
|
|
qthelper.h
|
2015-09-02 23:52:34 +00:00
|
|
|
save-git.c
|
|
|
|
save-html.c
|
2019-03-25 21:47:44 +00:00
|
|
|
save-html.h
|
2019-03-30 19:59:28 +00:00
|
|
|
save-profiledata.c
|
2019-03-25 21:47:44 +00:00
|
|
|
save-xml.c
|
2019-11-24 12:26:29 +00:00
|
|
|
selection.cpp
|
|
|
|
selection.h
|
2015-09-02 23:52:34 +00:00
|
|
|
sha1.c
|
2019-03-25 21:47:44 +00:00
|
|
|
sha1.h
|
|
|
|
ssrf.h
|
2015-09-02 23:52:34 +00:00
|
|
|
statistics.c
|
2019-03-25 21:47:44 +00:00
|
|
|
statistics.h
|
|
|
|
strndup.h
|
2015-09-02 23:52:34 +00:00
|
|
|
strtod.c
|
2019-03-25 21:47:44 +00:00
|
|
|
subsurface-string.h
|
2015-09-02 23:52:34 +00:00
|
|
|
subsurfacestartup.c
|
2019-03-25 21:47:44 +00:00
|
|
|
subsurfacestartup.h
|
2018-06-16 07:52:01 +00:00
|
|
|
subsurfacesysinfo.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
subsurfacesysinfo.h
|
2019-05-30 16:29:36 +00:00
|
|
|
tag.c
|
|
|
|
tag.h
|
2018-06-16 07:52:01 +00:00
|
|
|
taxonomy.c
|
2019-03-25 21:47:44 +00:00
|
|
|
taxonomy.h
|
2015-09-02 23:52:34 +00:00
|
|
|
time.c
|
2019-05-31 14:09:14 +00:00
|
|
|
trip.c
|
|
|
|
trip.h
|
2015-09-02 23:52:34 +00:00
|
|
|
uemis-downloader.c
|
2019-03-25 21:47:44 +00:00
|
|
|
uemis.c
|
|
|
|
uemis.h
|
|
|
|
units.h
|
2019-06-04 07:05:17 +00:00
|
|
|
units.c
|
2019-12-08 10:45:55 +00:00
|
|
|
uploadDiveShare.cpp
|
|
|
|
uploadDiveShare.h
|
2019-11-27 08:48:58 +00:00
|
|
|
uploadDiveLogsDE.cpp
|
|
|
|
uploadDiveLogsDE.h
|
2015-09-02 23:52:34 +00:00
|
|
|
version.c
|
2019-03-25 21:47:44 +00:00
|
|
|
version.h
|
2018-07-10 13:04:35 +00:00
|
|
|
videoframeextractor.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
videoframeextractor.h
|
|
|
|
webservice.h
|
2015-09-02 23:52:34 +00:00
|
|
|
windowtitleupdate.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
windowtitleupdate.h
|
|
|
|
worldmap-options.h
|
2018-06-16 07:52:01 +00:00
|
|
|
worldmap-save.c
|
2019-03-25 21:47:44 +00:00
|
|
|
worldmap-save.h
|
|
|
|
xmp_parser.cpp
|
|
|
|
xmp_parser.h
|
2016-01-07 18:01:24 +00:00
|
|
|
|
2018-06-16 14:03:31 +00:00
|
|
|
# classes to manage struct preferences for QWidget and QML
|
|
|
|
settings/qPref.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPref.h
|
2018-07-12 19:01:31 +00:00
|
|
|
settings/qPrefCloudStorage.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefCloudStorage.h
|
2018-06-15 08:53:42 +00:00
|
|
|
settings/qPrefDisplay.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefDisplay.h
|
2018-07-15 16:15:40 +00:00
|
|
|
settings/qPrefDiveComputer.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefDiveComputer.h
|
2018-08-01 15:14:04 +00:00
|
|
|
settings/qPrefDivePlanner.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefDivePlanner.h
|
2019-12-09 18:58:20 +00:00
|
|
|
settings/qPrefEquipment.cpp
|
|
|
|
settings/qPrefEquipment.h
|
2018-08-12 15:57:45 +00:00
|
|
|
settings/qPrefGeneral.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefGeneral.h
|
2018-08-06 17:25:06 +00:00
|
|
|
settings/qPrefGeocoding.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefGeocoding.h
|
2018-08-06 17:39:35 +00:00
|
|
|
settings/qPrefLanguage.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefLanguage.h
|
2018-08-05 13:59:28 +00:00
|
|
|
settings/qPrefLocationService.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefLocationService.h
|
2019-12-09 18:58:20 +00:00
|
|
|
settings/qPrefLog.cpp
|
|
|
|
settings/qPrefLog.h
|
|
|
|
settings/qPrefMedia.cpp
|
|
|
|
settings/qPrefMedia.h
|
2018-08-10 19:18:40 +00:00
|
|
|
settings/qPrefPartialPressureGas.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefPartialPressureGas.h
|
2018-07-17 13:22:51 +00:00
|
|
|
settings/qPrefPrivate.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefPrivate.h
|
2018-07-27 08:25:43 +00:00
|
|
|
settings/qPrefProxy.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefProxy.h
|
2018-08-04 10:02:29 +00:00
|
|
|
settings/qPrefTechnicalDetails.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefTechnicalDetails.h
|
2018-07-31 13:04:12 +00:00
|
|
|
settings/qPrefUnit.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefUnit.h
|
2018-08-03 17:24:53 +00:00
|
|
|
settings/qPrefUpdateManager.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
settings/qPrefUpdateManager.h
|
2018-06-16 14:03:31 +00:00
|
|
|
|
2016-01-07 18:01:24 +00:00
|
|
|
#Subsurface Qt have the Subsurface structs QObjectified for easy access via QML.
|
2016-07-31 21:27:07 +00:00
|
|
|
subsurface-qt/CylinderObjectHelper.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
subsurface-qt/CylinderObjectHelper.h
|
Dive list: implement proper Qt-model semantics for DiveTripModel
Previously, each dive-list modifying function would lead to a
full model reset. Instead, implement proper Qt-model semantics
using beginInsertRows()/endInsertRows(), beginRemoveRows()/
endRemoveRows(), dataChange().
To do so, a DiveListNotifer singleton is generatated, which
broadcasts all changes to the dive-list. Signals are sent by
the commands and received by the DiveTripModel. Signals are
batched by dive-trip. This seems to be an adequate compromise
for the two kinds of list-views (tree and list). In the common
usecase mostly dives of a single trip are affected.
Thus, batching of dives is performed in two positions:
- At command-level to batch by trip
- In DiveTripModel to feed batches of contiguous elements
to Qt's begin*/end*-functions.
This is conceptually simple, but rather complex code. To avoid
repetition of complex loops, the batching is implemented in
templated-functions, which are passed lambda-functions, which
are called for each batch.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-30 07:20:25 +00:00
|
|
|
subsurface-qt/DiveListNotifier.cpp
|
2019-03-25 21:47:44 +00:00
|
|
|
subsurface-qt/DiveListNotifier.h
|
|
|
|
subsurface-qt/DiveObjectHelper.cpp
|
|
|
|
subsurface-qt/DiveObjectHelper.h
|
2017-04-18 17:14:03 +00:00
|
|
|
|
2015-09-02 23:52:34 +00:00
|
|
|
${SERIAL_FTDI}
|
|
|
|
${PLATFORM_SRC}
|
|
|
|
${BT_CORE_SRC_FILES}
|
|
|
|
)
|
|
|
|
source_group("Subsurface Core" FILES ${SUBSURFACE_CORE_LIB_SRCS})
|
|
|
|
|
|
|
|
add_library(subsurface_corelib STATIC ${SUBSURFACE_CORE_LIB_SRCS} )
|
|
|
|
target_link_libraries(subsurface_corelib ${QT_LIBRARIES})
|