mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
mobile/kirigami: install our own copy of ECM
Instead of relying on this being available as a system resource, treat it the same way as we treat Kirigami and the Breeze icons. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a883fce612
commit
24bb4d7677
3 changed files with 10 additions and 1 deletions
|
@ -331,7 +331,7 @@ if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
|
||||||
# set up Kirigami using KDE ECM
|
# set up Kirigami using KDE ECM
|
||||||
# that's available as kde-extra-cmake-modules on Homebrew, on all Linux flavors
|
# that's available as kde-extra-cmake-modules on Homebrew, on all Linux flavors
|
||||||
# Android and iOS are built via qmake, Windows build of Subsurface-mobile isn't supported
|
# Android and iOS are built via qmake, Windows build of Subsurface-mobile isn't supported
|
||||||
find_package(ECM REQUIRED CONFIG)
|
find_package(ECM REQUIRED CONFIG PATHS ${CMAKE_CURRENT_SOURCE_DIR}/mobile-widgets/3rdparty/ECM)
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/ ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/ ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
|
||||||
set(BREEZEICONS_DIR mobile-widgets/3rdparty/breeze-icons/)
|
set(BREEZEICONS_DIR mobile-widgets/3rdparty/breeze-icons/)
|
||||||
|
|
||||||
|
|
|
@ -177,6 +177,9 @@ for package in "${PACKAGES[@]}" ; do
|
||||||
kirigami)
|
kirigami)
|
||||||
git_checkout_library kirigami $CURRENT_KIRIGAMI https://github.com/KDE/kirigami.git
|
git_checkout_library kirigami $CURRENT_KIRIGAMI https://github.com/KDE/kirigami.git
|
||||||
;;
|
;;
|
||||||
|
extra-cmake-modules) # we want this intentionally at the same version as kirigami
|
||||||
|
git_checkout_library extra-cmake-modules $CURRENT_KIRIGAMI https://github.com/KDE/extra-cmake-modules.git
|
||||||
|
;;
|
||||||
openssl)
|
openssl)
|
||||||
git_checkout_library openssl $CURRENT_OPENSSL https://github.com/openssl/openssl.git
|
git_checkout_library openssl $CURRENT_OPENSSL https://github.com/openssl/openssl.git
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -19,7 +19,13 @@ fi
|
||||||
# a 3rdparty folder within our sources
|
# a 3rdparty folder within our sources
|
||||||
./scripts/get-dep-lib.sh single "$SRC"/subsurface/mobile-widgets/3rdparty kirigami
|
./scripts/get-dep-lib.sh single "$SRC"/subsurface/mobile-widgets/3rdparty kirigami
|
||||||
./scripts/get-dep-lib.sh single "$SRC"/subsurface/mobile-widgets/3rdparty breeze-icons
|
./scripts/get-dep-lib.sh single "$SRC"/subsurface/mobile-widgets/3rdparty breeze-icons
|
||||||
|
./scripts/get-dep-lib.sh single "$SRC"/subsurface/mobile-widgets/3rdparty extra-cmake-modules
|
||||||
|
|
||||||
|
# now install the ECM to keep things more contained, install into 3rdparty/ECM
|
||||||
|
mkdir -p "$SRC"/subsurface/mobile-widgets/3rdparty/ECM
|
||||||
|
cd "$SRC"/subsurface/mobile-widgets/3rdparty/ECM
|
||||||
|
cmake -DSHARE_INSTALL_DIR=.. ../extra-cmake-modules
|
||||||
|
make install
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue