gstreamer/ext/raw1394/meson.build
Nirbheek Chauhan 8f807477eb meson: Add feature options for all plugins
Checks for GL, Qt5, and C++ are still automagic. FIXMEs have been
added for these so they can be fixed later.

https://bugzilla.gnome.org/show_bug.cgi?id=795107
2018-07-27 18:42:54 +05:30

22 lines
951 B
Meson

raw1394_dep = dependency('libraw1394', version: '>= 2.0.0', required: get_option('dv1394'))
avc1394_dep = dependency('libavc1394', version: '>= 0.5.4', required: get_option('dv1394'))
iec61883_dep = dependency('libiec61883', version: '>= 1.0.0', required: get_option('dv1394'))
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