2015-09-02 20:52:34 -03:00
|
|
|
set(PLATFORM_SRC unknown_platform.c)
|
2015-11-05 07:57:47 -08:00
|
|
|
message(STATUS "system name ${CMAKE_SYSTEM_NAME}")
|
2015-09-02 20:52:34 -03:00
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
2015-11-05 07:57:47 -08:00
|
|
|
if(ANDROID)
|
|
|
|
set(PLATFORM_SRC android.cpp)
|
|
|
|
else()
|
2018-07-18 11:04:35 +02:00
|
|
|
set(PLATFORM_SRC unix.c)
|
2015-11-05 07:57:47 -08:00
|
|
|
endif()
|
2015-11-07 01:51:31 +01:00
|
|
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
|
|
|
set(PLATFORM_SRC android.cpp)
|
2015-09-02 20:52:34 -03: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 11:04:35 +02:00
|
|
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
|
|
|
set(PLATFORM_SRC unix.c)
|
2015-09-02 20:52:34 -03:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(FTDISUPPORT)
|
|
|
|
set(SERIAL_FTDI serial_ftdi.c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(BTSUPPORT)
|
|
|
|
add_definitions(-DBT_SUPPORT)
|
2015-11-16 11:49:58 +02:00
|
|
|
set(BT_SRC_FILES desktop-widgets/btdeviceselectiondialog.cpp)
|
2019-03-25 22:47:44 +01:00
|
|
|
set(BT_CORE_SRC_FILES
|
|
|
|
btdiscovery.cpp
|
|
|
|
btdiscovery.h
|
|
|
|
qtserialbluetooth.cpp
|
|
|
|
)
|
2015-09-02 20:52:34 -03:00
|
|
|
endif()
|
|
|
|
|
2017-06-12 19:47:50 -07:00
|
|
|
if(BLESUPPORT)
|
|
|
|
add_definitions(-DBLE_SUPPORT)
|
2019-03-25 22:47:44 +01:00
|
|
|
list(APPEND BT_CORE_SRC_FILES qt-ble.cpp qt-ble.h)
|
2017-06-12 19:47:50 -07:00
|
|
|
endif()
|
|
|
|
|
2018-06-16 09:52:01 +02:00
|
|
|
# compile the core library part in C, part in C++
|
2015-09-02 20:52:34 -03:00
|
|
|
set(SUBSURFACE_CORE_LIB_SRCS
|
2019-05-10 19:51:43 +02:00
|
|
|
applicationstate.cpp
|
|
|
|
applicationstate.h
|
2018-06-16 09:52:01 +02:00
|
|
|
checkcloudconnection.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
checkcloudconnection.h
|
2018-06-16 09:52:01 +02:00
|
|
|
cloudstorage.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
cloudstorage.h
|
2015-09-02 20:52:34 -03:00
|
|
|
cochran.c
|
2019-03-25 22:47:44 +01:00
|
|
|
cochran.h
|
2018-06-16 09:52:01 +02:00
|
|
|
color.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
color.h
|
2018-06-16 09:52:01 +02:00
|
|
|
configuredivecomputer.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
configuredivecomputer.h
|
2018-06-16 09:52:01 +02:00
|
|
|
configuredivecomputerthreads.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
configuredivecomputerthreads.h
|
2018-06-16 09:52:01 +02:00
|
|
|
connectionlistmodel.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
connectionlistmodel.h
|
2015-09-02 20:52:34 -03:00
|
|
|
datatrak.c
|
2019-03-25 22:47:44 +01:00
|
|
|
datatrak.h
|
2015-09-02 20:52:34 -03:00
|
|
|
deco.c
|
2019-03-25 22:47:44 +01:00
|
|
|
deco.h
|
2015-09-02 20:52:34 -03:00
|
|
|
device.c
|
2019-03-25 22:47:44 +01:00
|
|
|
device.h
|
2018-06-16 09:52:01 +02:00
|
|
|
devicedetails.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
devicedetails.h
|
|
|
|
display.h
|
2015-09-02 20:52:34 -03:00
|
|
|
dive.c
|
2019-03-25 22:47:44 +01:00
|
|
|
dive.h
|
2018-06-16 09:52:01 +02:00
|
|
|
divecomputer.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
divecomputer.h
|
2019-11-17 18:13:55 +01:00
|
|
|
divefilter.cpp
|
|
|
|
divefilter.h
|
2019-03-25 22:47:44 +01:00
|
|
|
divelist.c
|
|
|
|
divelist.h
|
2018-06-16 09:52:01 +02:00
|
|
|
divelogexportlogic.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
divelogexportlogic.h
|
|
|
|
divesite-helper.cpp
|
2015-09-02 20:52:34 -03:00
|
|
|
divesite.c
|
2019-03-25 22:47:44 +01:00
|
|
|
divesite.h
|
2018-06-16 09:52:01 +02:00
|
|
|
divesitehelpers.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
divesitehelpers.h
|
2018-06-16 09:52:01 +02:00
|
|
|
downloadfromdcthread.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
downloadfromdcthread.h
|
2015-09-02 20:52:34 -03:00
|
|
|
equipment.c
|
2019-05-30 20:51:30 +02:00
|
|
|
equipment.h
|
2017-10-26 14:33:02 +02:00
|
|
|
errorhelper.c
|
2018-06-16 09:52:01 +02:00
|
|
|
exif.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
exif.h
|
2015-09-02 20:52:34 -03:00
|
|
|
file.c
|
2019-03-25 22:47:44 +01:00
|
|
|
file.h
|
2018-06-16 09:52:01 +02:00
|
|
|
format.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
format.h
|
2019-06-04 13:52:48 +02:00
|
|
|
gas.c
|
|
|
|
gas.h
|
2016-03-02 13:49:59 -08:00
|
|
|
gas-model.c
|
2019-03-25 22:47:44 +01:00
|
|
|
gaspressures.c
|
|
|
|
gaspressures.h
|
|
|
|
gettext.h
|
2018-06-16 09:52:01 +02:00
|
|
|
gettextfromc.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
gettextfromc.h
|
2015-09-02 20:52:34 -03:00
|
|
|
git-access.c
|
2019-03-25 22:47:44 +01:00
|
|
|
git-access.h
|
2018-06-16 09:52:01 +02:00
|
|
|
gpslocation.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
gpslocation.h
|
2018-06-16 09:52:01 +02:00
|
|
|
imagedownloader.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
imagedownloader.h
|
|
|
|
import-cobalt.c
|
|
|
|
import-csv.c
|
|
|
|
import-csv.h
|
|
|
|
import-divinglog.c
|
|
|
|
import-shearwater.c
|
|
|
|
import-suunto.c
|
2015-09-02 20:52:34 -03:00
|
|
|
libdivecomputer.c
|
2019-03-25 22:47:44 +01:00
|
|
|
libdivecomputer.h
|
2015-09-02 20:52:34 -03:00
|
|
|
liquivision.c
|
|
|
|
load-git.c
|
|
|
|
membuffer.c
|
2019-03-25 22:47:44 +01:00
|
|
|
membuffer.h
|
2018-06-16 09:52:01 +02:00
|
|
|
metadata.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
metadata.h
|
2018-06-16 09:52:01 +02:00
|
|
|
metrics.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
metrics.h
|
2015-09-02 20:52:34 -03:00
|
|
|
ostctools.c
|
|
|
|
parse-xml.c
|
2017-11-27 19:41:10 +02:00
|
|
|
parse.c
|
2019-03-25 22:47:44 +01:00
|
|
|
parse.h
|
2015-09-02 20:52:34 -03:00
|
|
|
planner.c
|
2019-03-25 22:47:44 +01:00
|
|
|
planner.h
|
2017-05-25 12:57:06 +02:00
|
|
|
plannernotes.c
|
2019-03-25 22:47:44 +01:00
|
|
|
pref.h
|
2015-09-02 20:52:34 -03:00
|
|
|
profile.c
|
2019-03-25 22:47:44 +01:00
|
|
|
profile.h
|
|
|
|
qt-gui.h
|
2018-06-16 09:52:01 +02:00
|
|
|
qt-init.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
qthelper.cpp
|
|
|
|
qthelper.h
|
2015-09-02 20:52:34 -03:00
|
|
|
save-git.c
|
|
|
|
save-html.c
|
2019-03-25 22:47:44 +01:00
|
|
|
save-html.h
|
2019-03-30 20:59:28 +01:00
|
|
|
save-profiledata.c
|
2019-03-25 22:47:44 +01:00
|
|
|
save-xml.c
|
2019-11-24 13:26:29 +01:00
|
|
|
selection.cpp
|
|
|
|
selection.h
|
2015-09-02 20:52:34 -03:00
|
|
|
sha1.c
|
2019-03-25 22:47:44 +01:00
|
|
|
sha1.h
|
|
|
|
ssrf.h
|
2015-09-02 20:52:34 -03:00
|
|
|
statistics.c
|
2019-03-25 22:47:44 +01:00
|
|
|
statistics.h
|
|
|
|
strndup.h
|
2015-09-02 20:52:34 -03:00
|
|
|
strtod.c
|
2019-03-25 22:47:44 +01:00
|
|
|
subsurface-string.h
|
2015-09-02 20:52:34 -03:00
|
|
|
subsurfacestartup.c
|
2019-03-25 22:47:44 +01:00
|
|
|
subsurfacestartup.h
|
2018-06-16 09:52:01 +02:00
|
|
|
subsurfacesysinfo.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
subsurfacesysinfo.h
|
2019-05-30 18:29:36 +02:00
|
|
|
tag.c
|
|
|
|
tag.h
|
2018-06-16 09:52:01 +02:00
|
|
|
taxonomy.c
|
2019-03-25 22:47:44 +01:00
|
|
|
taxonomy.h
|
2015-09-02 20:52:34 -03:00
|
|
|
time.c
|
2019-05-31 16:09:14 +02:00
|
|
|
trip.c
|
|
|
|
trip.h
|
2015-09-02 20:52:34 -03:00
|
|
|
uemis-downloader.c
|
2019-03-25 22:47:44 +01:00
|
|
|
uemis.c
|
|
|
|
uemis.h
|
|
|
|
units.h
|
2019-06-04 09:05:17 +02:00
|
|
|
units.c
|
2019-12-08 11:45:55 +01:00
|
|
|
uploadDiveShare.cpp
|
|
|
|
uploadDiveShare.h
|
2019-11-27 09:48:58 +01:00
|
|
|
uploadDiveLogsDE.cpp
|
|
|
|
uploadDiveLogsDE.h
|
2015-09-02 20:52:34 -03:00
|
|
|
version.c
|
2019-03-25 22:47:44 +01:00
|
|
|
version.h
|
2018-07-10 15:04:35 +02:00
|
|
|
videoframeextractor.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
videoframeextractor.h
|
|
|
|
webservice.h
|
2015-09-02 20:52:34 -03:00
|
|
|
windowtitleupdate.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
windowtitleupdate.h
|
|
|
|
worldmap-options.h
|
2018-06-16 09:52:01 +02:00
|
|
|
worldmap-save.c
|
2019-03-25 22:47:44 +01:00
|
|
|
worldmap-save.h
|
|
|
|
xmp_parser.cpp
|
|
|
|
xmp_parser.h
|
2016-01-07 16:01:24 -02:00
|
|
|
|
2018-06-16 16:03:31 +02:00
|
|
|
# classes to manage struct preferences for QWidget and QML
|
|
|
|
settings/qPref.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPref.h
|
2018-07-12 21:01:31 +02:00
|
|
|
settings/qPrefCloudStorage.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefCloudStorage.h
|
2018-06-15 10:53:42 +02:00
|
|
|
settings/qPrefDisplay.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefDisplay.h
|
2018-07-15 18:15:40 +02:00
|
|
|
settings/qPrefDiveComputer.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefDiveComputer.h
|
2018-08-01 17:14:04 +02:00
|
|
|
settings/qPrefDivePlanner.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefDivePlanner.h
|
2019-12-09 20:58:20 +02:00
|
|
|
settings/qPrefEquipment.cpp
|
|
|
|
settings/qPrefEquipment.h
|
2018-08-12 17:57:45 +02:00
|
|
|
settings/qPrefGeneral.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefGeneral.h
|
2018-08-06 19:25:06 +02:00
|
|
|
settings/qPrefGeocoding.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefGeocoding.h
|
2018-08-06 19:39:35 +02:00
|
|
|
settings/qPrefLanguage.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefLanguage.h
|
2018-08-05 15:59:28 +02:00
|
|
|
settings/qPrefLocationService.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefLocationService.h
|
2019-12-09 20:58:20 +02:00
|
|
|
settings/qPrefLog.cpp
|
|
|
|
settings/qPrefLog.h
|
|
|
|
settings/qPrefMedia.cpp
|
|
|
|
settings/qPrefMedia.h
|
2018-08-10 21:18:40 +02:00
|
|
|
settings/qPrefPartialPressureGas.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefPartialPressureGas.h
|
2018-07-17 15:22:51 +02:00
|
|
|
settings/qPrefPrivate.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefPrivate.h
|
2018-07-27 10:25:43 +02:00
|
|
|
settings/qPrefProxy.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefProxy.h
|
2018-08-04 12:02:29 +02:00
|
|
|
settings/qPrefTechnicalDetails.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefTechnicalDetails.h
|
2018-07-31 15:04:12 +02:00
|
|
|
settings/qPrefUnit.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefUnit.h
|
2018-08-03 19:24:53 +02:00
|
|
|
settings/qPrefUpdateManager.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
settings/qPrefUpdateManager.h
|
2018-06-16 16:03:31 +02:00
|
|
|
|
2016-01-07 16:01:24 -02:00
|
|
|
#Subsurface Qt have the Subsurface structs QObjectified for easy access via QML.
|
2016-07-31 22:27:07 +01:00
|
|
|
subsurface-qt/CylinderObjectHelper.cpp
|
2019-03-25 22:47:44 +01: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 09:20:25 +02:00
|
|
|
subsurface-qt/DiveListNotifier.cpp
|
2019-03-25 22:47:44 +01:00
|
|
|
subsurface-qt/DiveListNotifier.h
|
|
|
|
subsurface-qt/DiveObjectHelper.cpp
|
|
|
|
subsurface-qt/DiveObjectHelper.h
|
2017-04-18 19:14:03 +02:00
|
|
|
|
2015-09-02 20:52:34 -03: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})
|