build: Move libkwineffects specific ecm_setup_qtplugin_macro_names to src/libkwineffects

This commit is contained in:
Vlad Zahorodnii 2022-11-03 12:57:27 +02:00
parent c76563b174
commit 632c3508a7
2 changed files with 13 additions and 13 deletions

View file

@ -37,7 +37,6 @@ include(ECMInstallIcons)
include(ECMOptionalAddSubdirectory) include(ECMOptionalAddSubdirectory)
include(ECMConfiguredInstall) include(ECMConfiguredInstall)
include(ECMQtDeclareLoggingCategory) include(ECMQtDeclareLoggingCategory)
include(ECMSetupQtPluginMacroNames)
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
Concurrent Concurrent
@ -445,18 +444,6 @@ if (KF5DocTools_FOUND)
add_subdirectory(doc) add_subdirectory(doc)
endif() endif()
ecm_setup_qtplugin_macro_names(
JSON_ARG2
"KWIN_EFFECT_FACTORY"
JSON_ARG3
"KWIN_EFFECT_FACTORY_ENABLED"
"KWIN_EFFECT_FACTORY_SUPPORTED"
JSON_ARG4
"KWIN_EFFECT_FACTORY_SUPPORTED_ENABLED"
CONFIG_CODE_VARIABLE
PACKAGE_SETUP_AUTOMOC_VARIABLES
)
add_subdirectory(data) add_subdirectory(data)
add_subdirectory(kconf_update) add_subdirectory(kconf_update)
add_subdirectory(src) add_subdirectory(src)

View file

@ -1,5 +1,6 @@
########### next target ############### ########### next target ###############
include(ECMSetupVersion) include(ECMSetupVersion)
include(ECMSetupQtPluginMacroNames)
ecm_setup_version(${PROJECT_VERSION} ecm_setup_version(${PROJECT_VERSION}
VARIABLE_PREFIX KWINEFFECTS VARIABLE_PREFIX KWINEFFECTS
@ -8,6 +9,18 @@ ecm_setup_version(${PROJECT_VERSION}
SOVERSION 14 SOVERSION 14
) )
ecm_setup_qtplugin_macro_names(
JSON_ARG2
"KWIN_EFFECT_FACTORY"
JSON_ARG3
"KWIN_EFFECT_FACTORY_ENABLED"
"KWIN_EFFECT_FACTORY_SUPPORTED"
JSON_ARG4
"KWIN_EFFECT_FACTORY_SUPPORTED_ENABLED"
CONFIG_CODE_VARIABLE
PACKAGE_SETUP_AUTOMOC_VARIABLES
)
### effects lib ### ### effects lib ###
set(kwin_EFFECTSLIB_SRCS set(kwin_EFFECTSLIB_SRCS
anidata.cpp anidata.cpp