mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Add symbols file
to only export symbols matching wlr_* from the wlroots library
This commit is contained in:
parent
b13f9fcfde
commit
6ba1128a72
2 changed files with 52 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue