673dcd6ad3
The generic QML components from Aurorae are split out into an own declarative plugin. In addition two new helper classes are added to this plugin: * A ColorHelper to map a few function of KColorSheme and making it possible to actually work with colors in QML. The need emerged from trying to port Plastik to QML which makes strong use of color shading. * A DecorationOptions class which is a wrapper around KWin's KDecorationOptions but in a more useable way for QML. The various options are provided as properties and the value of the properties changes automatically depending on whether the decoration is active or inactive. Aurorae itself is not yet adjusted to these changes, but it should also be adjusted as some of the options are currently exported in the factory and the factory is injected into the Aurorae QML decoration.
52 lines
1.6 KiB
CMake
52 lines
1.6 KiB
CMake
########### decoration ###############
|
|
include_directories(
|
|
./lib
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
set(kwin3_aurorae_PART_SRCS
|
|
aurorae.cpp
|
|
lib/auroraetheme.cpp
|
|
lib/themeconfig.cpp
|
|
)
|
|
|
|
kde4_add_plugin(kwin3_aurorae ${kwin3_aurorae_PART_SRCS})
|
|
|
|
target_link_libraries(kwin3_aurorae ${KDE4_KDEUI_LIBS} ${QT_QTDECLARATIVE_LIBRARY} kdecorations)
|
|
|
|
install(TARGETS kwin3_aurorae DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
set(decoration_plugin_SRCS
|
|
decorationplugin.cpp
|
|
decorationoptions.cpp
|
|
colorhelper.cpp
|
|
)
|
|
|
|
qt4_automoc(${decoration_plugin_SRCS})
|
|
|
|
add_library(decorationplugin SHARED ${decoration_plugin_SRCS})
|
|
target_link_libraries(decorationplugin ${QT_QTCORE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${KDE4_KDEUI_LIBRARY} kdecorations)
|
|
install(TARGETS decorationplugin DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/kwin/decoration)
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES aurorae.desktop DESTINATION ${DATA_INSTALL_DIR}/kwin )
|
|
install( FILES aurorae.knsrc DESTINATION ${CONFIG_INSTALL_DIR} )
|
|
install( FILES
|
|
qml/aurorae.qml
|
|
qml/AuroraeButton.qml
|
|
qml/AuroraeButtonGroup.qml
|
|
qml/AuroraeMaximizeButton.qml
|
|
qml/Decoration.qml
|
|
qml/DecorationButton.qml
|
|
qml/MenuButton.qml
|
|
DESTINATION ${DATA_INSTALL_DIR}/kwin/aurorae )
|
|
install( FILES
|
|
qml/Decoration.qml
|
|
qml/DecorationButton.qml
|
|
qml/MenuButton.qml
|
|
qml/ButtonGroup.qml
|
|
qml/qmldir
|
|
DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/kwin/decoration )
|
|
install( FILES kwindecoration.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
|