ci/win32: pre-generate SPIRV-Tools build-version.in

Work around meson's cmake module not supporting OBJECT_DEPENDS [1],
which broke the build after SPIRV-Tools removed the explicit
spirv-tools-build-version target [2].

[1] https://github.com/mesonbuild/meson/issues/9062
[2] https://github.com/KhronosGroup/SPIRV-Tools/commit/54ad621f6e3fa758c1b80981489fcf0b62d2b752
This commit is contained in:
Kacper Michajłow
2026-03-07 10:36:33 +01:00
parent 9548ec5531
commit debfdf9402
+10
View File
@@ -53,6 +53,16 @@ project('shaderc', 'cpp', version: '2024.1')
python = find_program('python3')
run_command(python, '../shaderc_cmake/utils/git-sync-deps', check: true)
# Pre-generate build-version.inc for SPIRV-Tools. Meson's cmake module doesn't
# support CMake's OBJECT_DEPENDS source file property, so the custom command
# that generates this file is never triggered.
# https://github.com/mesonbuild/meson/issues/9062
run_command(python,
'../shaderc_cmake/third_party/spirv-tools/utils/update_build_version.py',
'../shaderc_cmake/third_party/spirv-tools/CHANGES',
'../shaderc_cmake/third_party/spirv-tools/build-version.inc',
check: true)
cmake = import('cmake')
opts = cmake.subproject_options()
opts.add_cmake_defines({