summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorDylan Baker <dylan.c.baker@intel.com>2020-04-24 13:10:41 -0700
committerMarge Bot <eric+marge@anholt.net>2020-06-01 18:59:18 +0000
commita8e2d79e0228106d11b6ceeb38f4ffb587f0a819 (patch)
tree18eef778716e07f993f568e54920e2242fd0b717 /src/gallium
parentfc7301865e1eabe06d4225af596e7334c4094fe5 (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 <mattst88@gmail.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/meson.build17
-rw-r--r--src/gallium/auxiliary/pipe-loader/meson.build6
-rw-r--r--src/gallium/drivers/etnaviv/meson.build2
-rw-r--r--src/gallium/drivers/freedreno/meson.build7
-rw-r--r--src/gallium/drivers/i915/meson.build2
-rw-r--r--src/gallium/drivers/iris/meson.build8
-rw-r--r--src/gallium/drivers/llvmpipe/meson.build5
-rw-r--r--src/gallium/drivers/nouveau/meson.build3
-rw-r--r--src/gallium/drivers/panfrost/meson.build3
-rw-r--r--src/gallium/drivers/r300/meson.build2
-rw-r--r--src/gallium/drivers/r600/meson.build4
-rw-r--r--src/gallium/drivers/radeonsi/meson.build4
-rw-r--r--src/gallium/drivers/softpipe/meson.build3
-rw-r--r--src/gallium/drivers/svga/meson.build3
-rw-r--r--src/gallium/drivers/swr/meson.build13
-rw-r--r--src/gallium/drivers/tegra/meson.build2
-rw-r--r--src/gallium/drivers/v3d/meson.build12
-rw-r--r--src/gallium/drivers/vc4/meson.build4
-rw-r--r--src/gallium/drivers/virgl/meson.build2
-rw-r--r--src/gallium/drivers/zink/meson.build2
-rw-r--r--src/gallium/frontends/clover/meson.build10
-rw-r--r--src/gallium/frontends/dri/meson.build3
-rw-r--r--src/gallium/frontends/glx/xlib/meson.build2
-rw-r--r--src/gallium/frontends/hgl/meson.build3
-rw-r--r--src/gallium/frontends/nine/meson.build2
-rw-r--r--src/gallium/frontends/omx/meson.build3
-rw-r--r--src/gallium/frontends/va/meson.build2
-rw-r--r--src/gallium/frontends/vdpau/meson.build2
-rw-r--r--src/gallium/frontends/xa/meson.build3
-rw-r--r--src/gallium/frontends/xvmc/meson.build2
-rw-r--r--src/gallium/targets/d3dadapter9/meson.build4
-rw-r--r--src/gallium/targets/dri/meson.build3
-rw-r--r--src/gallium/targets/graw-gdi/meson.build3
-rw-r--r--src/gallium/targets/graw-null/meson.build6
-rw-r--r--src/gallium/targets/graw-xlib/meson.build2
-rw-r--r--src/gallium/targets/haiku-softpipe/meson.build3
-rw-r--r--src/gallium/targets/libgl-xlib/meson.build3
-rw-r--r--src/gallium/targets/omx/meson.build3
-rw-r--r--src/gallium/targets/osmesa/meson.build3
-rw-r--r--src/gallium/targets/pipe-loader/meson.build5
-rw-r--r--src/gallium/targets/va/meson.build3
-rw-r--r--src/gallium/targets/vdpau/meson.build3
-rw-r--r--src/gallium/targets/xa/meson.build3
-rw-r--r--src/gallium/targets/xvmc/meson.build3
-rw-r--r--src/gallium/winsys/amdgpu/drm/meson.build3
-rw-r--r--src/gallium/winsys/freedreno/drm/meson.build2
-rw-r--r--src/gallium/winsys/iris/drm/meson.build2
-rw-r--r--src/gallium/winsys/kmsro/drm/meson.build3
-rw-r--r--src/gallium/winsys/nouveau/drm/meson.build2
-rw-r--r--src/gallium/winsys/panfrost/drm/meson.build2
-rw-r--r--src/gallium/winsys/radeon/drm/meson.build2
-rw-r--r--src/gallium/winsys/svga/drm/meson.build3
-rw-r--r--src/gallium/winsys/sw/dri/meson.build2
-rw-r--r--src/gallium/winsys/sw/hgl/meson.build2
-rw-r--r--src/gallium/winsys/sw/kms-dri/meson.build2
-rw-r--r--src/gallium/winsys/sw/null/meson.build2
-rw-r--r--src/gallium/winsys/sw/wrapper/meson.build2
-rw-r--r--src/gallium/winsys/sw/xlib/meson.build2
-rw-r--r--src/gallium/winsys/v3d/drm/meson.build2
-rw-r--r--src/gallium/winsys/vc4/drm/meson.build3
-rw-r--r--src/gallium/winsys/virgl/common/meson.build2
-rw-r--r--src/gallium/winsys/virgl/drm/meson.build2
-rw-r--r--src/gallium/winsys/virgl/vtest/meson.build2
63 files changed, 126 insertions, 99 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,
diff --git a/src/gallium/drivers/etnaviv/meson.build b/src/gallium/drivers/etnaviv/meson.build
index 102797807be..e4adbf30b52 100644
--- a/src/gallium/drivers/etnaviv/meson.build
+++ b/src/gallium/drivers/etnaviv/meson.build
@@ -98,7 +98,7 @@ files_etnaviv = files(
libetnaviv = static_library(
'etnaviv',
files_etnaviv,
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [
inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_etnaviv,
],
diff --git a/src/gallium/drivers/freedreno/meson.build b/src/gallium/drivers/freedreno/meson.build
index 8284f5e1a6d..bb1ffa67cb0 100644
--- a/src/gallium/drivers/freedreno/meson.build
+++ b/src/gallium/drivers/freedreno/meson.build
@@ -226,7 +226,7 @@ freedreno_includes = [
inc_freedreno, include_directories('ir3'),
]
-freedreno_c_args = [ c_vis_args, no_override_init_args ]
+freedreno_c_args = [no_override_init_args]
if cc.has_argument('-Wpacked-bitfield-compat')
freedreno_c_args += '-Wno-packed-bitfield-compat'
endif
@@ -240,8 +240,9 @@ libfreedreno = static_library(
'freedreno',
[files_libfreedreno, freedreno_xml_header_files],
include_directories : freedreno_includes,
- c_args : [freedreno_c_args, c_vis_args],
- cpp_args : [freedreno_cpp_args, cpp_vis_args],
+ c_args : [freedreno_c_args],
+ cpp_args : [freedreno_cpp_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, idep_nir_headers],
)
diff --git a/src/gallium/drivers/i915/meson.build b/src/gallium/drivers/i915/meson.build
index 77f44a979dc..5bb97ede214 100644
--- a/src/gallium/drivers/i915/meson.build
+++ b/src/gallium/drivers/i915/meson.build
@@ -65,7 +65,7 @@ files_i915 = files(
libi915 = static_library(
'i915',
files_i915,
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_gallium, inc_gallium_aux],
)
diff --git a/src/gallium/drivers/iris/meson.build b/src/gallium/drivers/iris/meson.build
index 34b43245f34..a6712d2fe64 100644
--- a/src/gallium/drivers/iris/meson.build
+++ b/src/gallium/drivers/iris/meson.build
@@ -73,9 +73,10 @@ foreach v : ['80', '90', '100', '110', '120']
['iris_blorp.c', 'iris_query.c', 'iris_state.c', gen_xml_pack],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_intel],
c_args : [
- c_vis_args, no_override_init_args, c_sse2_args,
+ no_override_init_args, c_sse2_args,
'-DGEN_VERSIONx10=@0@'.format(v),
],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, dep_valgrind, idep_nir_headers],
)
endforeach
@@ -89,8 +90,9 @@ libiris = static_library(
# these should not be necessary, but main/macros.h...
inc_mesa, inc_mapi
],
- c_args : [c_vis_args, c_sse2_args],
- cpp_args : [cpp_vis_args, c_sse2_args],
+ c_args : [c_sse2_args],
+ cpp_args : [c_sse2_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, dep_valgrind, idep_genxml, idep_libintel_common, idep_nir_headers],
link_with : [
iris_gen_libs, libintel_compiler, libintel_dev, libisl,
diff --git a/src/gallium/drivers/llvmpipe/meson.build b/src/gallium/drivers/llvmpipe/meson.build
index 138c2ce871b..7a4766ca4d3 100644
--- a/src/gallium/drivers/llvmpipe/meson.build
+++ b/src/gallium/drivers/llvmpipe/meson.build
@@ -99,8 +99,9 @@ files_llvmpipe = files(
libllvmpipe = static_library(
'llvmpipe',
files_llvmpipe,
- 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_gallium_aux, inc_include, inc_src],
dependencies : [ dep_llvm, idep_nir_headers, ],
)
diff --git a/src/gallium/drivers/nouveau/meson.build b/src/gallium/drivers/nouveau/meson.build
index 7a1d18a6394..c6caae2bb79 100644
--- a/src/gallium/drivers/nouveau/meson.build
+++ b/src/gallium/drivers/nouveau/meson.build
@@ -214,8 +214,7 @@ libnouveau = static_library(
include_directories : [
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_mapi, inc_mesa,
],
- c_args : [c_vis_args],
- cpp_args : [cpp_vis_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, dep_libdrm_nouveau, idep_nir_headers],
)
diff --git a/src/gallium/drivers/panfrost/meson.build b/src/gallium/drivers/panfrost/meson.build
index 06bcf681278..b3ebb16fe2d 100644
--- a/src/gallium/drivers/panfrost/meson.build
+++ b/src/gallium/drivers/panfrost/meson.build
@@ -68,7 +68,8 @@ libpanfrost = static_library(
idep_nir
],
include_directories : panfrost_includes,
- c_args : [c_vis_args, c_msvc_compat_args, compile_args_panfrost],
+ c_args : [c_msvc_compat_args, compile_args_panfrost],
+ gnu_symbol_visibility : 'hidden',
)
driver_panfrost = declare_dependency(
diff --git a/src/gallium/drivers/r300/meson.build b/src/gallium/drivers/r300/meson.build
index 66569bab364..ee8572444ea 100644
--- a/src/gallium/drivers/r300/meson.build
+++ b/src/gallium/drivers/r300/meson.build
@@ -121,11 +121,11 @@ files_r300 = files(
libr300 = static_library(
'r300',
files_r300,
- c_args : [c_vis_args],
include_directories : [
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers,
inc_mesa,
],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm_radeon, dep_llvm],
)
diff --git a/src/gallium/drivers/r600/meson.build b/src/gallium/drivers/r600/meson.build
index 0bb31dca20a..880dad590cb 100644
--- a/src/gallium/drivers/r600/meson.build
+++ b/src/gallium/drivers/r600/meson.build
@@ -195,8 +195,8 @@ endif
libr600 = static_library(
'r600',
[files_r600, egd_tables_h],
- c_args : [c_vis_args, r600_c_args, '-Wstrict-overflow=0'],
- cpp_args : [cpp_vis_args],
+ c_args : [r600_c_args, '-Wstrict-overflow=0'],
+ gnu_symbol_visibility : 'hidden',
include_directories : [
inc_src, inc_mapi, inc_mesa, inc_include, inc_compiler, inc_gallium, inc_gallium_aux, inc_amd_common,
inc_gallium_drivers,
diff --git a/src/gallium/drivers/radeonsi/meson.build b/src/gallium/drivers/radeonsi/meson.build
index 357869eb94c..4f6ea1315c8 100644
--- a/src/gallium/drivers/radeonsi/meson.build
+++ b/src/gallium/drivers/radeonsi/meson.build
@@ -122,8 +122,8 @@ libradeonsi = static_library(
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common, inc_amd_common_llvm,
inc_gallium_drivers,
],
- c_args : ['-Wstrict-overflow=0', c_vis_args],
- cpp_args : [cpp_vis_args],
+ c_args : ['-Wstrict-overflow=0'],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_llvm, dep_clock, dep_libdrm_radeon, idep_nir_headers, idep_amdgfxregs_h],
)
diff --git a/src/gallium/drivers/softpipe/meson.build b/src/gallium/drivers/softpipe/meson.build
index a345ff62ec9..6af71289763 100644
--- a/src/gallium/drivers/softpipe/meson.build
+++ b/src/gallium/drivers/softpipe/meson.build
@@ -80,7 +80,8 @@ libsoftpipe = static_library(
'softpipe',
files_softpipe,
include_directories : [inc_gallium_aux, inc_gallium, inc_include, inc_src],
- c_args : [c_vis_args, c_msvc_compat_args],
+ c_args : [c_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
)
driver_swrast = declare_dependency(
diff --git a/src/gallium/drivers/svga/meson.build b/src/gallium/drivers/svga/meson.build
index 4d3207a9942..368d0c7f342 100644
--- a/src/gallium/drivers/svga/meson.build
+++ b/src/gallium/drivers/svga/meson.build
@@ -79,7 +79,8 @@ files_svga = files(
libsvga = static_library(
'svga',
[files_svga, sha1_h],
- c_args : [c_vis_args, c_msvc_compat_args],
+ c_args : [c_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [
inc_src, inc_include, inc_gallium, inc_gallium_aux,
include_directories('include')
diff --git a/src/gallium/drivers/swr/meson.build b/src/gallium/drivers/swr/meson.build
index e68d962ed84..f8c4ba93f55 100644
--- a/src/gallium/drivers/swr/meson.build
+++ b/src/gallium/drivers/swr/meson.build
@@ -187,7 +187,7 @@ swr_incs = include_directories(
'rasterizer/archrast', 'rasterizer',
)
-swr_cpp_args = [cpp_vis_args]
+swr_cpp_args = []
if cpp.has_argument('-fno-strict-aliasing')
swr_cpp_args += '-fno-strict-aliasing'
endif
@@ -232,6 +232,7 @@ if with_swr_arches.contains('skx')
cpp_msvc_compat_args, swr_cpp_args, swr_skx_args,
'-DKNOB_ARCH=KNOB_ARCH_AVX512',
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [swr_incs],
dependencies : [dep_thread, dep_llvm],
@@ -247,6 +248,7 @@ if with_swr_arches.contains('skx')
cpp_msvc_compat_args, swr_cpp_args, swr_skx_args,
'-DKNOB_ARCH=KNOB_ARCH_AVX512',
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [swr_incs],
dependencies : [dep_thread, dep_llvm],
@@ -271,6 +273,7 @@ if with_swr_arches.contains('knl')
cpp_msvc_compat_args, swr_cpp_args, swr_knl_args,
'-DKNOB_ARCH=KNOB_ARCH_AVX512', '-DSIMD_ARCH_KNIGHTS',
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [swr_incs],
dependencies : [dep_thread, dep_llvm],
@@ -286,6 +289,7 @@ if with_swr_arches.contains('knl')
cpp_msvc_compat_args, swr_cpp_args, swr_knl_args,
'-DKNOB_ARCH=KNOB_ARCH_AVX512', '-DSIMD_ARCH_KNIGHTS',
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [swr_incs],
dependencies : [dep_thread, dep_llvm],
@@ -315,6 +319,7 @@ if with_swr_arches.contains('avx2')
cpp_msvc_compat_args, swr_cpp_args, swr_avx2_args,
'-DKNOB_ARCH=KNOB_ARCH_AVX2',
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [swr_incs],
dependencies : [dep_thread, dep_llvm],
@@ -330,6 +335,7 @@ if with_swr_arches.contains('avx2')
cpp_msvc_compat_args, swr_cpp_args, swr_avx2_args,
'-DKNOB_ARCH=KNOB_ARCH_AVX2',
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [swr_incs],
dependencies : [dep_thread, dep_llvm],
@@ -347,6 +353,7 @@ if with_swr_arches.contains('avx')
cpp_msvc_compat_args, swr_cpp_args, swr_avx_args,
'-DKNOB_ARCH=KNOB_ARCH_AVX',
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [swr_incs],
dependencies : [dep_thread, dep_llvm],
@@ -362,6 +369,7 @@ if with_swr_arches.contains('avx')
cpp_msvc_compat_args, swr_cpp_args, swr_avx_args,
'-DKNOB_ARCH=KNOB_ARCH_AVX',
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [swr_incs],
dependencies : [dep_thread, dep_llvm],
@@ -380,9 +388,10 @@ libmesaswr = static_library(
[files_swr_mesa, files_swr_common, gen_knobs_h, gen_knobs_cpp,
gen_builder_hpp, gen_builder_meta_hpp, gen_builder_intrin_hpp],
cpp_args : [
- cpp_msvc_compat_args, cpp_vis_args, swr_cpp_args, swr_avx_args,
+ cpp_msvc_compat_args, swr_cpp_args, swr_avx_args,
swr_defines,
],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, swr_incs],
dependencies : dep_llvm,
)
diff --git a/src/gallium/drivers/tegra/meson.build b/src/gallium/drivers/tegra/meson.build
index 939d6294601..e428cea32de 100644
--- a/src/gallium/drivers/tegra/meson.build
+++ b/src/gallium/drivers/tegra/meson.build
@@ -28,7 +28,7 @@ files_tegra = files(
libtegra = static_library(
'tegra',
files_tegra,
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [
inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_gallium_drivers,
inc_gallium_winsys,
diff --git a/src/gallium/drivers/v3d/meson.build b/src/gallium/drivers/v3d/meson.build
index 78f38685826..64e6cb0789a 100644
--- a/src/gallium/drivers/v3d/meson.build
+++ b/src/gallium/drivers/v3d/meson.build
@@ -78,8 +78,8 @@ foreach ver : v3d_versions
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom,
inc_gallium_drivers,
],
- c_args : [c_vis_args, v3d_args, '-DV3D_VERSION=' + ver],
- cpp_args : [cpp_vis_args],
+ c_args : [v3d_args, '-DV3D_VERSION=' + ver],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind, idep_nir_headers],
)
@@ -97,7 +97,8 @@ libv3d_neon = static_library(
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom,
inc_gallium_drivers,
],
- c_args : [c_vis_args, v3d_args, v3d_neon_c_args],
+ c_args : [v3d_args, v3d_neon_c_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind, idep_nir_headers],
)
@@ -112,8 +113,9 @@ libv3d = static_library(
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom,
inc_gallium_drivers,
],
- c_args : [c_vis_args, v3d_args],
- cpp_args : [cpp_vis_args, v3d_args],
+ c_args : [v3d_args],
+ cpp_args : [v3d_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind, idep_nir_headers],
link_with: [per_version_libs, libv3d_neon],
)
diff --git a/src/gallium/drivers/vc4/meson.build b/src/gallium/drivers/vc4/meson.build
index 5ce5af5f6b4..90a772d5dc6 100644
--- a/src/gallium/drivers/vc4/meson.build
+++ b/src/gallium/drivers/vc4/meson.build
@@ -108,8 +108,8 @@ libvc4 = static_library(
inc_gallium_drivers,
],
link_with: libvc4_neon,
- c_args : [c_vis_args, vc4_c_args],
- cpp_args : [cpp_vis_args],
+ c_args : [vc4_c_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_simpenrose, dep_libdrm, dep_valgrind, idep_nir_headers],
build_by_default : false,
)
diff --git a/src/gallium/drivers/virgl/meson.build b/src/gallium/drivers/virgl/meson.build
index dd33d2b7c66..f94099bc200 100644
--- a/src/gallium/drivers/virgl/meson.build
+++ b/src/gallium/drivers/virgl/meson.build
@@ -46,7 +46,7 @@ virgl_driinfo_h = custom_target(
libvirgl = static_library(
'virgl',
[ files_libvirgl, virgl_driinfo_h ],
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : dep_libdrm
)
diff --git a/src/gallium/drivers/zink/meson.build b/src/gallium/drivers/zink/meson.build
index 15f79b62303..a104c1841fd 100644
--- a/src/gallium/drivers/zink/meson.build
+++ b/src/gallium/drivers/zink/meson.build
@@ -54,7 +54,7 @@ zink_nir_algebraic_c = custom_target(
libzink = static_library(
'zink',
[files_libzink, zink_nir_algebraic_c],
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies: [dep_vulkan, idep_nir_headers],
)
diff --git a/src/gallium/frontends/clover/meson.build b/src/gallium/frontends/clover/meson.build
index 7606a6beaf6..4d429b9a28c 100644
--- a/src/gallium/frontends/clover/meson.build
+++ b/src/gallium/frontends/clover/meson.build
@@ -63,7 +63,6 @@ libclllvm = static_library(
clover_cpp_args,
clover_opencl_cpp_args,
clover_spirv_cpp_args,
- cpp_vis_args,
'-DLIBCLC_INCLUDEDIR="@0@/"'.format(dep_clc.get_pkgconfig_variable('includedir')),
'-DLIBCLC_LIBEXECDIR="@0@/"'.format(dep_clc.get_pkgconfig_variable('libexecdir')),
'-DCLANG_RESOURCE_DIR="@0@"'.format(join_paths(
@@ -71,6 +70,7 @@ libclllvm = static_library(
dep_llvm.version(), 'include',
)),
],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_llvm, dep_elf, dep_llvmspirvlib],
override_options : clover_cpp_std,
)
@@ -79,7 +79,8 @@ libclspirv = static_library(
'clspirv',
files('spirv/invocation.cpp', 'spirv/invocation.hpp'),
include_directories : clover_incs,
- cpp_args : [clover_opencl_cpp_args, clover_spirv_cpp_args, cpp_vis_args],
+ cpp_args : [clover_opencl_cpp_args, clover_spirv_cpp_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_spirv_tools],
override_options : clover_cpp_std,
)
@@ -89,7 +90,8 @@ libclnir = static_library(
files('nir/invocation.cpp', 'nir/invocation.hpp'),
include_directories : [clover_incs, inc_mesa],
dependencies : idep_nir,
- cpp_args : [clover_opencl_cpp_args, clover_spirv_cpp_args, cpp_vis_args],
+ cpp_args : [clover_opencl_cpp_args, clover_spirv_cpp_args],
+ gnu_symbol_visibility : 'hidden',
override_options : clover_cpp_std,
)
@@ -157,8 +159,8 @@ libclover = static_library(
clover_opencl_cpp_args,
clover_spirv_cpp_args,
clover_cpp_args,
- cpp_vis_args
],
+ gnu_symbol_visibility : 'hidden',
link_with : [libclllvm, libclspirv, libclnir],
override_options : clover_cpp_std,
)
diff --git a/src/gallium/frontends/dri/meson.build b/src/gallium/frontends/dri/meson.build
index 4bb41157e42..21390865fd3 100644
--- a/src/gallium/frontends/dri/meson.build
+++ b/src/gallium/frontends/dri/meson.build
@@ -53,6 +53,7 @@ libdri = static_library(
inc_include, inc_util, inc_mesa, inc_mapi, inc_src, inc_gallium,
inc_gallium_aux, inc_dri_common,
],
- c_args : [c_vis_args, libdri_c_args],
+ c_args : [libdri_c_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : dep_libdrm,
)
diff --git a/src/gallium/frontends/glx/xlib/meson.build b/src/gallium/frontends/glx/xlib/meson.build
index 7b1fdb34ffe..2ebec600b89 100644
--- a/src/gallium/frontends/glx/xlib/meson.build
+++ b/src/gallium/frontends/glx/xlib/meson.build
@@ -21,7 +21,7 @@
libxlib = static_library(
'xlib',
files('glx_api.c', 'glx_getproc.c', 'glx_usefont.c', 'xm_api.c', 'xm_st.c'),
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_mapi, inc_mesa],
dependencies : [dep_x11, dep_xext, dep_xcb, dep_glproto],
)
diff --git a/src/gallium/frontends/hgl/meson.build b/src/gallium/frontends/hgl/meson.build
index 3c5870fe101..89877158d36 100644
--- a/src/gallium/frontends/hgl/meson.build
+++ b/src/gallium/frontends/hgl/meson.build
@@ -37,5 +37,6 @@ libsthgl = static_library(
inc_include, inc_haikugl, inc_util, inc_mesa, inc_mapi, inc_src,
inc_gallium, inc_gallium_aux
],
- c_args : [c_vis_args, libsthgl_c_args],
+ c_args : [libsthgl_c_args],
+ gnu_symbol_visibility : 'hidden',
)
diff --git a/src/gallium/frontends/nine/meson.build b/src/gallium/frontends/nine/meson.build
index 7c9e035cafc..14ab178eb4a 100644
--- a/src/gallium/frontends/nine/meson.build
+++ b/src/gallium/frontends/nine/meson.build
@@ -62,7 +62,7 @@ nine_st_files = files(
libnine_st = static_library(
'nine_st',
nine_st_files,
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [
inc_d3d9, inc_gallium, inc_include, inc_src, inc_gallium_aux,
],
diff --git a/src/gallium/frontends/omx/meson.build b/src/gallium/frontends/omx/meson.build
index 35866c1cba0..650d87c625e 100644
--- a/src/gallium/frontends/omx/meson.build
+++ b/src/gallium/frontends/omx/meson.build
@@ -65,7 +65,8 @@ endif
libomx_st = static_library(
'omx_st',
files_omx,
- c_args : [c_vis_args, '-fcommon'],
+ c_args : ['-fcommon'],
+ gnu_symbol_visibility : 'hidden',
include_directories : inc_st_omx,
dependencies : dep_st_omx,
)
diff --git a/src/gallium/frontends/va/meson.build b/src/gallium/frontends/va/meson.build
index 1929d907b9d..c1d6f2a099b 100644
--- a/src/gallium/frontends/va/meson.build
+++ b/src/gallium/frontends/va/meson.build
@@ -29,11 +29,11 @@ libva_st = static_library(
'subpicture.c', 'surface.c', 'picture_h264_enc.c', 'picture_hevc_enc.c',
),
c_args : [
- c_vis_args,
'-DVA_DRIVER_INIT_FUNC=__vaDriverInit_@0@_@1@'.format(
libva_version[0], libva_version[1]
),
],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [
dep_va_headers, dep_x11_xcb, dep_xcb, dep_xcb_dri2, dep_xcb_dri3,
diff --git a/src/gallium/frontends/vdpau/meson.build b/src/gallium/frontends/vdpau/meson.build
index 28c4e9cab76..6f318df093e 100644
--- a/src/gallium/frontends/vdpau/meson.build
+++ b/src/gallium/frontends/vdpau/meson.build
@@ -28,10 +28,10 @@ libvdpau_st = static_library(
'output.c', 'preemption.c', 'presentation.c', 'query.c', 'surface.c',
),
c_args : [
- c_vis_args,
'-DVER_MAJOR=@0@'.format(VDPAU_MAJOR),
'-DVER_MINOR=@0@'.format(VDPAU_MINOR),
],
+ gnu_symbol_visibility : 'hidden',
include_directories : [
inc_include, inc_src, inc_util, inc_gallium, inc_gallium_aux,
],
diff --git a/src/gallium/frontends/xa/meson.build b/src/gallium/frontends/xa/meson.build
index 0c3540f0359..3bc1783acb7 100644
--- a/src/gallium/frontends/xa/meson.build
+++ b/src/gallium/frontends/xa/meson.build
@@ -38,7 +38,8 @@ libxa_st = static_library(
'xa_composite.c', 'xa_context.c', 'xa_renderer.c', 'xa_tgsi.c',
'xa_tracker.c', 'xa_yuv.c',
)],
- c_args : [c_vis_args, '-pedantic'],
+ c_args : ['-pedantic'],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
)
diff --git a/src/gallium/frontends/xvmc/meson.build b/src/gallium/frontends/xvmc/meson.build
index 9022bf4d0a6..6ed9f30248b 100644
--- a/src/gallium/frontends/xvmc/meson.build
+++ b/src/gallium/frontends/xvmc/meson.build
@@ -21,7 +21,7 @@
libxvmc_st = static_library(
'xvmc_st',
files('attributes.c', 'block.c', 'context.c', 'surface.c', 'subpicture.c'),
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [
dep_xvmc, dep_x11_xcb, dep_xcb, dep_xcb_dri2, dep_xcb_dri3, dep_xv,
diff --git a/src/gallium/targets/d3dadapter9/meson.build b/src/gallium/targets/d3dadapter9/meson.build
index 23a19c77508..daef41613db 100644
--- a/src/gallium/targets/d3dadapter9/meson.build
+++ b/src/gallium/targets/d3dadapter9/meson.build
@@ -55,8 +55,8 @@ libgallium_nine = shared_library(
inc_gallium_drivers, inc_d3d9,
include_directories('../../frontends/nine'),
],
- c_args : [c_vis_args, gallium_nine_c_args],
- cpp_args : [cpp_vis_args],
+ c_args : [gallium_nine_c_args],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_build_id, ld_args_gc_sections, gallium_nine_ld_args],
link_depends : gallium_nine_link_depends,
link_with : gallium_nine_link_with,
diff --git a/src/gallium/targets/dri/meson.build b/src/gallium/targets/dri/meson.build
index 2c80bf12090..7cd8666dcf2 100644
--- a/src/gallium/targets/dri/meson.build
+++ b/src/gallium/targets/dri/meson.build
@@ -44,8 +44,7 @@ libgallium_dri = shared_library(
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_dri_common, inc_gallium_drivers,
inc_gallium_winsys, include_directories('../../frontends/dri'),
],
- c_args : [c_vis_args],
- cpp_args : [cpp_vis_args],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_build_id, ld_args_gc_sections, gallium_dri_ld_args],
link_depends : gallium_dri_link_depends,
link_with : [
diff --git a/src/gallium/targets/graw-gdi/meson.build b/src/gallium/targets/graw-gdi/meson.build
index 563801cddd8..782ffeaf16e 100644
--- a/src/gallium/targets/graw-gdi/meson.build
+++ b/src/gallium/targets/graw-gdi/meson.build
@@ -21,7 +21,8 @@
libgraw_gdi = shared_library(
'graw',
'graw_gdi.c',
- c_args : [c_vis_args, c_msvc_compat_args],
+ c_args : [c_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [
inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_gallium_drivers,
inc_gallium_winsys_sw,
diff --git a/src/gallium/targets/graw-null/meson.build b/src/gallium/targets/graw-null/meson.build
index 39471b64064..7755c396e96 100644
--- a/src/gallium/targets/graw-null/meson.build
+++ b/src/gallium/targets/graw-null/meson.build
@@ -21,14 +21,16 @@
libgraw_util = static_library(
'graw_util',
['graw_util.c'],
- c_args : [c_vis_args, c_msvc_compat_args],
+ c_args : [c_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
)
libgraw_null = shared_library(
'graw_null',
['graw_null.c'],
- c_args : [c_vis_args, c_msvc_compat_args],
+ c_args : [c_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
link_with : libgallium,
dependencies : idep_mesautil,
diff --git a/src/gallium/targets/graw-xlib/meson.build b/src/gallium/targets/graw-xlib/meson.build
index 0e5d91b9fdd..d7b5fc91d1a 100644
--- a/src/gallium/targets/graw-xlib/meson.build
+++ b/src/gallium/targets/graw-xlib/meson.build
@@ -21,7 +21,7 @@
libgraw_xlib = shared_library(
'graw_xlib',
['graw_xlib.c'],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_gallium_drivers, inc_gallium_winsys],
link_with : [
libgraw_util, libgallium, libws_xlib
diff --git a/src/gallium/targets/haiku-softpipe/meson.build b/src/gallium/targets/haiku-softpipe/meson.build
index addea41538a..2fe6ad653ef 100644
--- a/src/gallium/targets/haiku-softpipe/meson.build
+++ b/src/gallium/targets/haiku-softpipe/meson.build
@@ -26,8 +26,7 @@ libswpipe = shared_library(
include_directories('../../frontends/hgl'),
include_directories('/boot/system/develop/headers/private')
],
- c_args : [c_vis_args],
- cpp_args : [cpp_vis_args],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
link_with : [
libglapi, libswhgl, libsthgl, libcompiler,
diff --git a/src/gallium/targets/libgl-xlib/meson.build b/src/gallium/targets/libgl-xlib/meson.build
index 4cd673ed34e..6aa450e9fc6 100644
--- a/src/gallium/targets/libgl-xlib/meson.build
+++ b/src/gallium/targets/libgl-xlib/meson.build
@@ -44,7 +44,8 @@ libgl = shared_library(
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_gallium_winsys, inc_gallium_drivers,
include_directories('../../frontends/glx/xlib'),
],
- c_args : [c_vis_args, gallium_xlib_c_args],
+ c_args : [gallium_xlib_c_args],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_bsymbolic, ld_args_gc_sections, gallium_xlib_ld_args],
link_depends : gallium_xlib_link_depends,
link_with : [
diff --git a/src/gallium/targets/omx/meson.build b/src/gallium/targets/omx/meson.build
index 86311c30cb9..3585ee652b2 100644
--- a/src/gallium/targets/omx/meson.build
+++ b/src/gallium/targets/omx/meson.build
@@ -33,8 +33,7 @@ endif
libomx_gallium = shared_library(
'omx_mesa',
'target.c',
- c_args : c_vis_args,
- cpp_args : cpp_vis_args,
+ gnu_symbol_visibility : 'hidden',
link_args : [omx_link_args, ld_args_gc_sections],
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_winsys, inc_gallium_drivers,
diff --git a/src/gallium/targets/osmesa/meson.build b/src/gallium/targets/osmesa/meson.build
index 92cd0aa06a5..b17131f1cbe 100644
--- a/src/gallium/targets/osmesa/meson.build
+++ b/src/gallium/targets/osmesa/meson.build
@@ -41,8 +41,7 @@ endif
libosmesa = shared_library(
osmesa_lib_name,
'target.c',
- c_args : [c_vis_args],
- cpp_args : cpp_vis_args,
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections, osmesa_link_args],
vs_module_defs : osmesa_def,
include_directories : [
diff --git a/src/gallium/targets/pipe-loader/meson.build b/src/gallium/targets/pipe-loader/meson.build
index 4be3a59971b..ecc00703641 100644
--- a/src/gallium/targets/pipe-loader/meson.build
+++ b/src/gallium/targets/pipe-loader/meson.build
@@ -73,8 +73,9 @@ foreach x : pipe_loaders
shared_library(
'pipe_@0@'.format(x[1]),
'pipe_@0@.c'.format(x[1]),
- c_args : [pipe_loader_comp_args, c_vis_args],
- cpp_args : [pipe_loader_comp_args, cpp_vis_args],
+ c_args : [pipe_loader_comp_args],
+ cpp_args : [pipe_loader_comp_args],
+ gnu_symbol_visibility : 'hidden',
link_args : pipe_loader_link_args,
link_depends : pipe_loader_link_deps,
include_directories : pipe_loader_incs,
diff --git a/src/gallium/targets/va/meson.build b/src/gallium/targets/va/meson.build
index e9a3ee126fa..8918ef60130 100644
--- a/src/gallium/targets/va/meson.build
+++ b/src/gallium/targets/va/meson.build
@@ -34,8 +34,7 @@ endif
libva_gallium = shared_library(
'gallium_drv_video',
'target.c',
- c_args : c_vis_args,
- cpp_args : cpp_vis_args,
+ gnu_symbol_visibility : 'hidden',
link_args : [va_link_args, ld_args_gc_sections],
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_winsys, inc_gallium_drivers,
diff --git a/src/gallium/targets/vdpau/meson.build b/src/gallium/targets/vdpau/meson.build
index 4ea12c4ef02..82c6b6d2287 100644
--- a/src/gallium/targets/vdpau/meson.build
+++ b/src/gallium/targets/vdpau/meson.build
@@ -39,8 +39,7 @@ endif
libvdpau_gallium = shared_library(
'vdpau_gallium',
'target.c',
- c_args : c_vis_args,
- cpp_args : cpp_vis_args,
+ gnu_symbol_visibility : 'hidden',
link_args : [vdpau_link_args, ld_args_gc_sections],
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_winsys, inc_gallium_drivers,
diff --git a/src/gallium/targets/xa/meson.build b/src/gallium/targets/xa/meson.build
index d61dbd9842b..1f45bcbb856 100644
--- a/src/gallium/targets/xa/meson.build
+++ b/src/gallium/targets/xa/meson.build
@@ -35,8 +35,7 @@ _xa_version = '.'.join(xa_version)
libxatracker = shared_library(
'xatracker',
'target.c',
- c_args : c_vis_args,
- cpp_args : cpp_vis_args,
+ gnu_symbol_visibility : 'hidden',
link_args : [xa_link_args, ld_args_gc_sections],
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_winsys, inc_gallium_drivers,
diff --git a/src/gallium/targets/xvmc/meson.build b/src/gallium/targets/xvmc/meson.build
index b96a9d34465..11a098af6ac 100644
--- a/src/gallium/targets/xvmc/meson.build
+++ b/src/gallium/targets/xvmc/meson.build
@@ -34,8 +34,7 @@ endif
libxvmc_gallium = shared_library(
'XvMCgallium',
'target.c',
- c_args : c_vis_args,
- cpp_args : cpp_vis_args,
+ gnu_symbol_visibility : 'hidden',
link_args : [xvmc_link_args, ld_args_gc_sections],
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_winsys, inc_gallium_drivers,
diff --git a/src/gallium/winsys/amdgpu/drm/meson.build b/src/gallium/winsys/amdgpu/drm/meson.build
index ef2705d52ad..d6793eff5d7 100644
--- a/src/gallium/winsys/amdgpu/drm/meson.build
+++ b/src/gallium/winsys/amdgpu/drm/meson.build
@@ -29,8 +29,7 @@ libamdgpuwinsys = static_library(
inc_amd, inc_gallium, inc_gallium_aux, inc_include, inc_src,
inc_amd_common, inc_amd_common_llvm,
],
- c_args : [c_vis_args],
- cpp_args : [cpp_vis_args],
+ gnu_symbol_visibility : 'hidden',
link_with : libamdgpu_addrlib,
dependencies : [dep_llvm, dep_libdrm_amdgpu, idep_amdgfxregs_h],
)
diff --git a/src/gallium/winsys/freedreno/drm/meson.build b/src/gallium/winsys/freedreno/drm/meson.build
index 765ac887d11..c563165d776 100644
--- a/src/gallium/winsys/freedreno/drm/meson.build
+++ b/src/gallium/winsys/freedreno/drm/meson.build
@@ -28,6 +28,6 @@ libfreedrenowinsys = static_library(
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers,
inc_freedreno,
],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm],
)
diff --git a/src/gallium/winsys/iris/drm/meson.build b/src/gallium/winsys/iris/drm/meson.build
index 3f8e2a8c63c..3dcdc4a455e 100644
--- a/src/gallium/winsys/iris/drm/meson.build
+++ b/src/gallium/winsys/iris/drm/meson.build
@@ -25,5 +25,5 @@ libiriswinsys = static_library(
inc_src, inc_include,
inc_gallium, inc_gallium_aux, inc_gallium_drivers,
],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
)
diff --git a/src/gallium/winsys/kmsro/drm/meson.build b/src/gallium/winsys/kmsro/drm/meson.build
index 13ed5a0ea43..cec92b1fa15 100644
--- a/src/gallium/winsys/kmsro/drm/meson.build
+++ b/src/gallium/winsys/kmsro/drm/meson.build
@@ -45,7 +45,8 @@ libkmsrowinsys = static_library(
inc_src, inc_include,
inc_gallium, inc_gallium_aux, inc_gallium_winsys,
],
- c_args : [c_vis_args, kmsro_c_args],
+ c_args : [kmsro_c_args],
+ gnu_symbol_visibility : 'hidden',
dependencies: dep_libdrm,
)
diff --git a/src/gallium/winsys/nouveau/drm/meson.build b/src/gallium/winsys/nouveau/drm/meson.build
index cf661971f8b..a6f1f8a6b4f 100644
--- a/src/gallium/winsys/nouveau/drm/meson.build
+++ b/src/gallium/winsys/nouveau/drm/meson.build
@@ -24,6 +24,6 @@ libnouveauwinsys = static_library(
include_directories : [
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers,
],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm_nouveau],
)
diff --git a/src/gallium/winsys/panfrost/drm/meson.build b/src/gallium/winsys/panfrost/drm/meson.build
index d19ce2ddb8b..84aa9ba5602 100644
--- a/src/gallium/winsys/panfrost/drm/meson.build
+++ b/src/gallium/winsys/panfrost/drm/meson.build
@@ -25,5 +25,5 @@ libpanfrostwinsys = static_library(
inc_src, inc_include,
inc_gallium, inc_gallium_aux, inc_gallium_drivers,
],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
)
diff --git a/src/gallium/winsys/radeon/drm/meson.build b/src/gallium/winsys/radeon/drm/meson.build
index d123df0502b..ae5382a5d99 100644
--- a/src/gallium/winsys/radeon/drm/meson.build
+++ b/src/gallium/winsys/radeon/drm/meson.build
@@ -24,6 +24,6 @@ libradeonwinsys = static_library(
'radeon_drm_cs.h', 'radeon_drm_public.h', 'radeon_drm_surface.c',
'radeon_drm_winsys.c', 'radeon_drm_winsys.h'),
include_directories : [inc_src, inc_include, inc_gallium, inc_gallium_aux],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm_radeon],
)
diff --git a/src/gallium/winsys/svga/drm/meson.build b/src/gallium/winsys/svga/drm/meson.build
index 55266ce1623..5f3065e10a5 100644
--- a/src/gallium/winsys/svga/drm/meson.build
+++ b/src/gallium/winsys/svga/drm/meson.build
@@ -37,7 +37,8 @@ files_svgadrm = files(
libsvgadrm = static_library(
'svgadrm',
files_svgadrm,
- c_args : [c_vis_args, c_msvc_compat_args],
+ c_args : [c_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [
inc_src, inc_include, inc_gallium, inc_gallium_aux,
include_directories('../../../drivers/svga', '../../../drivers/svga/include'),
diff --git a/src/gallium/winsys/sw/dri/meson.build b/src/gallium/winsys/sw/dri/meson.build
index 0de62226b96..49a0da82726 100644
--- a/src/gallium/winsys/sw/dri/meson.build
+++ b/src/gallium/winsys/sw/dri/meson.build
@@ -22,6 +22,6 @@
libswdri = static_library(
'swdri',
files('dri_sw_winsys.c', 'dri_sw_winsys.h'),
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_gallium, inc_include, inc_src, inc_gallium_aux],
)
diff --git a/src/gallium/winsys/sw/hgl/meson.build b/src/gallium/winsys/sw/hgl/meson.build
index 10096651c99..ceef11bfebd 100644
--- a/src/gallium/winsys/sw/hgl/meson.build
+++ b/src/gallium/winsys/sw/hgl/meson.build
@@ -21,7 +21,7 @@
libswhgl = static_library(
'swhgl',
files('hgl_sw_winsys.c'),
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_gallium, inc_include, inc_src, inc_gallium_aux,
include_directories('../../../frontends/hgl')
],
diff --git a/src/gallium/winsys/sw/kms-dri/meson.build b/src/gallium/winsys/sw/kms-dri/meson.build
index 9c46d6e5484..36cf568977c 100644
--- a/src/gallium/winsys/sw/kms-dri/meson.build
+++ b/src/gallium/winsys/sw/kms-dri/meson.build
@@ -22,7 +22,7 @@
libswkmsdri = static_library(
'swkmsdri',
files('kms_dri_sw_winsys.c', 'kms_dri_sw_winsys.h'),
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_gallium, inc_include, inc_src, inc_gallium_aux],
dependencies : dep_libdrm,
)
diff --git a/src/gallium/winsys/sw/null/meson.build b/src/gallium/winsys/sw/null/meson.build
index 08b0ff7e828..32ce1b082d7 100644
--- a/src/gallium/winsys/sw/null/meson.build
+++ b/src/gallium/winsys/sw/null/meson.build
@@ -21,7 +21,7 @@
libws_null = static_library(
'ws_null',
files('null_sw_winsys.c', 'null_sw_winsys.h'),
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_gallium, inc_src, inc_gallium_aux, inc_include],
build_by_default : false,
)
diff --git a/src/gallium/winsys/sw/wrapper/meson.build b/src/gallium/winsys/sw/wrapper/meson.build
index 4672261f216..f02f5ddf6af 100644
--- a/src/gallium/winsys/sw/wrapper/meson.build
+++ b/src/gallium/winsys/sw/wrapper/meson.build
@@ -21,7 +21,7 @@
libwsw = static_library(
'wsw',
files('wrapper_sw_winsys.c', 'wrapper_sw_winsys.h'),
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_gallium, inc_include, inc_src, inc_gallium_aux],
build_by_default : false,
)
diff --git a/src/gallium/winsys/sw/xlib/meson.build b/src/gallium/winsys/sw/xlib/meson.build
index d1f5759b052..c1c7eb5b3a5 100644
--- a/src/gallium/winsys/sw/xlib/meson.build
+++ b/src/gallium/winsys/sw/xlib/meson.build
@@ -21,7 +21,7 @@
libws_xlib = static_library(
'ws_xlib',
files('xlib_sw_winsys.c'),
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_x11, dep_xext, dep_xcb],
)
diff --git a/src/gallium/winsys/v3d/drm/meson.build b/src/gallium/winsys/v3d/drm/meson.build
index e5d7b12d1df..58577709e24 100644
--- a/src/gallium/winsys/v3d/drm/meson.build
+++ b/src/gallium/winsys/v3d/drm/meson.build
@@ -25,5 +25,5 @@ libv3dwinsys = static_library(
inc_src, inc_include,
inc_gallium, inc_gallium_aux, inc_gallium_drivers,
],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
)
diff --git a/src/gallium/winsys/vc4/drm/meson.build b/src/gallium/winsys/vc4/drm/meson.build
index 55c85734e04..2e4200ef00f 100644
--- a/src/gallium/winsys/vc4/drm/meson.build
+++ b/src/gallium/winsys/vc4/drm/meson.build
@@ -36,5 +36,6 @@ libvc4winsys = static_library(
inc_src, inc_include,
inc_gallium, inc_gallium_aux, inc_gallium_drivers, inc_gallium_winsys,
],
- c_args : [c_vis_args, vc4_winsys_c_args],
+ c_args : [vc4_winsys_c_args],
+ gnu_symbol_visibility : 'hidden',
)
diff --git a/src/gallium/winsys/virgl/common/meson.build b/src/gallium/winsys/virgl/common/meson.build
index 18a40f28ec1..0fa9e889c1f 100644
--- a/src/gallium/winsys/virgl/common/meson.build
+++ b/src/gallium/winsys/virgl/common/meson.build
@@ -21,8 +21,8 @@
libvirglcommon = static_library(
'virglcommon',
'virgl_resource_cache.c',
- c_args : c_vis_args,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_gallium_drivers],
+ gnu_symbol_visibility : 'hidden',
)
dep_libvirglcommon = declare_dependency(
diff --git a/src/gallium/winsys/virgl/drm/meson.build b/src/gallium/winsys/virgl/drm/meson.build
index 0bfeafaeae9..cf15b78aff4 100644
--- a/src/gallium/winsys/virgl/drm/meson.build
+++ b/src/gallium/winsys/virgl/drm/meson.build
@@ -21,7 +21,7 @@
libvirgldrm = static_library(
'virgldrm',
'virgl_drm_winsys.c',
- c_args : c_vis_args,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_gallium_drivers],
dependencies : [dep_libdrm, dep_libvirglcommon],
+ gnu_symbol_visibility : 'hidden',
)
diff --git a/src/gallium/winsys/virgl/vtest/meson.build b/src/gallium/winsys/virgl/vtest/meson.build
index 6363e62c747..f8b38b42d7a 100644
--- a/src/gallium/winsys/virgl/vtest/meson.build
+++ b/src/gallium/winsys/virgl/vtest/meson.build
@@ -21,7 +21,7 @@
libvirglvtest = static_library(
'virglvtest',
['virgl_vtest_socket.c', 'virgl_vtest_winsys.c'],
- c_args : c_vis_args,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_gallium_drivers],
dependencies : dep_libvirglcommon,
+ gnu_symbol_visibility : 'hidden',
)