Add symbols file

to only export symbols matching wlr_* from the wlroots library
This commit is contained in:
Guido Günther 2018-02-20 08:06:51 +01:00
parent b13f9fcfde
commit 6ba1128a72
2 changed files with 52 additions and 0 deletions

View file

@ -140,6 +140,8 @@ wlr_deps += [
math,
]
symbols_file = 'wlroots.syms'
symbols_flag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), symbols_file)
lib_wlr = library(
meson.project_name(),
version: '.'.join(so_version),
@ -147,6 +149,7 @@ lib_wlr = library(
dependencies: wlr_deps,
include_directories: wlr_inc,
install: true,
link_args : symbols_flag,
)
wlroots = declare_dependency(