diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-06-24 00:21:00 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-06-24 00:21:00 +0100 |
commit | 6a6f7fc48f46249ea811584949307bd028df457d (patch) | |
tree | a9c048ccad94fd0955bc99aea5ae5b3e38e41eec /ext | |
parent | dd13973c6bc9032b4a1613be215e8cb6eb8fe3e7 (diff) |
meson: build raw1394 plugin
https://bugzilla.gnome.org/show_bug.cgi?id=784134
Diffstat (limited to 'ext')
-rw-r--r-- | ext/meson.build | 2 | ||||
-rw-r--r-- | ext/raw1394/meson.build | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/ext/meson.build b/ext/meson.build index e5665a80b..a2967f608 100644 --- a/ext/meson.build +++ b/ext/meson.build @@ -10,7 +10,7 @@ if cc.get_id() != 'msvc' subdir('dv') endif subdir('libpng') -# subdir('raw1394') +subdir('raw1394') subdir('pulse') subdir('shout2') subdir('soup') diff --git a/ext/raw1394/meson.build b/ext/raw1394/meson.build new file mode 100644 index 000000000..27a6a5ab2 --- /dev/null +++ b/ext/raw1394/meson.build @@ -0,0 +1,22 @@ +raw1394_dep = dependency('libraw1394', version: '>= 2.0.0', required: false) +avc1394_dep = dependency('libavc1394', version: '>= 0.5.4', required: false) +iec61883_dep = dependency('libiec61883', version: '>= 1.0.0', required: false) + +have_1394 = false +if raw1394_dep.found() and iec61883_dep.found() and avc1394_dep.found() + if cc.has_function('avc1394_send_command', dependencies: avc1394_dep) + if cc.has_function('rom1394_free_directory', dependencies: avc1394_dep) + have_1394 = true + endif + endif +endif + +if have_1394 + library('gst1394', + 'gst1394.c', 'gst1394probe.c', 'gstdv1394src.c', 'gsthdv1394src.c', 'gst1394clock.c', + c_args : gst_plugins_good_args + ['-DHAVE_LIBIEC61883'], + include_directories : [configinc, libsinc], + dependencies : [gstvideo_dep, gstbase_dep, raw1394_dep, avc1394_dep, iec61883_dep], + install : true, + install_dir : plugins_install_dir) +endif |