From c9bee7c2d0c103f9e6de544210ce5769bca80858 Mon Sep 17 00:00:00 2001 From: Jozef Mlich Date: Fri, 13 Dec 2024 12:50:05 +0100 Subject: [PATCH] compile with cmake --- CMakeLists.txt | 41 +++++++ daemon/CMakeLists.txt | 235 +++++++++++++++++++++++++++++++++++++ lib/CMakeLists.txt | 33 ++++++ ui/CMakeLists.txt | 88 ++++++++++++++ ui/amazfish.qrc | 54 --------- ui/o2/src/CMakeLists.txt | 6 +- ui/platform-kirigami.qrc | 58 +++++++++ ui/platform-qtcontrols.qrc | 57 +++++++++ ui/platform-silica.qrc | 59 ++++++++++ ui/platform-uuitk.qrc | 59 ++++++++++ ui/update-qrc.sh | 23 ++++ 11 files changed, 656 insertions(+), 57 deletions(-) create mode 100644 CMakeLists.txt create mode 100644 daemon/CMakeLists.txt create mode 100644 lib/CMakeLists.txt create mode 100644 ui/CMakeLists.txt create mode 100644 ui/platform-kirigami.qrc create mode 100644 ui/platform-qtcontrols.qrc create mode 100644 ui/platform-silica.qrc create mode 100644 ui/platform-uuitk.qrc create mode 100755 ui/update-qrc.sh diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..2386a0c2 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,41 @@ +cmake_minimum_required(VERSION 3.16) + +project(exphone LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOUIC ON) +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + +set(CMAKE_VERBOSE_MAKEFILE ON) +set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") + +include(GNUInstallDirs) +include(FeatureSummary) + +find_package(Qt5 COMPONENTS Core Gui Quick Sql DBus LinguistTools REQUIRED) + +if(NOT DEFINED FLAVOR) + message(FATAL_ERROR "Please specify the platform using -DFLAVOR=platform as a CMake option. Supported platforms: kirigami, silica, qtcontrols, uuitk.") +elseif(FLAVOR STREQUAL "silica") + add_definitions(-DMER_EDITION_SAILFISH) +elseif(FLAVOR STREQUAL "kirigami") + add_definitions(-Dflavor_kirigami) +elseif(FLAVOR STREQUAL "qtcontrols") + add_definitions(-Dflavor_qtcontrols) +elseif(FLAVOR STREQUAL "uuitk") + add_definitions(-DUUITK_EDITION) + add_subdirectory(click) +else() + message(FATAL_ERROR "Unsupported platform '${FLAVOR}'. Supported platforms: kirigami, silica, qtcontrols, uuitk.") +endif() + +add_subdirectory(qble) +add_subdirectory(lib) +add_subdirectory(daemon) +add_subdirectory(ui) diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt new file mode 100644 index 00000000..c1ac8de9 --- /dev/null +++ b/daemon/CMakeLists.txt @@ -0,0 +1,235 @@ + +set(SOURCES +./src/activitycoordinate.cpp +./src/activitykind.cpp +./src/activitysample.cpp +./src/activitysummary.cpp +./src/bipactivitydetailparser.cpp +./src/bipbatteryinfo.cpp +./src/dbushrm.cpp +./src/devicefactory.cpp +./src/deviceinterface.cpp +./src/devices/abstractdevice.cpp +./src/devices/abstractfirmwareinfo.cpp +./src/devices/asteroidosdevice.cpp +./src/devices/banglejsdevice.cpp +./src/devices/bipdevice.cpp +./src/devices/bipfirmwareinfo.cpp +./src/devices/biplitedevice.cpp +./src/devices/biplitefirmwareinfo.cpp +./src/devices/bipsdevice.cpp +./src/devices/gtr2device.cpp +./src/devices/gtr2firmwareinfo.cpp +./src/devices/gtrdevice.cpp +./src/devices/gtrfirmwareinfo.cpp +./src/devices/gts2device.cpp +./src/devices/gts2firmwareinfo.cpp +./src/devices/gtsdevice.cpp +./src/devices/gtsfirmwareinfo.cpp +./src/devices/huamidevice.cpp +./src/devices/huamifirmwareinfo.cpp +./src/devices/infinitimefirmwareinfo.cpp +./src/devices/neodevice.cpp +./src/devices/neofirmwareinfo.cpp +./src/devices/pinetimejfdevice.cpp +./src/harbour-amazfish-daemon.cpp +./src/huamiweathercondition.cpp +./src/navigationinterface.cpp +./src/operations/abstractfetchoperation.cpp +./src/operations/abstractoperation.cpp +./src/operations/activityfetchoperation.cpp +./src/operations/adafruitblefsoperation.cpp +./src/operations/adafruitblefsworker.cpp +./src/operations/dfuoperation.cpp +./src/operations/dfuworker.cpp +./src/operations/huamiupdatefirmwareoperation2020.cpp +./src/operations/logfetchoperation.cpp +./src/operations/sportsdetailoperation.cpp +./src/operations/sportssummaryoperation.cpp +./src/operations/updatefirmwareoperation.cpp +./src/operations/updatefirmwareoperationnew.cpp +./src/qaesencryption.cpp +./src/realtimeactivitysample.cpp +./src/services/adafruitblefsservice.cpp +./src/services/alertnotificationservice.cpp +./src/services/asteroidmediaservice.cpp +./src/services/asteroidnotificationservice.cpp +./src/services/asteroidscreenshotservice.cpp +./src/services/asteroidtimeservice.cpp +./src/services/asteroidweatherservice.cpp +./src/services/batteryservice.cpp +./src/services/bipfirmwareservice.cpp +./src/services/currenttimeservice.cpp +./src/services/deviceinfoservice.cpp +./src/services/dfuservice.cpp +./src/services/hrmservice.cpp +./src/services/immediatealertservice.cpp +./src/services/infinitimemotionservice.cpp +./src/services/infinitimenavservice.cpp +#./src/services/infinitimeresourceservice.cpp +./src/services/infinitimeweatherservice.cpp +./src/services/miband2service.cpp +./src/services/mibandservice.cpp +./src/services/pinetimemusicservice.cpp +./src/services/pinetimesimpleweatherservice.cpp +./src/services/uartservice.cpp +./src/transliterator.cpp +./src/typeconversion.cpp +) + +set(HEADERS +./src/activitycoordinate.h +./src/activitykind.h +./src/activitysample.h +./src/activitysummary.h +./src/bipactivitydetailparser.h +./src/bipbatteryinfo.h +./src/codec.h +./src/dbushrm.h +./src/devicefactory.h +./src/deviceinterface.h +./src/devices/abstractdevice.h +./src/devices/abstractfirmwareinfo.h +./src/devices/asteroidosdevice.h +./src/devices/banglejsdevice.h +./src/devices/bipdevice.h +./src/devices/bipfirmwareinfo.h +./src/devices/biplitedevice.h +./src/devices/biplitefirmwareinfo.h +./src/devices/bipsdevice.h +./src/devices/gtr2device.h +./src/devices/gtr2firmwareinfo.h +./src/devices/gtrdevice.h +./src/devices/gtrfirmwareinfo.h +./src/devices/gts2device.h +./src/devices/gts2firmwareinfo.h +./src/devices/gtsdevice.h +./src/devices/gtsfirmwareinfo.h +./src/devices/huamidevice.h +./src/devices/huamifirmwareinfo.h +./src/devices/infinitimefirmwareinfo.h +./src/devices/neodevice.h +./src/devices/neofirmwareinfo.h +./src/devices/pinetimejfdevice.h +./src/huamiweathercondition.h +./src/navigationinterface.h +./src/operations/abstractfetchoperation.h +./src/operations/abstractoperation.h +./src/operations/activityfetchoperation.h +./src/operations/adafruitblefsoperation.h +./src/operations/adafruitblefsworker.h +./src/operations/dfuoperation.h +./src/operations/dfuworker.h +./src/operations/huamiupdatefirmwareoperation2020.h +./src/operations/logfetchoperation.h +./src/operations/sportsdetailoperation.h +./src/operations/sportssummaryoperation.h +./src/operations/updatefirmwareoperation.h +./src/operations/updatefirmwareoperationnew.h +./src/qaesencryption.h +./src/realtimeactivitysample.h +./src/services/adafruitblefsservice.h +./src/services/alertnotificationservice.h +./src/services/asteroidmediaservice.h +./src/services/asteroidnotificationservice.h +./src/services/asteroidscreenshotservice.h +./src/services/asteroidtimeservice.h +./src/services/asteroidweatherservice.h +./src/services/batteryservice.h +./src/services/bipfirmwareservice.h +./src/services/currenttimeservice.h +./src/services/deviceinfoservice.h +./src/services/dfuservice.h +./src/services/hrmservice.h +./src/services/immediatealertservice.h +./src/services/infinitimemotionservice.h +./src/services/infinitimenavservice.h +#./src/services/infinitimeresourceservice.h +./src/services/infinitimeweatherservice.h +./src/services/miband2service.h +./src/services/mibandservice.h +./src/services/pinetimemusicservice.h +./src/services/pinetimesimpleweatherservice.h +./src/services/uartservice.h +./src/transliterator.h +./src/typeconversion.h +) + + +set(WATCHFISH_FEATURES "notificationmonitor;walltime;music;calendar;voicecall;volume") + +if(FLAVOR STREQUAL "silica") + +# message(SailfishOS daemon build) +# DEFINES += MER_EDITION_SAILFISH +# LIBS += -lkeepalive -lpulse-simple +# CONFIG += sailfishapp +# CONFIG += link_pkgconfig +# PKGCONFIG += mlite5 libpulse +# WATCHFISH_FEATURES += music \ +# voicecall \ +# notificationmonitor \ +# calendar + +elseif(FLAVOR STREQUAL "uuitk") + +# DEFINES += UUITK_EDITION +# LIBS += -lpulse-simple +# PKGCONFIG += libpulse +# WATCHFISH_FEATURES += music \ +# voicecall \ +# notificationmonitor \ +# calendar + +else() + set(WATCHFISH_FEATURES "notificationmonitor;music;calendar") +endif() + +add_subdirectory(libwatchfish) + +find_package(Qt5 COMPONENTS Gui Widgets Positioning Network REQUIRED) +find_package(KF5Archive REQUIRED) +find_package(ZLIB REQUIRED) +find_package(ICU REQUIRED COMPONENTS uc i18n data) +find_package(KDb REQUIRED) + +add_executable(harbour-amazfishd ${SOURCES} ${HEADERS}) + +install(TARGETS harbour-amazfishd RUNTIME + DESTINATION ${CMAKE_INSTALL_BINDIR}) + +target_include_directories(harbour-amazfishd PUBLIC + ${CMAKE_CURRENT_SOURCE_DIR}/src + ${CMAKE_CURRENT_SOURCE_DIR}/src/devices + ${CMAKE_CURRENT_SOURCE_DIR}/src/operations + ${CMAKE_CURRENT_SOURCE_DIR}/src/services + ${CMAKE_CURRENT_SOURCE_DIR}/.. +) + +target_compile_definitions(harbour-amazfishd + PRIVATE $<$,$>:QT_QML_DEBUG>) + +target_link_libraries(harbour-amazfishd + PRIVATE + libwatchfish libamazfish qble + Qt5::Gui Qt5::Widgets Qt5::Core Qt5::Positioning Qt5::Network + KF5::Archive + ZLIB::ZLIB + ICU::uc ICU::i18n ICU::data + KDb +) + + +## translations +file(GLOB TS_FILES translations/*.ts) + +# TODO check if translation path is correct on all platforms +if(FLAVOR STREQUAL "uuitk") + add_definitions(-DTRANSLATION_FOLDER="./share/harbour-amazfish/translations") +else() + add_definitions(-DTRANSLATION_FOLDER=".") +endif() + +QT5_ADD_TRANSLATION(QM_FILES ${TS_FILES}) +add_custom_target(daemon_translations DEPENDS ${QM_FILES}) +add_dependencies(harbour-amazfishd daemon_translations) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 00000000..519aba03 --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,33 @@ +cmake_minimum_required(VERSION 3.16) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +add_library(libamazfish STATIC) + +find_package(Qt5 REQUIRED COMPONENTS Core DBus Xml) + +target_include_directories(libamazfish PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src) +target_link_libraries(libamazfish PUBLIC Qt5::Core Qt5::DBus Qt5::Xml) + +set(SOURCES + ./src/amazfish.cpp + ./src/amazfishconfig.cpp + ./src/weather/city.cpp + ./src/weather/citymanager.cpp + ./src/weather/citysearchmodel.cpp + ./src/weather/currentweather.cpp +) + +set(HEADERS + ./src/weather/apikey.h + ./src/weather/city.h + ./src/weather/citymanager.h + ./src/weather/citysearchmodel.h + ./src/weather/currentweather.h + ./src/amazfish.h + ./src/amazfishconfig.h +) + +target_sources(libamazfish PUBLIC ${SOURCES} ${HEADERS}) + diff --git a/ui/CMakeLists.txt b/ui/CMakeLists.txt new file mode 100644 index 00000000..3633d91f --- /dev/null +++ b/ui/CMakeLists.txt @@ -0,0 +1,88 @@ +set(o2_WITH_KEYCHAIN OFF CACHE BOOL "keychain store" FORCE) +add_subdirectory(o2) + + +file(GLOB TS_FILES translations/*.ts) + +if(FLAVOR STREQUAL "uuitk") + add_definitions(-DTRANSLATION_FOLDER="./share/harbour-amazfish/translations") +else() + add_definitions(-DTRANSLATION_FOLDER=".") +endif() + +list(APPEND RESOURCES amazfish.qrc) +list(APPEND RESOURCES icons.qrc) +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/platform-${FLAVOR}.qrc") + list(APPEND RESOURCES "platform-${FLAVOR}.qrc") +else() + message(WARNING "Resource file 'platform-${FLAVOR}.qrc' not found. Proceeding without it.") +endif() + +set(SOURCES + ./src/datasource.cpp + ./src/sportsdatamodel.cpp + ./src/sportsmetamodel.cpp + ./src/timeformatter.cpp + ./src/harbour-amazfish-ui.cpp + ./src/trackloader.cpp + ./src/daemoninterface.cpp +) + +set(HEADERS + ./src/datasource.h + ./src/sportsdatamodel.h + ./src/sportsmetamodel.h + ./src/timeformatter.h + ./src/trackloader.h + ./src/daemoninterface.h +) + +add_executable(harbour-amazfish-ui + ${SOURCES} + ${HEADERS} + ${RESOURCES} + ${TS_FILES} +) + +find_package(Qt5 COMPONENTS Gui Widgets Quick Positioning REQUIRED) +find_package(KDb REQUIRED) + +QT5_ADD_TRANSLATION(QM_FILES ${TS_FILES}) +add_custom_target(ui_translations DEPENDS ${QM_FILES}) +add_dependencies(harbour-amazfish-ui ui_translations) + +QT5_CREATE_TRANSLATION(QT_FILES "${CMAKE_SOURCE_DIR}" + OPTIONS "-no-obsolete") + +install(FILES ${QM_FILES} + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/harbour-amazfish/translations") + +install(TARGETS harbour-amazfish-ui RUNTIME + DESTINATION ${CMAKE_INSTALL_BINDIR}) + +target_include_directories(harbour-amazfish-ui PUBLIC + ${CMAKE_CURRENT_SOURCE_DIR}/.. +) + +target_compile_definitions(harbour-amazfish-ui + PRIVATE $<$,$>:QT_QML_DEBUG>) + +target_link_libraries(harbour-amazfish-ui + PRIVATE + libamazfish libwatchfish qble + Qt5::Core Qt5::Widgets Qt5::Quick Qt5::Positioning + KDb + o2 +) + +#install(FILES "exphone.desktop" +# DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") + +install(FILES "icons/256x256/exphone.png" + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps") + +install(FILES "icons/512x512/exphone.png" + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/512x512/apps") + +# install(FILES "exphone.appdata.xml" +# DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo") diff --git a/ui/amazfish.qrc b/ui/amazfish.qrc index 9a76efe9..6ada08c3 100644 --- a/ui/amazfish.qrc +++ b/ui/amazfish.qrc @@ -1,57 +1,5 @@ - qml/components/platform.kirigami/ApplicationWindowPL.qml - qml/components/platform.kirigami/BusyIndicatorPL.qml - qml/components/platform.kirigami/BusyIndicatorSmallPL.qml - qml/components/platform.kirigami/ButtonPL.qml - qml/components/platform.kirigami/ClipboardPL.qml - qml/components/platform.kirigami/ComboBoxPL.qml - qml/components/platform.kirigami/ContextMenuItemPL.qml - qml/components/platform.kirigami/ContextMenuPL.qml - qml/components/platform.kirigami/DatePickerDialogPL.qml - qml/components/platform.kirigami/DialogAutoPL.qml - qml/components/platform.kirigami/DialogListPL.qml - qml/components/platform.kirigami/DialogPL.qml - qml/components/platform.kirigami/ExpandingSectionGroupPL.qml - qml/components/platform.kirigami/ExpandingSectionPL.qml - qml/components/platform.kirigami/FileSelectorPL.qml - qml/components/platform.kirigami/FormLayoutPL.qml - qml/components/platform.kirigami/IconButtonPL.qml - qml/components/platform.kirigami/IconPL.qml - qml/components/platform.kirigami/LabelPL.qml - qml/components/platform.kirigami/ListViewPL.qml - qml/components/platform.kirigami/ListItemPL.qml - qml/components/platform.kirigami/MenuDrawerItemPL.qml - qml/components/platform.kirigami/MenuDrawerPL.qml - qml/components/platform.kirigami/MenuDrawerSubmenuItemPL.qml - qml/components/platform.kirigami/MenuDrawerSubmenuPL.qml - qml/components/platform.kirigami/PageEmptyPL.qml - qml/components/platform.kirigami/PageListPL.qml - qml/components/platform.kirigami/PageMenuItemPL.qml - qml/components/platform.kirigami/PageMenuPL.qml - qml/components/platform.kirigami/PagePL.qml - qml/components/platform.kirigami/PopupPL.qml - qml/components/platform.kirigami/RemorsePopupPL.qml - qml/components/platform.kirigami/SearchFieldPL.qml - qml/components/platform.kirigami/SectionHeaderPL.qml - qml/components/platform.kirigami/SliderPL.qml - qml/components/platform.kirigami/StackPL.qml - qml/components/platform.kirigami/StylerPL.qml - qml/components/platform.kirigami/TextAreaPL.qml - qml/components/platform.kirigami/TextFieldPL.qml - qml/components/platform.kirigami/TextSwitchPL.qml - qml/components/platform.kirigami/TimePickerDialogPL.qml - qml/components/platform.kirigami/ToolItemPL.qml - qml/components/platform.kirigami/ValueButtonPL.qml - qml/components/DraggableItemDropArea.qml - qml/components/DraggableItem.qml - qml/components/Alarm.qml - qml/components/Axis.qml - qml/components/DeviceButton.qml - qml/components/DownloadDataMenuItem.qml - qml/components/Graph.qml - qml/components/GraphData.qml - qml/components/PercentCircle.qml qml/cover/CoverPage.qml qml/pages/AddCityPage.qml qml/pages/AnalysisPage.qml @@ -121,8 +69,6 @@ qml/pics/weather-storm.png qml/tools/JSTools.js qml/harbour-amazfish.qml - qml/components/TruncationModes.qml - qml/components/DateNavigation.qml icons/172x172/harbour-amazfish-ui.png diff --git a/ui/o2/src/CMakeLists.txt b/ui/o2/src/CMakeLists.txt index cad487b8..d8bdf85d 100644 --- a/ui/o2/src/CMakeLists.txt +++ b/ui/o2/src/CMakeLists.txt @@ -235,6 +235,6 @@ install(FILES ${o2_HDRS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/o2 ) -message(STATUS "Writing pkg-config file...") -configure_file(${CMAKE_SOURCE_DIR}/o2.pc.cmake ${CMAKE_BINARY_DIR}/o2.pc @ONLY) -install(FILES ${CMAKE_BINARY_DIR}/o2.pc DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${o2_LIB_SUFFIX}/pkgconfig/") +#message(STATUS "Writing pkg-config file...") +#configure_file(${CMAKE_SOURCE_DIR}/o2.pc.cmake ${CMAKE_BINARY_DIR}/o2.pc @ONLY) +#install(FILES ${CMAKE_BINARY_DIR}/o2.pc DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${o2_LIB_SUFFIX}/pkgconfig/") diff --git a/ui/platform-kirigami.qrc b/ui/platform-kirigami.qrc new file mode 100644 index 00000000..d4003dd8 --- /dev/null +++ b/ui/platform-kirigami.qrc @@ -0,0 +1,58 @@ + + +./qml/components/platform.kirigami/BusyIndicatorPL.qml +./qml/components/platform.kirigami/BusyIndicatorSmallPL.qml +./qml/components/platform.kirigami/ButtonPL.qml +./qml/components/platform.kirigami/ClipboardPL.qml +./qml/components/platform.kirigami/ComboBoxPL.qml +./qml/components/platform.kirigami/ContextMenuItemPL.qml +./qml/components/platform.kirigami/ContextMenuPL.qml +./qml/components/platform.kirigami/DatePickerDialogPL.qml +./qml/components/platform.kirigami/DialogAutoPL.qml +./qml/components/platform.kirigami/DialogListPL.qml +./qml/components/platform.kirigami/ExpandingSectionGroupPL.qml +./qml/components/platform.kirigami/ExpandingSectionPL.qml +./qml/components/platform.kirigami/FileSelectorPL.qml +./qml/components/platform.kirigami/FormLayoutPL.qml +./qml/components/platform.kirigami/IconButtonPL.qml +./qml/components/platform.kirigami/IconPL.qml +./qml/components/platform.kirigami/LabelPL.qml +./qml/components/platform.kirigami/ListViewPL.qml +./qml/components/platform.kirigami/MenuDrawerItemPL.qml +./qml/components/platform.kirigami/MenuDrawerPL.qml +./qml/components/platform.kirigami/MenuDrawerSubmenuItemPL.qml +./qml/components/platform.kirigami/MenuDrawerSubmenuPL.qml +./qml/components/platform.kirigami/PageEmptyPL.qml +./qml/components/platform.kirigami/PageMenuItemPL.qml +./qml/components/platform.kirigami/PageMenuPL.qml +./qml/components/platform.kirigami/PopupPL.qml +./qml/components/platform.kirigami/RemorsePopupPL.qml +./qml/components/platform.kirigami/SearchFieldPL.qml +./qml/components/platform.kirigami/SectionHeaderPL.qml +./qml/components/platform.kirigami/SliderPL.qml +./qml/components/platform.kirigami/StackPL.qml +./qml/components/platform.kirigami/StylerPL.qml +./qml/components/platform.kirigami/TextAreaPL.qml +./qml/components/platform.kirigami/TextFieldPL.qml +./qml/components/platform.kirigami/TextSwitchPL.qml +./qml/components/platform.kirigami/TimePickerDialogPL.qml +./qml/components/platform.kirigami/ToolItemPL.qml +./qml/components/platform.kirigami/ValueButtonPL.qml +./qml/components/platform.kirigami/ListItemPL.qml +./qml/components/platform.kirigami/PageListPL.qml +./qml/components/platform.kirigami/PagePL.qml +./qml/components/platform.kirigami/ApplicationWindowPL.qml +./qml/components/platform.kirigami/DialogPL.qml +./qml/components/Alarm.qml +./qml/components/Axis.qml +./qml/components/DateNavigation.qml +./qml/components/DeviceButton.qml +./qml/components/DownloadDataMenuItem.qml +./qml/components/DraggableItem.qml +./qml/components/DraggableItemDropArea.qml +./qml/components/Graph.qml +./qml/components/GraphData.qml +./qml/components/PercentCircle.qml +./qml/components/TruncationModes.qml + + diff --git a/ui/platform-qtcontrols.qrc b/ui/platform-qtcontrols.qrc new file mode 100644 index 00000000..136ac2eb --- /dev/null +++ b/ui/platform-qtcontrols.qrc @@ -0,0 +1,57 @@ + + +./qml/components/platform.qtcontrols/ButtonPL.qml +./qml/components/platform.qtcontrols/ClipboardPL.qml +./qml/components/platform.qtcontrols/ComboBoxPL.qml +./qml/components/platform.qtcontrols/ContextMenuItemPL.qml +./qml/components/platform.qtcontrols/ContextMenuPL.qml +./qml/components/platform.qtcontrols/DatePickerDialogPL.qml +./qml/components/platform.qtcontrols/DialogAutoPL.qml +./qml/components/platform.qtcontrols/DialogListPL.qml +./qml/components/platform.qtcontrols/ExpandingSectionGroupPL.qml +./qml/components/platform.qtcontrols/ExpandingSectionPL.qml +./qml/components/platform.qtcontrols/FileSelectorPL.qml +./qml/components/platform.qtcontrols/FormLayoutPL.qml +./qml/components/platform.qtcontrols/HeaderBarImpl.qml +./qml/components/platform.qtcontrols/IconButtonPL.qml +./qml/components/platform.qtcontrols/IconPL.qml +./qml/components/platform.qtcontrols/LabelPL.qml +./qml/components/platform.qtcontrols/ListItemPL.qml +./qml/components/platform.qtcontrols/MenuDrawerItemPL.qml +./qml/components/platform.qtcontrols/MenuDrawerPL.qml +./qml/components/platform.qtcontrols/MenuDrawerSubmenuItemPL.qml +./qml/components/platform.qtcontrols/MenuDrawerSubmenuPL.qml +./qml/components/platform.qtcontrols/PageEmptyPL.qml +./qml/components/platform.qtcontrols/PageListPL.qml +./qml/components/platform.qtcontrols/PageMenuItemPL.qml +./qml/components/platform.qtcontrols/PageMenuPL.qml +./qml/components/platform.qtcontrols/PagePL.qml +./qml/components/platform.qtcontrols/RemorsePopupPL.qml +./qml/components/platform.qtcontrols/SearchFieldPL.qml +./qml/components/platform.qtcontrols/SectionHeaderPL.qml +./qml/components/platform.qtcontrols/SliderPL.qml +./qml/components/platform.qtcontrols/StackPL.qml +./qml/components/platform.qtcontrols/StylerPL.qml +./qml/components/platform.qtcontrols/TextAreaPL.qml +./qml/components/platform.qtcontrols/TextFieldPL.qml +./qml/components/platform.qtcontrols/TextSwitchPL.qml +./qml/components/platform.qtcontrols/ToolItemPL.qml +./qml/components/platform.qtcontrols/ValueButtonPL.qml +./qml/components/platform.qtcontrols/TimePickerDialogPL.qml +./qml/components/platform.qtcontrols/BusyIndicatorSmallPL.qml +./qml/components/platform.qtcontrols/ApplicationWindowPL.qml +./qml/components/platform.qtcontrols/BusyIndicatorPL.qml +./qml/components/platform.qtcontrols/DialogPL.qml +./qml/components/Alarm.qml +./qml/components/Axis.qml +./qml/components/DateNavigation.qml +./qml/components/DeviceButton.qml +./qml/components/DownloadDataMenuItem.qml +./qml/components/DraggableItem.qml +./qml/components/DraggableItemDropArea.qml +./qml/components/Graph.qml +./qml/components/GraphData.qml +./qml/components/PercentCircle.qml +./qml/components/TruncationModes.qml + + diff --git a/ui/platform-silica.qrc b/ui/platform-silica.qrc new file mode 100644 index 00000000..afe895bf --- /dev/null +++ b/ui/platform-silica.qrc @@ -0,0 +1,59 @@ + + +./qml/components/platform.silica/ApplicationWindowPL.qml +./qml/components/platform.silica/BusyIndicatorPL.qml +./qml/components/platform.silica/BusyIndicatorSmallPL.qml +./qml/components/platform.silica/ButtonPL.qml +./qml/components/platform.silica/ClipboardPL.qml +./qml/components/platform.silica/ComboBoxPL.qml +./qml/components/platform.silica/ContextMenuItemPL.qml +./qml/components/platform.silica/ContextMenuPL.qml +./qml/components/platform.silica/Cover.qml +./qml/components/platform.silica/DatePickerDialogPL.qml +./qml/components/platform.silica/DialogAutoPL.qml +./qml/components/platform.silica/DialogListPL.qml +./qml/components/platform.silica/DialogPL.qml +./qml/components/platform.silica/ExpandingSectionGroupPL.qml +./qml/components/platform.silica/ExpandingSectionPL.qml +./qml/components/platform.silica/FileSelectorPL.qml +./qml/components/platform.silica/FormLayoutPL.qml +./qml/components/platform.silica/IconButtonPL.qml +./qml/components/platform.silica/IconPL.qml +./qml/components/platform.silica/LabelPL.qml +./qml/components/platform.silica/ListItemPL.qml +./qml/components/platform.silica/ListViewPL.qml +./qml/components/platform.silica/MenuDrawerItemPL.qml +./qml/components/platform.silica/MenuDrawerPL.qml +./qml/components/platform.silica/MenuDrawerSubmenuItemPL.qml +./qml/components/platform.silica/MenuDrawerSubmenuPL.qml +./qml/components/platform.silica/PageEmptyPL.qml +./qml/components/platform.silica/PageMenuItemPL.qml +./qml/components/platform.silica/PageMenuPL.qml +./qml/components/platform.silica/PagePL.qml +./qml/components/platform.silica/PopupPL.qml +./qml/components/platform.silica/RemorsePopupPL.qml +./qml/components/platform.silica/SearchFieldPL.qml +./qml/components/platform.silica/SectionHeaderPL.qml +./qml/components/platform.silica/SliderPL.qml +./qml/components/platform.silica/StackPL.qml +./qml/components/platform.silica/StylerPL.qml +./qml/components/platform.silica/TextAreaPL.qml +./qml/components/platform.silica/TextFieldPL.qml +./qml/components/platform.silica/TextSwitchPL.qml +./qml/components/platform.silica/TimePickerDialogPL.qml +./qml/components/platform.silica/ToolItemPL.qml +./qml/components/platform.silica/ValueButtonPL.qml +./qml/components/platform.silica/PageListPL.qml +./qml/components/Alarm.qml +./qml/components/Axis.qml +./qml/components/DateNavigation.qml +./qml/components/DeviceButton.qml +./qml/components/DownloadDataMenuItem.qml +./qml/components/DraggableItem.qml +./qml/components/DraggableItemDropArea.qml +./qml/components/Graph.qml +./qml/components/GraphData.qml +./qml/components/PercentCircle.qml +./qml/components/TruncationModes.qml + + diff --git a/ui/platform-uuitk.qrc b/ui/platform-uuitk.qrc new file mode 100644 index 00000000..f00d8f82 --- /dev/null +++ b/ui/platform-uuitk.qrc @@ -0,0 +1,59 @@ + + +./qml/components/platform.uuitk/BusyIndicatorPL.qml +./qml/components/platform.uuitk/BusyIndicatorSmallPL.qml +./qml/components/platform.uuitk/ButtonPL.qml +./qml/components/platform.uuitk/ClipboardPL.qml +./qml/components/platform.uuitk/ComboBoxPL.qml +./qml/components/platform.uuitk/ContextMenuItemPL.qml +./qml/components/platform.uuitk/ContextMenuPL.qml +./qml/components/platform.uuitk/DatePickerDialogPL.qml +./qml/components/platform.uuitk/DialogAutoPL.qml +./qml/components/platform.uuitk/DialogListPL.qml +./qml/components/platform.uuitk/DialogPL.qml +./qml/components/platform.uuitk/ExpandingSectionGroupPL.qml +./qml/components/platform.uuitk/ExpandingSectionPL.qml +./qml/components/platform.uuitk/FileSelectorPL.qml +./qml/components/platform.uuitk/FormLayoutPL.qml +./qml/components/platform.uuitk/HeaderBarImpl.qml +./qml/components/platform.uuitk/IconButtonPL.qml +./qml/components/platform.uuitk/LabelPL.qml +./qml/components/platform.uuitk/ListItemPL.qml +./qml/components/platform.uuitk/ListViewPL.qml +./qml/components/platform.uuitk/MenuDrawerItemPL.qml +./qml/components/platform.uuitk/MenuDrawerPL.qml +./qml/components/platform.uuitk/MenuDrawerSubmenuItemPL.qml +./qml/components/platform.uuitk/MenuDrawerSubmenuPL.qml +./qml/components/platform.uuitk/PageEmptyPL.qml +./qml/components/platform.uuitk/PageListPL.qml +./qml/components/platform.uuitk/PageMenuItemPL.qml +./qml/components/platform.uuitk/PageMenuPL.qml +./qml/components/platform.uuitk/PagePL.qml +./qml/components/platform.uuitk/PopupPL.qml +./qml/components/platform.uuitk/RemorsePopupPL.qml +./qml/components/platform.uuitk/SearchFieldPL.qml +./qml/components/platform.uuitk/SectionHeaderPL.qml +./qml/components/platform.uuitk/SliderPL.qml +./qml/components/platform.uuitk/StackPL.qml +./qml/components/platform.uuitk/TextAreaPL.qml +./qml/components/platform.uuitk/TextFieldPL.qml +./qml/components/platform.uuitk/TextSwitchPL.qml +./qml/components/platform.uuitk/TimePickerDialogPL.qml +./qml/components/platform.uuitk/ToolItemPL.qml +./qml/components/platform.uuitk/ValueButtonPL.qml +./qml/components/platform.uuitk/IconPL.qml +./qml/components/platform.uuitk/StylerPL.qml +./qml/components/platform.uuitk/ApplicationWindowPL.qml +./qml/components/Alarm.qml +./qml/components/Axis.qml +./qml/components/DateNavigation.qml +./qml/components/DeviceButton.qml +./qml/components/DownloadDataMenuItem.qml +./qml/components/DraggableItem.qml +./qml/components/DraggableItemDropArea.qml +./qml/components/Graph.qml +./qml/components/GraphData.qml +./qml/components/PercentCircle.qml +./qml/components/TruncationModes.qml + + diff --git a/ui/update-qrc.sh b/ui/update-qrc.sh new file mode 100755 index 00000000..05a4efaf --- /dev/null +++ b/ui/update-qrc.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +declare -a platforms=("kirigami" "uuitk" "silica" "qtcontrols") + +for platform in ${platforms[@]}; do + + ( + echo "" + echo " " + replace=platform.${platform} + for i in $(find ./qml/components/ -path '*platform.'"$platform"'*' -name '*.qml'); do + x=${i//$replace/platform}; + echo "$i"; + done + + for i in $(find ./qml/components/ -maxdepth 1 -name '*.qml'); do + echo "$i"; + done + echo " " + echo "" + ) > platform-${platform}.qrc + +done