mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 10:12:46 +00:00
Add basic settings framework
This settingsframework uses mlite5 on SailfishOS and other platforms with the mlite library present, because I believe DConf is neat. For platforms that do not have DConf and mlite present, it falls back to a quickly put together implementation that uses QSettings as a backend. Implementing an settings item is simply done by subclassing the Jellyfin::QObjectSettingsWrapper.
This commit is contained in:
parent
a89834044c
commit
1453cbbc63
8 changed files with 530 additions and 3 deletions
|
@ -11,6 +11,7 @@ option(PLATFORM_SAILFISHOS "Build SailfishOS version of application" OFF)
|
|||
option(PLATFORM_QTQUICK "Build QtQuick version of application" ON)
|
||||
option(FREEDESKTOP_INTEGRATION "Integration with various FreeDesktop.org standards, such as MPRIS" ON)
|
||||
option(BUILD_PRECOMPILED_HEADERS "Build with precompiled headers for faster compile times when doing a full rebuild, at the cost of slower incremental builds whenever a header file is changed" OFF)
|
||||
option(USE_MLITE "Build with mlite (MeeGo lite library), only available on Linux-based platforms. Used to store settings using DConf." OFF)
|
||||
|
||||
if (NOT SAILFIN_VERSION)
|
||||
set(SAILFIN_VERSION "1.0.0")
|
||||
|
@ -19,6 +20,7 @@ endif()
|
|||
if(PLATFORM_SAILFISHOS)
|
||||
# Hardcode this less?
|
||||
set(CMAKE_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/share/harbour-sailfin/lib")
|
||||
set(USE_MLITE ON)
|
||||
endif()
|
||||
|
||||
add_subdirectory(core)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue