summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-08-10 13:44:35 (GMT)
committerTim-Philipp Müller <tim@centricular.com>2017-08-10 13:54:51 (GMT)
commitbc1c321b272cb6804e97ed2b8e94f606ba2fde11 (patch)
treedaba359ff38ba7286d99c66ebd35eff839865a21
parent61429a78a8debd2798ddd51ea81a4dc9adcfa90f (diff)
downloadgst-plugins-good-bc1c321b272cb6804e97ed2b8e94f606ba2fde11.tar.gz
gst-plugins-good-bc1c321b272cb6804e97ed2b8e94f606ba2fde11.tar.xz
taglib: use -fvisibility=hidden with this C++ plugin in meson too
Also pass args as cpp_args.
-rw-r--r--ext/taglib/meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/taglib/meson.build b/ext/taglib/meson.build
index 6eb20e6..6729890 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,