mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
TagLib uses C++17 as of version 2.0. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5995>
31 lines
965 B
Meson
31 lines
965 B
Meson
taglib_sources = [
|
|
'gstapev2mux.cc',
|
|
'gstid3v2mux.cc',
|
|
'gsttaglibelement.c',
|
|
'gsttaglibplugin.c',
|
|
]
|
|
|
|
taglib_dep = dependency('taglib', version : '>= 1.5', required : get_option('taglib'))
|
|
|
|
if taglib_dep.found() and add_languages('cpp', native: false, required: get_option('taglib'))
|
|
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,
|
|
override_options : ['cpp_std=c++17'],
|
|
)
|
|
plugins += [gsttaglib]
|
|
endif
|