meson: d3d11: Disable library build if DirectXMath header was not found

DirectXMath header library is a hard dependency

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6472>
This commit is contained in:
Seungha Yang 2024-03-28 20:02:04 +09:00 committed by Tim-Philipp Müller
parent fa44d14d2b
commit 98ed7a8201

View file

@ -198,7 +198,10 @@ have_dx_math = cxx.compiles('''
if not have_dx_math
directxmath_dep = dependency('directxmath',
allow_fallback: true,
required: get_option('d3d11-math'))
required: d3d11_opt)
if not directxmath_dep.found()
subdir_done()
endif
extra_deps += [directxmath_dep]
endif