From b6d0c57087848673251882f2ce0794c8e4bb086a Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 9 Dec 2024 12:02:01 -0300 Subject: [PATCH] docs: Do not try to generate cuda documentation when gir is not generated On macos it is not Part-of: --- subprojects/gst-plugins-bad/docs/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/docs/meson.build b/subprojects/gst-plugins-bad/docs/meson.build index 380c44503a..ba33b97f64 100644 --- a/subprojects/gst-plugins-bad/docs/meson.build +++ b/subprojects/gst-plugins-bad/docs/meson.build @@ -136,12 +136,15 @@ if build_gir {'name': 'audio', 'gir': audio_gir, 'lib': gstbadaudio_dep, 'prefix': 'bad-'}, {'name': 'transcoder', 'gir': transcoder_gir, 'lib': gst_transcoder_dep}, {'name': 'codecs', 'gir': codecs_gir, 'lib': gstcodecs_dep}, - {'name': 'cuda', 'gir': gst_cuda_gir, 'lib': gstcuda_dep, 'c_source_patterns': ['*.h', '*.cpp']}, {'name': 'dxva', 'gir': dxva_gir, 'lib': gstdxva_dep, 'c_source_patterns': ['*.h', '*.cpp']}, {'name': 'mse', 'gir': mse_gir, 'lib': gstmse_dep, 'suffix': 'lib'}, {'name': 'analytics', 'gir': analytics_gir, 'lib': gstanalytics_dep}, ] + if get_variable('gst_cuda_gir', []).length() > 0 + libs += [{'name': 'cuda', 'gir': gst_cuda_gir, 'lib': gstcuda_dep, 'c_source_patterns': ['*.h', '*.cpp']}] + endif + if gstopencv_dep.found() libs += [ {'name': 'opencv', 'lib': gstopencv_dep, 'c_source_patterns': ['*.h', '*.cpp'], 'extra_c_flags': ['-x c++']},