aja: suppress compiler warnings for aja ntv2 subproject

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6087>
This commit is contained in:
Tim-Philipp Müller 2024-02-09 20:24:13 +00:00 committed by GStreamer Marge Bot
parent c5e241932c
commit 9fe9e60012
2 changed files with 12 additions and 2 deletions

View file

@ -15,8 +15,11 @@ rt_dep = cxx.find_library('rt', required : false)
aja_sdk_dir = get_option('aja-sdk-dir')
if aja_sdk_dir == ''
ajantv2_dep = dependency('libajantv2', include_type: 'system',
required: aja_option, allow_fallback: true)
ajantv2_dep = dependency('libajantv2',
include_type: 'system',
required: aja_option,
allow_fallback: true,
default_options: ['warning_level=0'])
if not ajantv2_dep.found()
subdir_done()
endif

View file

@ -22,6 +22,13 @@ foreach cxxflag: test_cppflags
endif
endforeach
if get_option('warning_level') == '0'
add_project_arguments(
cxx.get_supported_arguments(['-Wno-deprecated-declarations']),
language: 'cpp',
)
endif
thread_dep = dependency('threads')
rt_dep = cxx.find_library('rt', required : false)