mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
taglib: use -fvisibility=hidden with this C++ plugin in meson too
Also pass args as cpp_args.
This commit is contained in:
parent
61429a78a8
commit
bc1c321b27
1 changed files with 8 additions and 0 deletions
|
@ -7,9 +7,17 @@ taglib_sources = [
|
|||
taglib_dep = dependency('taglib', version : '>= 1.5', required : false)
|
||||
|
||||
if taglib_dep.found() and add_languages('cpp', required : false)
|
||||
cxx = meson.get_compiler('cpp')
|
||||
if cxx.has_argument('-fvisibility=hidden')
|
||||
cxx_vis_args = ['-fvisibility=hidden']
|
||||
else
|
||||
cxx_vis_args = []
|
||||
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'] + cxx_vis_args,
|
||||
include_directories : [configinc, libsinc],
|
||||
dependencies : [gsttag_dep, taglib_dep],
|
||||
install : true,
|
||||
|
|
Loading…
Reference in a new issue