Skip to content

Commit

Permalink
Don't update kcoreaddons helper headers on every reconfigure
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Oct 3, 2022
1 parent 6f96a68 commit e8bc7cf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
16 changes: 2 additions & 14 deletions external/kcoreaddons/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand All @@ -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}
)

Expand Down
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions external/kcoreaddons/headers/private/kcoreaddons_debug.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#pragma once
#include <QLoggingCategory>
static const QLoggingCategory KCOREADDONS_DEBUG("kf.coreaddons");
1 change: 1 addition & 0 deletions external/kcoreaddons/headers/public/kcoreaddons_export.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define KCOREADDONS_ENABLE_DEPRECATED_SINCE(major, minor) 0

0 comments on commit e8bc7cf

Please sign in to comment.