From 0851224b6c53d1023ea7b2d8642de77608475e44 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 23 Nov 2020 09:34:02 -0800 Subject: mobile/kirigami: first steps to switching to Kirigami 5.76 Our half-assed manual build of Kirigami was becoming completely unmaintainable. So let's try to use the build method that the Kirigami team recommends. Which unfortunately requires us to have access to the KDE extra cmake modules (ECM). Signed-off-by: Dirk Hohndel --- mobile-widgets/3rdparty/CMakeLists.txt | 4 ++++ mobile-widgets/CMakeLists.txt | 16 ---------------- mobile-widgets/qml/mobile-resources.qrc | 26 -------------------------- 3 files changed, 4 insertions(+), 42 deletions(-) create mode 100644 mobile-widgets/3rdparty/CMakeLists.txt (limited to 'mobile-widgets') diff --git a/mobile-widgets/3rdparty/CMakeLists.txt b/mobile-widgets/3rdparty/CMakeLists.txt new file mode 100644 index 000000000..e0afef627 --- /dev/null +++ b/mobile-widgets/3rdparty/CMakeLists.txt @@ -0,0 +1,4 @@ +# simply pull in Kirigami, making sure it's statically built +option(BUILD_SHARED_LIBS "Build a shared module" OFF) + +add_subdirectory(kirigami) diff --git a/mobile-widgets/CMakeLists.txt b/mobile-widgets/CMakeLists.txt index 9f5ddaf47..4e4135a5a 100644 --- a/mobile-widgets/CMakeLists.txt +++ b/mobile-widgets/CMakeLists.txt @@ -4,25 +4,9 @@ set(SUBSURFACE_MOBILE_SRCS qmlinterface.cpp qmlmanager.cpp themeinterface.cpp - qml/kirigami/src/columnview.cpp - qml/kirigami/src/delegaterecycler.cpp - qml/kirigami/src/enums.cpp - qml/kirigami/src/formlayoutattached.cpp - qml/kirigami/src/icon.cpp - qml/kirigami/src/kirigamiplugin.cpp - qml/kirigami/src/mnemonicattached.cpp - qml/kirigami/src/scenepositionattached.cpp - qml/kirigami/src/settings.cpp - qml/kirigami/src/wheelhandler.cpp - qml/kirigami/src/libkirigami/basictheme.cpp - qml/kirigami/src/libkirigami/kirigamipluginfactory.cpp - qml/kirigami/src/libkirigami/platformtheme.cpp - qml/kirigami/src/libkirigami/tabletmodewatcher.cpp ) if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable") - include_directories(${CMAKE_SOURCE_DIR}/mobile-widgets/qml/kirigami/src/libkirigami) - add_definitions(-DKIRIGAMI_BUILD_TYPE_STATIC) add_library(subsurface_mobile STATIC ${SUBSURFACE_MOBILE_SRCS}) target_link_libraries(subsurface_mobile ${QT_LIBRARIES}) endif() diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index 7e6f9bc06..78b5f2ed3 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -96,34 +96,8 @@ icons/ic_sort_24px.svg icons/local_offer.svg - - kirigami/icons/application-menu.svg - kirigami/icons/dialog-cancel.svg - kirigami/icons/distribute-horizontal-x.svg - kirigami/icons/document-edit.svg - kirigami/icons/document-save.svg - kirigami/icons/go-up.svg - kirigami/icons/gps.svg - kirigami/icons/handle-left.svg - kirigami/icons/handle-right.svg - kirigami/icons/map-globe.svg - kirigami/icons/list-add.svg - kirigami/icons/overflow-menu.svg - kirigami/icons/trash-empty.svg - kirigami/icons/edit-copy.svg - kirigami/icons/edit-paste.svg - kirigami/icons/view-readermode.svg - - - kirigami/icons/go-next.svg - kirigami/icons/go-previous.svg - kirigami/icons/go-next.svg - kirigami/icons/go-previous.svg - - - ../../xslt/commonTemplates.xsl -- cgit v1.2.3-70-g09d2