1
0
Fork 0

Don't update kcoreaddons helper headers on every reconfigure

This commit is contained in:
Ilya Fedin 2022-10-02 13:43:38 +04:00 committed by John Preston
parent 6f96a68508
commit e8bc7cfd1d
5 changed files with 6 additions and 14 deletions

View file

@ -62,19 +62,6 @@ if (NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)
)
endif()
file(TOUCH
${CMAKE_CURRENT_BINARY_DIR}/config-util.h
${CMAKE_CURRENT_BINARY_DIR}/config-kdirwatch.h
)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/include/kcoreaddons_export.h
"#define KCOREADDONS_ENABLE_DEPRECATED_SINCE(major, minor) 0"
)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/kcoreaddons_debug.h
"#pragma once\n#include <QLoggingCategory>\nstatic const QLoggingCategory KCOREADDONS_DEBUG(\"kf.coreaddons\");"
)
target_compile_definitions(external_kcoreaddons
PUBLIC
KCOREADDONS_EXPORT=
@ -86,8 +73,9 @@ target_include_directories(external_kcoreaddons SYSTEM
PUBLIC
${kcoreaddons_src}/io
${kcoreaddons_src}/util
${CMAKE_CURRENT_BINARY_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/headers/public
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/headers/private
${CMAKE_CURRENT_BINARY_DIR}
)

View file

View file

@ -0,0 +1,3 @@
#pragma once
#include <QLoggingCategory>
static const QLoggingCategory KCOREADDONS_DEBUG("kf.coreaddons");

View file

@ -0,0 +1 @@
#define KCOREADDONS_ENABLE_DEPRECATED_SINCE(major, minor) 0