diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-08-10 14:44:35 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-08-10 14:54:51 +0100 |
commit | bc1c321b272cb6804e97ed2b8e94f606ba2fde11 (patch) | |
tree | daba359ff38ba7286d99c66ebd35eff839865a21 /ext | |
parent | 61429a78a8debd2798ddd51ea81a4dc9adcfa90f (diff) |
taglib: use -fvisibility=hidden with this C++ plugin in meson too
Also pass args as cpp_args.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/taglib/meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/taglib/meson.build b/ext/taglib/meson.build index 6eb20e6e6..6729890d9 100644 --- a/ext/taglib/meson.build +++ b/ext/taglib/meson.build @@ -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, |