Consistently name kpackage structures

This will allow kpackage to load the structures by their path.

Task: https://phabricator.kde.org/T14757
Conceptually the same direction as https://phabricator.kde.org/T14499.
This commit is contained in:
Alexander Lohnau 2021-08-01 08:59:56 +02:00
parent 9fe294776d
commit e34d8bbed6
5 changed files with 10 additions and 37 deletions

View file

@ -1,15 +1,9 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kwin_package_aurorae\")
set(aurorae_SRCS
aurorae.cpp
)
add_library(kwin_packagestructure_aurorae MODULE ${aurorae_SRCS})
kcoreaddons_add_plugin(kwin_packagestructure_aurorae SOURCES aurorae.cpp INSTALL_NAMESPACE "kpackage/packagestructure")
target_link_libraries(kwin_packagestructure_aurorae
KF5::I18n
KF5::Package
)
install(TARGETS kwin_packagestructure_aurorae DESTINATION ${KDE_INSTALL_PLUGINDIR}/kpackage/packagestructure)
set_target_properties(kwin_packagestructure_aurorae PROPERTIES OUTPUT_NAME kwin_aurorae)

View file

@ -1,15 +1,9 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kwin_package_decoration\")
set(decoration_SRCS
decoration.cpp
)
add_library(kwin_packagestructure_decoration MODULE ${decoration_SRCS})
kcoreaddons_add_plugin(kwin_packagestructure_decoration SOURCES decoration.cpp INSTALL_NAMESPACE "kpackage/packagestructure")
target_link_libraries(kwin_packagestructure_decoration
KF5::I18n
KF5::Package
)
install(TARGETS kwin_packagestructure_decoration DESTINATION ${KDE_INSTALL_PLUGINDIR}/kpackage/packagestructure)
set_target_properties(kwin_packagestructure_decoration PROPERTIES OUTPUT_NAME kwin_decoration)

View file

@ -1,14 +1,9 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kwin_package_effect\")
set(effect_SRCS
effect.cpp
)
add_library(kwin_packagestructure_effect MODULE ${effect_SRCS})
kcoreaddons_add_plugin(kwin_packagestructure_effect SOURCES effect.cpp INSTALL_NAMESPACE "kpackage/packagestructure")
target_link_libraries(kwin_packagestructure_effect
KF5::I18n
KF5::Package
)
install(TARGETS kwin_packagestructure_effect DESTINATION ${KDE_INSTALL_PLUGINDIR}/kpackage/packagestructure)
set_target_properties(kwin_packagestructure_effect PROPERTIES OUTPUT_NAME kwin_effect)

View file

@ -1,14 +1,9 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kwin_package_scripts\")
set(scripts_SRCS
scripts.cpp
)
add_library(kwin_packagestructure_scripts MODULE ${scripts_SRCS})
kcoreaddons_add_plugin(kwin_packagestructure_scripts SOURCES scripts.cpp INSTALL_NAMESPACE "kpackage/packagestructure")
target_link_libraries(kwin_packagestructure_scripts
KF5::I18n
KF5::Package
)
install(TARGETS kwin_packagestructure_scripts DESTINATION ${KDE_INSTALL_PLUGINDIR}/kpackage/packagestructure)
set_target_properties(kwin_packagestructure_scripts PROPERTIES OUTPUT_NAME kwin_script)

View file

@ -1,14 +1,9 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kwin_package_windowswitcher\")
set(windowswitcher_SRCS
windowswitcher.cpp
)
add_library(kwin_packagestructure_windowswitcher MODULE ${windowswitcher_SRCS})
kcoreaddons_add_plugin(kwin_packagestructure_windowswitcher SOURCES windowswitcher.cpp INSTALL_NAMESPACE "kpackage/packagestructure")
target_link_libraries(kwin_packagestructure_windowswitcher
KF5::I18n
KF5::Package
)
install(TARGETS kwin_packagestructure_windowswitcher DESTINATION ${KDE_INSTALL_PLUGINDIR}/kpackage/packagestructure)
set_target_properties(kwin_packagestructure_windowswitcher PROPERTIES OUTPUT_NAME kwin_windowswitcher)