Summary: right now just a subsection of controls are installed under plasmacomponent3 which makes for random missing stuff, especially any new component added. it was done to avoid to have things like "applicationwindow" which don't make sense in plasma, tough those are already available anyways as plain qqc2 install the whole folder avoiding many potential headaches Test Plan: ieverything still works, all the components are available Reviewers: #plasma, apol Reviewed By: apol Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D24072
41 lines
1.5 KiB
CMake
41 lines
1.5 KiB
CMake
add_subdirectory(accessdenied)
|
|
add_subdirectory(core)
|
|
add_subdirectory(plasmacomponents)
|
|
add_subdirectory(plasmaextracomponents)
|
|
add_subdirectory(platformcomponents)
|
|
add_subdirectory(calendar)
|
|
|
|
install(DIRECTORY plasmastyle/ DESTINATION ${KDE_INSTALL_QMLDIR}/QtQuick/Controls/Styles/Plasma)
|
|
|
|
install(DIRECTORY kirigamiplasmastyle/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kirigami.2/styles/Plasma)
|
|
|
|
install(DIRECTORY kirigamiplasmadesktopstyle/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kirigami.2/styles/org.kde.desktop.plasma)
|
|
|
|
|
|
math(EXPR QQC2_VERSION "${Qt5QuickControls2_VERSION_MINOR} - 7")
|
|
set(QQC2_VERSION "2.${QQC2_VERSION}")
|
|
|
|
|
|
# Find all the source qml files
|
|
FILE(GLOB_RECURSE inFiles RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/plasmacomponents3/*")
|
|
|
|
#for each file, replace @QQC2_VERSION@ with the version we found
|
|
FOREACH(infileName ${inFiles})
|
|
configure_file(
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/${infileName}"
|
|
"${CMAKE_CURRENT_BINARY_DIR}/${infileName}"
|
|
@ONLY
|
|
)
|
|
ENDFOREACH(infileName)
|
|
|
|
#install the components as a QQC2 Style, as style for applications (mainly for Plasma Mobile)
|
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/plasmacomponents3/ DESTINATION ${KDE_INSTALL_QMLDIR}/QtQuick/Controls.2/Plasma)
|
|
|
|
#install some of the componets as a separate import, to be used in plasmoids (some of them like ApplicationWindow are of no use for plasmoids)
|
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/plasmacomponents3/
|
|
DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/components.3)
|
|
|
|
|
|
|