mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
build-system: add models and shared backends to the downloader
We'll need this in order to be able to actually open dive files and download things from a dive computer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
057c151fe8
commit
5a8db97819
3 changed files with 9 additions and 3 deletions
|
@ -393,6 +393,9 @@ elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DownloaderExecutable")
|
|||
add_executable(${SUBSURFACE_TARGET} MACOSX_BUNDLE WIN32 ${SUBSURFACE_PKG} ${DOWNLOADER_APP} ${SUBSURFACE_RESOURCES})
|
||||
target_link_libraries(
|
||||
${SUBSURFACE_TARGET}
|
||||
subsurface_backend_shared
|
||||
subsurface_models_downloader
|
||||
subsurface_commands
|
||||
subsurface_corelib
|
||||
${SUBSURFACE_LINK_LIBRARIES}
|
||||
)
|
||||
|
|
|
@ -73,4 +73,7 @@ elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
|
|||
add_library(subsurface_models_mobile STATIC ${SUBSURFACE_GENERIC_MODELS_LIB_SRCS}
|
||||
${SUBSURFACE_MOBILE_MODELS_LIB_SRCS})
|
||||
target_link_libraries(subsurface_models_mobile ${QT_LIBRARIES})
|
||||
elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DownloaderExecutable")
|
||||
add_library(subsurface_models_downloader STATIC ${SUBSURFACE_GENERIC_MODELS_LIB_SRCS})
|
||||
target_link_libraries(subsurface_models_downloader ${QT_LIBRARIES})
|
||||
endif()
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "divelocationmodel.h"
|
||||
#include "core/divesite.h"
|
||||
#include "core/divefilter.h"
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
#if !defined(SUBSURFACE_MOBILE) && !defined(SUBSURFACE_DOWNLOADER)
|
||||
#include "qt-models/filtermodels.h"
|
||||
#include "desktop-widgets/mapwidget.h"
|
||||
#endif
|
||||
|
@ -20,7 +20,7 @@ MapLocation::MapLocation(struct dive_site *dsIn, QGeoCoordinate coordIn, QString
|
|||
// Simplify this!
|
||||
static bool inEditMode()
|
||||
{
|
||||
#ifdef SUBSURFACE_MOBILE
|
||||
#if defined(SUBSURFACE_MOBILE) || defined(SUBSURFACE_DOWNLOADER)
|
||||
return false;
|
||||
#else
|
||||
return MapWidget::instance()->editMode();
|
||||
|
@ -127,7 +127,7 @@ void MapLocationModel::reload(QObject *map)
|
|||
|
||||
QMap<QString, MapLocation *> locationNameMap;
|
||||
|
||||
#ifdef SUBSURFACE_MOBILE
|
||||
#if defined(SUBSURFACE_MOBILE) || defined(SUBSURFACE_DOWNLOADER)
|
||||
bool diveSiteMode = false;
|
||||
#else
|
||||
// In dive site mode (that is when either editing a dive site or on
|
||||
|
|
Loading…
Reference in a new issue