aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-09-18 15:13:01 +1000
committerfuzzard <fuzzard@kodi.tv>2023-09-19 19:18:13 +1000
commitd6cc1131ce9075a5dafea3169beb2ca292ad8a8e (patch)
treee803a88682fda34ef35911058011a16ed831693d /cmake/scripts
parent1e499e091f7950c70366d64ab2d8c4f3a18cfbfa (diff)
[cmake] gen_skin_pack move to add_custom_command
Move gen_skin_pack to add_custom_command and generate a "timestamp" file for dependency tracking. This allows the custom command to only be run once, rather than every build. clean in VS also removes timestamp file, allowing for a full clean and full rebuild including running the custom command.
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/common/ProjectMacros.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/scripts/common/ProjectMacros.cmake b/cmake/scripts/common/ProjectMacros.cmake
index 015cc3db94..e3d9a58a6d 100644
--- a/cmake/scripts/common/ProjectMacros.cmake
+++ b/cmake/scripts/common/ProjectMacros.cmake
@@ -8,6 +8,8 @@
# xbt is added to ${XBT_FILES}
function(pack_xbt input output)
file(GLOB_RECURSE MEDIA_FILES ${input}/*)
+ list(APPEND XBT_SOURCE_FILELIST ${MEDIA_FILES})
+ set(XBT_SOURCE_FILELIST ${XBT_SOURCE_FILELIST} PARENT_SCOPE)
get_filename_component(dir ${output} DIRECTORY)
if(${CORE_SYSTEM_NAME} MATCHES "windows")
@@ -45,6 +47,7 @@ function(copy_skin_to_buildtree skin)
endforeach()
set(XBT_FILES ${XBT_FILES} PARENT_SCOPE)
+ set(XBT_SOURCE_FILELIST ${XBT_SOURCE_FILELIST} PARENT_SCOPE)
set(install_data ${install_data} PARENT_SCOPE)
endfunction()