Commit 09633b36 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Reduce number of variables

parent f8c0f2b9
Pipeline #76065 passed with stage
in 63 minutes and 59 seconds
# SPDX-FileCopyrightText: 2015-2021 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
set(headerstylemenu_gui_SRCS headerstylemenu_gui.cpp)
add_executable(headerstylemenu_gui ${headerstylemenu_gui_SRCS})
add_executable(headerstylemenu_gui headerstylemenu_gui.cpp)
target_link_libraries(headerstylemenu_gui
KF5::MessageViewer
KF5::XmlGui
......
......@@ -2,7 +2,6 @@ add_definitions (-DTRANSLATION_DOMAIN=\"pimeventsplugin\")
if (BUILD_TESTING)
add_subdirectory(autotests)
endif()
kcoreaddons_add_plugin(pimevents INSTALL_NAMESPACE plasmacalendarplugins)
ecm_qt_declare_logging_category(loggingcategory_SRCS
HEADER pimeventsplugin_debug.h
IDENTIFIER PIMEVENTSPLUGIN_LOG
......@@ -12,6 +11,7 @@ ecm_qt_declare_logging_category(loggingcategory_SRCS
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(pimevents INSTALL_NAMESPACE plasmacalendarplugins)
target_sources(pimevents PRIVATE
pimeventsplugin.cpp
akonadipimdatasource.cpp
......
# SPDX-FileCopyrightText: 2015-2021 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
set(messageviewer_adblock_lib_common_SRCS)
ecm_qt_declare_logging_category(messageviewer_adblock_lib_common_SRCS HEADER adblockinterceptor_debug.h IDENTIFIER ADBLOCKINTERCEPTOR_LOG CATEGORY_NAME org.kde.pim.adblockinterceptor)
add_library(adblocklibprivate ${adblocklibprivate_SRCS})
ecm_qt_declare_logging_category(adblocklibprivate HEADER adblockinterceptor_debug.h IDENTIFIER ADBLOCKINTERCEPTOR_LOG CATEGORY_NAME org.kde.pim.adblockinterceptor)
set(adblocklibprivate_widget_SRCS
kconfig_add_kcfg_files(adblocklibprivate_kcfg_SOURCES
settings/globalsettings_webengineurlinterceptoradblock.kcfgc
)
target_sources(adblocklibprivate PRIVATE
widgets/adblockblockableitemsdialog.cpp
widgets/adblockblockableitemswidget.cpp
widgets/adblockcreatefilterdialog.cpp
......@@ -14,13 +17,7 @@ set(adblocklibprivate_widget_SRCS
widgets/adblocklistwidget.cpp
widgets/adblocksettingwidget.cpp
widgets/adblockshowlistdialog.cpp
)
set(adblocklibprivate_job_SRCS
adblockblockableitemsjob.cpp
)
set(adblocklibprivate_SRCS
adblockmanager.cpp
adblocksearchtree.cpp
adblockrule.cpp
......@@ -28,19 +25,13 @@ set(adblocklibprivate_SRCS
adblockutil.cpp
adblockmatcher.cpp
adblocksubscription.cpp
${adblocklibprivate_widget_SRCS}
${messageviewer_adblock_lib_common_SRCS}
${adblocklibprivate_job_SRCS}
${adblocklibprivate_kcfg_SOURCES}
)
kconfig_add_kcfg_files(adblocklibprivate_SRCS
settings/globalsettings_webengineurlinterceptoradblock.kcfgc
)
ki18n_wrap_ui(adblocklibprivate_SRCS widgets/ui/adblockcreatefilterwidget.ui widgets/ui/settings_adblock.ui)
ki18n_wrap_ui(adblocklibprivate widgets/ui/adblockcreatefilterwidget.ui widgets/ui/settings_adblock.ui)
add_library(adblocklibprivate ${adblocklibprivate_SRCS})
generate_export_header(adblocklibprivate BASE_NAME adblocklib)
target_link_libraries(adblocklibprivate
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment