1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 01:52:19 +00:00

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.
This commit is contained in:
Dudemanguy 2021-11-17 11:49:46 -06:00
parent 20c4036daa
commit e095bdb5f5

View File

@ -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')