mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
31a780a061
Split plugin into features including dynamic types which can be indiviually registered during a static build. More details here: https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199 https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/876>
29 lines
966 B
Meson
29 lines
966 B
Meson
have_oss4 = false
|
|
oss4_option = get_option('oss4')
|
|
if not oss4_option.disabled()
|
|
have_oss4 = true
|
|
message('Checking headers needed for Open Sound System 4 plugin...')
|
|
foreach hdr : ['fcntl.h', 'sys/ioctl.h', 'sys/stat.h', 'sys/types.h']
|
|
if have_oss4 and not cc.has_header(hdr)
|
|
have_oss4 = false
|
|
endif
|
|
endforeach
|
|
|
|
if not have_oss4 and oss4_option.enabled()
|
|
error('OSS4 plugin was enabled but headers were not found')
|
|
endif
|
|
endif
|
|
|
|
if have_oss4
|
|
message('Required headers found, building Open Sound System 4 plugin.')
|
|
|
|
plugins += [library('gstoss4',
|
|
'gstoss4audioplugin.c', 'oss4-audio.c', 'oss4-property-probe.c', 'oss4-sink.c', 'oss4-source.c',
|
|
c_args : gst_plugins_good_args,
|
|
include_directories : [configinc, libsinc],
|
|
dependencies : [gstaudio_dep, gstbase_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir)]
|
|
else
|
|
message('Not building Open Sound System 4 plugin, required headers not found.')
|
|
endif
|