gstreamer/ext/dts/meson.build
Nirbheek Chauhan b55dfb5313 Add feature options for almost all plugins
The only plugins remaining are those that haven't been ported to Meson
yet, and msdk. Also, the tests are still automagic.

https://bugzilla.gnome.org/show_bug.cgi?id=795107
2018-07-27 19:04:38 +05:30

32 lines
1 KiB
Meson

# Don't do any dependency checks if disabled
if get_option('dts').disabled()
subdir_done()
endif
# Detect libdca using a pkg-config file, or manually
dca_dep = dependency('libdca', required : false)
if not dca_dep.found()
if cc.has_header_symbol('dca.h', 'dca_init')
dca_dep = cc.find_library('dca', required : false)
endif
if not dca_dep.found() and get_option('dts').enabled()
error('DTS plugin enabled, but libdca not found')
endif
endif
# autotools didn't use the libdca pkg-config cflags, and they
# can point to a non-existing location (/usr/include/dca)
no_warn_c_args = ['-Wno-missing-include-dirs']
if dca_dep.found()
gstdtsdec = library('gstdtsdec',
'gstdtsdec.c',
c_args : gst_plugins_bad_args + no_warn_c_args,
link_args : noseh_link_args,
include_directories : [configinc, libsinc],
dependencies : [gstaudio_dep, orc_dep, dca_dep],
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstdtsdec, install_dir : plugins_pkgconfig_install_dir)
endif