b3d3c45149
This simplifies the plugin loading. Decorations just have to use K_PLUGIN_FACTORY to specify how the KDecorationFactory needs to be created. The KWIN_DECORATION macro is adjusted to generate the boiler plate code, but it now needs to specify the name for the pluginfactory and the KDecorationFactory. This also transits the decoration abi version check to use K_EXPORT_PLUGIN_VERSION which also simplifies the loading. As a result the complete canLoad handling in DecorationPlugins is removed. REVIEW: 115930
40 lines
1.3 KiB
CMake
40 lines
1.3 KiB
CMake
########### add version number into compilation defines
|
|
# FIXME: CPACK_PACKAGE_VERSION_* are empty
|
|
add_definitions (-DAPP_VERSION=\\\"${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}\\\")
|
|
add_definitions(-DHAVE_X11=${X11_FOUND})
|
|
add_subdirectory(config)
|
|
add_subdirectory(demo)
|
|
add_subdirectory(data)
|
|
|
|
include_directories(${KDEBASE_WORKSPACE_SOURCE_DIR}/libs/oxygen)
|
|
|
|
########### next target ###############
|
|
set(kwin_oxygen_SRCS
|
|
oxygenbutton.cpp
|
|
oxygenclient.cpp
|
|
oxygenclientgroupitemdata.cpp
|
|
oxygendecohelper.cpp
|
|
oxygenexceptionlist.cpp
|
|
oxygenfactory.cpp
|
|
oxygensizegrip.cpp
|
|
oxygentitleanimationdata.cpp
|
|
)
|
|
|
|
kconfig_add_kcfg_files(kwin_oxygen_SRCS oxygenconfiguration.kcfgc )
|
|
|
|
add_library(kwin3_oxygen MODULE ${kwin_oxygen_SRCS})
|
|
target_link_libraries(kwin3_oxygen Qt5::Widgets )
|
|
target_link_libraries(kwin3_oxygen KF5::I18n KF5::WindowSystem KF5::Style KF5::Service)
|
|
|
|
target_link_libraries(kwin3_oxygen kdecorations)
|
|
|
|
target_link_libraries(kwin3_oxygen oxygenstyle)
|
|
|
|
if(X11_FOUND)
|
|
target_link_libraries(kwin3_oxygen XCB::XCB)
|
|
endif()
|
|
|
|
install(TARGETS kwin3_oxygen DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
########### install files ###############
|
|
install(FILES oxygenclient.desktop DESTINATION ${DATA_INSTALL_DIR}/kwin/)
|