mirror of
https://github.com/mpv-player/mpv.git
synced 2026-05-07 20:02:49 +00:00
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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user