summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2021-11-17 11:49:46 -0600
committerDudemanguy <random342@airmail.cc>2021-11-19 14:16:41 +0000
commite095bdb5f56c1f78c47d1e7583ebc95fc20ba16e (patch)
treefbf98c42b32b0b84a041934f0eff2931adf301a1
parent20c4036daa680ebf9d379c9a7566bcf3ae12d405 (diff)
downloadmpv-e095bdb5f56c1f78c47d1e7583ebc95fc20ba16e.tar.bz2
mpv-e095bdb5f56c1f78c47d1e7583ebc95fc20ba16e.tar.xz
meson: use gnu_symbol_visibility for libmpv
Following the previous commit, we can just set gnu_symbol_visibility to 'hidden' to hide everything except for the symbols we explictly want to export. This should work on gcc, clang, and msvc.
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 5e3cc3f015..c49700f463 100644
--- a/meson.build
+++ b/meson.build
@@ -1835,7 +1835,8 @@ if get_option('libmpv')
client_api_version = major + '.' + minor + '.0'
libmpv = library('mpv', sources, dependencies: [dependencies, luajit_partial],
- version: client_api_version, include_directories: includedir, install: true)
+ gnu_symbol_visibility: 'hidden', version: client_api_version,
+ include_directories: includedir, install: true)
pkg = import('pkgconfig')
pkg.generate(libmpv, version: client_api_version,
description: 'mpv media player client library')