gstreamer/ext/taglib/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

29 lines
904 B
Meson

taglib_sources = [
'gstapev2mux.cc',
'gstid3v2mux.cc',
'gsttaglibplugin.c',
]
taglib_dep = dependency('taglib', version : '>= 1.5', required : get_option('taglib'))
if taglib_dep.found() and add_languages('cpp')
extra_args = []
cxx = meson.get_compiler('cpp')
if cxx.has_argument('-fvisibility=hidden')
extra_args += ['-fvisibility=hidden']
endif
if cxx.has_argument('-fno-strict-aliasing')
extra_args += ['-fno-strict-aliasing']
endif
gsttaglib = library('gsttaglib',
taglib_sources,
c_args : gst_plugins_good_args + ['-DGST_USE_UNSTABLE_API'],
cpp_args : gst_plugins_good_args + ['-DGST_USE_UNSTABLE_API'] + extra_args,
include_directories : [configinc, libsinc],
dependencies : [gsttag_dep, taglib_dep],
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gsttaglib, install_dir : plugins_pkgconfig_install_dir)
endif