diff options
author | Dylan Baker <[email protected]> | 2020-04-24 13:10:41 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-01 18:59:18 +0000 |
commit | a8e2d79e0228106d11b6ceeb38f4ffb587f0a819 (patch) | |
tree | 18eef778716e07f993f568e54920e2242fd0b717 /src/gallium/auxiliary | |
parent | fc7301865e1eabe06d4225af596e7334c4094fe5 (diff) |
meson: use gnu_symbol_visibility argument
This uses a meson builtin to handle -fvisibility=hidden. This is nice
because we don't need to track which languages are used, if C++ is
suddenly added meson just does the right thing.
Acked-by: Matt Turner <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/meson.build | 17 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipe-loader/meson.build | 6 |
2 files changed, 14 insertions, 9 deletions
diff --git a/src/gallium/auxiliary/meson.build b/src/gallium/auxiliary/meson.build index 8b02084c0d0..3e91a6c2723 100644 --- a/src/gallium/auxiliary/meson.build +++ b/src/gallium/auxiliary/meson.build @@ -488,7 +488,7 @@ if with_dri2 and with_platform_x11 if with_dri3 vlwinsys_deps += [ dep_xcb_sync, dep_xcb_present, dep_xshmfence, dep_xcb_xfixes, - dep_xcb_dri3, + dep_xcb_dri3, ] files_libgalliumvlwinsys += files('vl/vl_winsys_dri3.c') endif @@ -516,8 +516,9 @@ libgallium = static_library( include_directories : [ inc_loader, inc_gallium, inc_src, inc_include, include_directories('util') ], - c_args : [c_vis_args, c_msvc_compat_args], - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], + c_args : [c_msvc_compat_args], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', dependencies : [ dep_libdrm, dep_llvm, dep_unwind, dep_dl, dep_m, dep_thread, dep_lmsensors, idep_nir, idep_nir_headers, idep_mesautil, @@ -528,8 +529,9 @@ libgallium = static_library( libgalliumvl_stub = static_library( 'galliumvl_stub', 'vl/vl_stubs.c', - c_args : [c_vis_args, c_msvc_compat_args], - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], + c_args : [c_msvc_compat_args], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', include_directories: [inc_gallium, inc_include, inc_src], build_by_default : false, ) @@ -537,8 +539,9 @@ libgalliumvl_stub = static_library( libgalliumvl = static_library( 'galliumvl', files_libgalliumvl, - c_args : [c_vis_args, c_msvc_compat_args], - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], + c_args : [c_msvc_compat_args], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', include_directories : [inc_gallium, inc_include, inc_src], build_by_default : false, ) diff --git a/src/gallium/auxiliary/pipe-loader/meson.build b/src/gallium/auxiliary/pipe-loader/meson.build index 4c6ae60ff4e..32d592f756d 100644 --- a/src/gallium/auxiliary/pipe-loader/meson.build +++ b/src/gallium/auxiliary/pipe-loader/meson.build @@ -50,7 +50,8 @@ libpipe_loader_static = static_library( inc_util, inc_loader, inc_gallium, inc_include, inc_src, inc_gallium_aux, inc_gallium_winsys, ], - c_args : [c_vis_args, libpipe_loader_defines, '-DGALLIUM_STATIC_TARGETS=1'], + c_args : [libpipe_loader_defines, '-DGALLIUM_STATIC_TARGETS=1'], + gnu_symbol_visibility : 'hidden', link_with : libloader, dependencies : [dep_libdrm, idep_xmlconfig], build_by_default : false, @@ -64,11 +65,12 @@ libpipe_loader_dynamic = static_library( inc_gallium_winsys, ], c_args : [ - c_vis_args, libpipe_loader_defines, + libpipe_loader_defines, '-DPIPE_SEARCH_DIR="@0@"'.format( join_paths(get_option('prefix'), get_option('libdir'), 'gallium-pipe') ) ], + gnu_symbol_visibility : 'hidden', link_with : [libpipe_loader_links], dependencies : [dep_libdrm, idep_xmlconfig], build_by_default : false, |