Debian Codegraph @

ext/raw1394/meson.build

raw
1 raw1394_dep = dependency('libraw1394', version: '>= 2.0.0', required: get_option('dv1394'))
2 avc1394_dep = dependency('libavc1394', version: '>= 0.5.4', required: get_option('dv1394'))
3 iec61883_dep = dependency('libiec61883', version: '>= 1.0.0', required: get_option('dv1394'))
4
5 gst1394_sources = [
6 'gst1394.c',
7 'gst1394probe.c',
8 'gstdv1394src.c',
9 'gsthdv1394src.c',
10 'gst1394clock.c',
11 ]
12
13 gst1394_headers = [
14 'gsthdv1394src.h',
15 'gst1394clock.h',
16 'gstdv1394src.h',
17 'gst1394probe.h',
18 ]
19
20 doc_sources = []
21 foreach s: gst1394_sources + gst1394_headers
22 doc_sources += meson.current_source_dir() / s
23 endforeach
24
25 plugin_sources += {
26 '1394': pathsep.join(doc_sources)
27 }
28
29 have_1394 = false
30 if raw1394_dep.found() and iec61883_dep.found() and avc1394_dep.found()
31 if cc.has_function('avc1394_send_command', dependencies: avc1394_dep)
32 if cc.has_function('rom1394_free_directory', dependencies: avc1394_dep)
33 have_1394 = true
34 endif
35 endif
36 endif
37
38 if have_1394
39 gst1394 = library('gst1394',
40 gst1394_sources,
41 c_args : gst_plugins_good_args + ['-DHAVE_LIBIEC61883'],
42 include_directories : [configinc, libsinc],
43 dependencies : [gstvideo_dep, gstbase_dep, raw1394_dep, avc1394_dep, iec61883_dep],
44 install : true,
45 install_dir : plugins_install_dir)
46
47 plugins += [gst1394]
48 endif