qtdemux: Use empty-array safe way to cleanup GPtrArray
[platform/upstream/gst-plugins-good.git] / sys / oss4 / meson.build
1 have_oss4 = false
2 oss4_option = get_option('oss4')
3 if not oss4_option.disabled()
4   have_oss4 = true
5   message('Checking headers needed for Open Sound System 4 plugin...')
6   foreach hdr : ['fcntl.h', 'sys/ioctl.h', 'sys/stat.h', 'sys/types.h']
7     if have_oss4 and not cc.has_header(hdr)
8       have_oss4 = false
9     endif
10   endforeach
11
12   if not have_oss4 and oss4_option.enabled()
13     error('OSS4 plugin was enabled but headers were not found')
14   endif
15 endif
16
17 if have_oss4
18   message('Required headers found, building Open Sound System 4 plugin.')
19
20   library('gstoss4',
21     'oss4-audio.c', 'oss4-property-probe.c', 'oss4-sink.c', 'oss4-source.c',
22     c_args : gst_plugins_good_args,
23     include_directories : [configinc, libsinc],
24     dependencies : [gstaudio_dep, gstbase_dep],
25     install : true,
26     install_dir : plugins_install_dir)
27 else
28   message('Not building Open Sound System 4 plugin, required headers not found.')
29 endif