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/6468>
This commit is contained in:
Seungha Yang 2024-03-28 20:02:04 +09:00 committed by GStreamer Marge Bot
parent 4888a25bac
commit d0cfada15e

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