2023-06-08 09:10:53 +05:30
|
|
|
list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/CMakeModules")
|
|
|
|
include(GenerateBuildInfo)
|
2019-09-08 02:58:32 +05:30
|
|
|
|
|
|
|
# The variable SRC_DIR must be passed into the script (since it uses the current build directory for all values of CMAKE_*_DIR)
|
|
|
|
set(VIDEO_CORE "${SRC_DIR}/src/video_core")
|
|
|
|
set(HASH_FILES
|
|
|
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_disk_cache.cpp"
|
|
|
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_disk_cache.h"
|
2022-09-03 18:14:40 +05:30
|
|
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_util.cpp"
|
|
|
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_util.h"
|
2023-08-18 01:52:25 +05:30
|
|
|
"${VIDEO_CORE}/renderer_vulkan/vk_shader_util.cpp"
|
|
|
|
"${VIDEO_CORE}/renderer_vulkan/vk_shader_util.h"
|
2023-11-07 01:56:28 +05:30
|
|
|
"${VIDEO_CORE}/shader/generator/glsl_fs_shader_gen.cpp"
|
|
|
|
"${VIDEO_CORE}/shader/generator/glsl_fs_shader_gen.h"
|
2023-09-30 14:36:06 +05:30
|
|
|
"${VIDEO_CORE}/shader/generator/glsl_shader_decompiler.cpp"
|
|
|
|
"${VIDEO_CORE}/shader/generator/glsl_shader_decompiler.h"
|
|
|
|
"${VIDEO_CORE}/shader/generator/glsl_shader_gen.cpp"
|
|
|
|
"${VIDEO_CORE}/shader/generator/glsl_shader_gen.h"
|
2023-11-07 01:56:28 +05:30
|
|
|
"${VIDEO_CORE}/shader/generator/pica_fs_config.cpp"
|
|
|
|
"${VIDEO_CORE}/shader/generator/pica_fs_config.h"
|
2023-09-30 14:36:06 +05:30
|
|
|
"${VIDEO_CORE}/shader/generator/shader_gen.cpp"
|
|
|
|
"${VIDEO_CORE}/shader/generator/shader_gen.h"
|
|
|
|
"${VIDEO_CORE}/shader/generator/shader_uniforms.cpp"
|
|
|
|
"${VIDEO_CORE}/shader/generator/shader_uniforms.h"
|
2023-11-07 01:56:28 +05:30
|
|
|
"${VIDEO_CORE}/shader/generator/spv_fs_shader_gen.cpp"
|
|
|
|
"${VIDEO_CORE}/shader/generator/spv_fs_shader_gen.h"
|
2019-09-08 02:58:32 +05:30
|
|
|
"${VIDEO_CORE}/shader/shader.cpp"
|
|
|
|
"${VIDEO_CORE}/shader/shader.h"
|
2023-12-28 16:16:57 +05:30
|
|
|
"${VIDEO_CORE}/pica/regs_framebuffer.h"
|
|
|
|
"${VIDEO_CORE}/pica/regs_lighting.h"
|
|
|
|
"${VIDEO_CORE}/pica/regs_pipeline.h"
|
|
|
|
"${VIDEO_CORE}/pica/regs_rasterizer.h"
|
|
|
|
"${VIDEO_CORE}/pica/regs_shader.h"
|
|
|
|
"${VIDEO_CORE}/pica/regs_texturing.h"
|
|
|
|
"${VIDEO_CORE}/pica/regs_internal.cpp"
|
|
|
|
"${VIDEO_CORE}/pica/regs_internal.h"
|
2019-09-08 02:58:32 +05:30
|
|
|
)
|
|
|
|
set(COMBINED "")
|
|
|
|
foreach (F IN LISTS HASH_FILES)
|
|
|
|
file(READ ${F} TMP)
|
|
|
|
set(COMBINED "${COMBINED}${TMP}")
|
|
|
|
endforeach()
|
|
|
|
string(MD5 SHADER_CACHE_VERSION "${COMBINED}")
|
2020-01-16 12:22:41 +05:30
|
|
|
configure_file("${SRC_DIR}/src/common/scm_rev.cpp.in" "scm_rev.cpp" @ONLY)
|