Merge pull request #1105 from orbz22/fix/agc-guard-sources-path-regex

fix(agc): exclude tests and tools from the shader cache guard when the source path holds regex characters
This commit is contained in:
Adrià
2026-10-08 08:45:37 +02:00
committed by GitHub
+2 -2
View File
@@ -180,12 +180,12 @@ target_include_directories(libSceAgcDriver PRIVATE
${CMAKE_SOURCE_DIR}/3rdparty/SPIRV-Headers/include
)
file(GLOB_RECURSE agcShaderCacheGuardSources CONFIGURE_DEPENDS
file(GLOB_RECURSE agcShaderCacheGuardSources CONFIGURE_DEPENDS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/*.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/*.h"
)
list(FILTER agcShaderCacheGuardSources EXCLUDE REGEX "^${CMAKE_CURRENT_SOURCE_DIR}/(tests|tools)/")
list(FILTER agcShaderCacheGuardSources EXCLUDE REGEX "^(tests|tools)/")
add_shader_recompiler(shader_recompiler_agc_driver libc
GUARD_SOURCES
${agcShaderCacheGuardSources}