gstreamer/ext/dts/meson.build

23 lines
752 B
Meson
Raw Normal View History

dca_dep = dependency('libdca', required : false)
if not dca_dep.found() and cc.has_header_symbol('dca.h', 'dca_init')
dca_dep = cc.find_library('dca', required : false)
endif
2018-03-01 17:44:13 +00:00
# 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',
2018-03-01 17:44:13 +00:00
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