Commit a8e2d79e authored by Dylan Baker's avatar Dylan Baker Committed by Marge Bot

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's avatarMatt Turner <mattst88@gmail.com>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric@engestrom.ch>
Part-of: <!4740>
parent fc730186
......@@ -882,11 +882,9 @@ endif
# Check for generic C arguments
c_args = []
c_vis_args = []
c_msvc_compat_args = []
no_override_init_args = []
cpp_args = []
cpp_vis_args = []
cpp_msvc_compat_args = []
if cc.get_id() == 'msvc'
foreach a : ['/wd4018', # signed/unsigned mismatch
......@@ -970,10 +968,6 @@ else
endif
endforeach
if cc.has_argument('-fvisibility=hidden')
c_vis_args += '-fvisibility=hidden'
endif
# Check for C and C++ arguments for MSVC compatibility. These are only used
# in parts of the mesa code base that need to compile with MSVC, mainly
# common code
......@@ -985,11 +979,6 @@ else
cpp_msvc_compat_args += a
endif
endforeach
if cpp.has_argument('-fvisibility=hidden')
cpp_vis_args += '-fvisibility=hidden'
endif
endif
# set linker arguments
......
......@@ -62,5 +62,6 @@ libamdgpu_addrlib = static_library(
),
inc_amd_common, inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux,
],
cpp_args : [cpp_vis_args, '-Wno-unused-variable'],
cpp_args : ['-Wno-unused-variable'],
gnu_symbol_visibility : 'hidden',
)
......@@ -64,8 +64,7 @@ libamd_common = static_library(
dep_thread, dep_elf, dep_libdrm_amdgpu, dep_valgrind,
idep_nir_headers,
],
c_args : [c_vis_args],
cpp_args : [cpp_vis_args],
gnu_symbol_visibility : 'hidden',
)
idep_amdgfxregs_h = declare_dependency(sources : [amdgfxregs_h])
......@@ -96,8 +96,7 @@ _libaco = static_library(
dep_llvm, dep_thread, dep_elf, dep_libdrm_amdgpu, dep_valgrind,
idep_nir_headers, idep_amdgfxregs_h,
],
c_args : [c_vis_args],
cpp_args : [cpp_vis_args],
gnu_symbol_visibility : 'hidden',
build_by_default : true,
)
......
......@@ -44,7 +44,6 @@ libamd_common_llvm = static_library(
dep_llvm, dep_thread, dep_elf, dep_libdrm_amdgpu, dep_valgrind,
idep_nir_headers, idep_amdgfxregs_h,
],
c_args : [c_vis_args],
cpp_args : [cpp_vis_args],
gnu_symbol_visibility : 'hidden',
)
......@@ -171,9 +171,10 @@ libvulkan_radeon = shared_library(
dep_valgrind, radv_deps, idep_aco,
idep_mesautil, idep_nir, idep_vulkan_util, idep_amdgfxregs_h, idep_xmlconfig,
],
c_args : [c_vis_args, no_override_init_args, radv_flags],
cpp_args : [cpp_vis_args, radv_flags],
c_args : [no_override_init_args, radv_flags],
cpp_args : [radv_flags],
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
gnu_symbol_visibility : 'hidden',
install : true,
)
......
......@@ -57,7 +57,8 @@ libbroadcom_cle = static_library(
['broadcom_cle', v3d_xml_h],
'v3d_decoder.c',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom],
c_args : [c_vis_args, no_override_init_args],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, dep_valgrind, dep_expat, dep_zlib],
build_by_default : false,
)
......@@ -46,7 +46,8 @@ libbroadcom_compiler = static_library(
['broadcom_compiler', v3d_xml_pack],
libbroadcom_compiler_files,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom],
c_args : [c_vis_args, no_override_init_args],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, dep_valgrind, idep_nir_headers],
build_by_default : false,
)
......
......@@ -23,7 +23,7 @@ libv3d_noop_drm_shim = shared_library(
'v3d_noop.c',
include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies: dep_drm_shim,
c_args : c_vis_args,
gnu_symbol_visibility : 'hidden',
install : true,
)
......@@ -42,7 +42,8 @@ if dep_v3dv3.found()
v3d_xml_pack
],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom, inc_gallium_v3d],
c_args : [c_vis_args, no_override_init_args, '-DV3D_VERSION=' + ver, v3dv3_c_args],
c_args : [no_override_init_args, '-DV3D_VERSION=' + ver, v3dv3_c_args],
gnu_symbol_visibility : 'hidden',
dependencies: [dep_valgrind, dep_thread, dep_v3dv3],
)
endforeach
......@@ -56,7 +57,8 @@ if dep_v3dv3.found()
dependencies: [idep_mesautil, dep_dl, dep_drm_shim, dep_v3dv3],
link_with: per_version_libs,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom, inc_gallium_v3d],
c_args : [c_vis_args, no_override_init_args, '-std=gnu99', v3dv3_c_args],
c_args : [no_override_init_args, '-std=gnu99', v3dv3_c_args],
gnu_symbol_visibility : 'hidden',
cpp_args : [v3dv3_c_args]
)
endif
......@@ -43,7 +43,8 @@ foreach ver : v3d_versions
v3d_xml_pack
],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom],
c_args : [c_vis_args, no_override_init_args, '-DV3D_VERSION=' + ver],
c_args : [no_override_init_args, '-DV3D_VERSION=' + ver],
gnu_symbol_visibility : 'hidden',
dependencies: [dep_valgrind, dep_thread],
)
endforeach
......@@ -55,7 +56,8 @@ libbroadcom_v3d = static_library(
v3d_xml_pack,
],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom],
c_args : [c_vis_args, no_override_init_args],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
link_whole : v3d_libs + per_version_libs,
build_by_default : false,
dependencies: [dep_valgrind, dep_thread],
......
......@@ -28,7 +28,8 @@ libbroadcom_qpu = static_library(
['broadcom_qpu', v3d_xml_pack],
libbroadcom_qpu_files,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom],
c_args : [c_vis_args, no_override_init_args],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, dep_valgrind],
build_by_default : false,
)
......
......@@ -50,8 +50,9 @@ libglcpp = static_library(
[glcpp_lex, glcpp_parse, files('glcpp.h', 'pp.c')],
dependencies : idep_mesautil,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
c_args : [c_vis_args, no_override_init_args, c_msvc_compat_args, _extra_args],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args, _extra_args],
c_args : [no_override_init_args, c_msvc_compat_args, _extra_args],
cpp_args : [cpp_msvc_compat_args, _extra_args],
gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
......@@ -60,8 +61,9 @@ libglcpp_standalone = static_library(
'pp_standalone_scaffolding.c',
link_with : libglcpp,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
c_args : [c_vis_args, no_override_init_args, c_msvc_compat_args, _extra_args],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args, _extra_args],
c_args : [no_override_init_args, c_msvc_compat_args, _extra_args],
cpp_args : [cpp_msvc_compat_args, _extra_args],
gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
......@@ -71,7 +73,8 @@ glcpp = executable(
dependencies : [dep_m, idep_getopt],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
link_with : [libglcpp_standalone, libglsl_util],
c_args : [c_vis_args, no_override_init_args, c_msvc_compat_args],
c_args : [no_override_init_args, c_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
......
......@@ -227,8 +227,9 @@ libglsl = static_library(
[files_libglsl, glsl_parser, glsl_lexer_cpp, ir_expression_operation_h,
ir_expression_operation_strings_h, ir_expression_operation_constant_h,
float64_glsl_h],
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
c_args : [c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
link_with : libglcpp,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_compiler],
dependencies : idep_nir,
......@@ -238,8 +239,9 @@ libglsl = static_library(
libglsl_standalone = static_library(
'glsl_standalone',
[files_libglsl_standalone, ir_expression_operation_h],
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
c_args : [c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
link_with : [libglsl, libglsl_util, libglcpp_standalone],
dependencies : [idep_mesautil, idep_getopt],
......@@ -249,8 +251,9 @@ libglsl_standalone = static_library(
glsl_compiler = executable(
'glsl_compiler',
'main.cpp',
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
c_args : [c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
dependencies : [dep_clock, dep_thread, idep_getopt],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
link_with : [libglsl_standalone],
......@@ -262,8 +265,9 @@ glsl_test = executable(
'glsl_test',
['test.cpp', 'test_optpass.cpp', 'test_optpass.h',
ir_expression_operation_h],
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
c_args : [c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_clock, dep_thread, idep_getopt],
link_with : [libglsl, libglsl_standalone, libglsl_util],
......
......@@ -24,7 +24,8 @@ if with_shader_cache
executable(
'cache_test',
'cache_test.c',
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
c_args : [c_msvc_compat_args, no_override_init_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
link_with : [libglsl],
dependencies : [dep_clock, dep_thread],
......@@ -41,7 +42,8 @@ test(
'invalidate_locations_test.cpp', 'general_ir_test.cpp',
'lower_int64_test.cpp', 'opt_add_neg_to_sub_test.cpp',
'varyings_test.cpp', ir_expression_operation_h],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
link_with : [libglsl, libglsl_standalone, libglsl_util],
dependencies : [dep_clock, dep_thread, idep_gtest],
......@@ -56,7 +58,8 @@ test(
['copy_constant_to_storage_tests.cpp', 'set_uniform_initializer_tests.cpp',
'uniform_initializer_utils.cpp', 'uniform_initializer_utils.h',
ir_expression_operation_h],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
link_with : [libglsl, libglsl_util],
dependencies : [dep_thread, idep_gtest],
......@@ -69,7 +72,8 @@ test(
executable(
'sampler_types_test',
['sampler_types_test.cpp', ir_expression_operation_h],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
link_with : [libglsl, libglsl_util],
dependencies : [dep_thread, idep_gtest],
......@@ -82,7 +86,8 @@ test(
executable(
'list_iterators',
['list_iterators.cpp'],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_glsl],
link_with : [libglsl, libglsl_util],
dependencies : [dep_thread, idep_gtest],
......
......@@ -45,8 +45,9 @@ libcompiler = static_library(
'compiler',
[files_libcompiler, ir_expression_operation_h],
include_directories : [inc_mapi, inc_mesa, inc_compiler, inc_include, inc_src, inc_gallium, inc_gallium_aux],
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
c_args : [c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
dependencies : [dep_valgrind],
build_by_default : false,
)
......@@ -62,7 +63,8 @@ spirv2nir = executable(
files('spirv/spirv2nir.c'),
dependencies : [dep_m, idep_nir, idep_mesautil],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, include_directories('spirv')],
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
c_args : [c_msvc_compat_args, no_override_init_args],
gnu_symbol_visibility : 'hidden',
build_by_default : with_tools.contains('nir'),
install : with_tools.contains('nir'),
)
......
......@@ -258,7 +258,8 @@ _libnir = static_library(
nir_opcodes_h, nir_constant_expressions_c, nir_builder_opcodes_h,
vtn_gather_types_c, nir_intrinsics_c, nir_intrinsics_h],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_compiler, include_directories('../spirv')],
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
c_args : [c_msvc_compat_args, no_override_init_args],
gnu_symbol_visibility : 'hidden',
link_with : libcompiler,
build_by_default : false,
)
......@@ -283,7 +284,8 @@ if with_tests
executable(
'nir_builder_test',
files('tests/builder_tests.cpp'),
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
......@@ -295,7 +297,8 @@ if with_tests
executable(
'nir_control_flow_test',
files('tests/control_flow_tests.cpp'),
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
......@@ -307,7 +310,8 @@ if with_tests
executable(
'nir_vars_test',
files('tests/vars_tests.cpp'),
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
......@@ -328,7 +332,8 @@ if with_tests
executable(
'negative_equal',
files('tests/negative_equal_tests.cpp'),
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
c_args : [c_msvc_compat_args, no_override_init_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
......@@ -340,7 +345,8 @@ if with_tests
executable(
'comparison_pre',
files('tests/comparison_pre_tests.cpp'),
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
c_args : [c_msvc_compat_args, no_override_init_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
......@@ -352,7 +358,8 @@ if with_tests
executable(
'load_store_vectorizer',
files('tests/load_store_vectorizer_tests.cpp'),
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
......@@ -365,7 +372,8 @@ if with_tests
executable(
'nir_serialize_test',
files('tests/serialize_tests.cpp'),
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
......
......@@ -27,7 +27,7 @@ drm_shim = static_library(
],
include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies: [dep_libdrm, idep_mesautil, dep_dl],
c_args : [c_vis_args],
gnu_symbol_visibility : 'hidden',
override_options : ['c_std=gnu99'],
)
dep_drm_shim = declare_dependency(
......
......@@ -162,10 +162,10 @@ libegl = shared_library(
egl_lib_name,
files_egl,
c_args : [
c_vis_args,
c_args_for_egl,
'-D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_@0@'.format(egl_native_platform.to_upper()),
],
gnu_symbol_visibility : 'hidden',
include_directories : incs_for_egl,
link_with : [link_for_egl, libglapi],
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
......
......@@ -44,7 +44,7 @@ wayland_drm_server_protocol_h = custom_target(
libwayland_drm = static_library(
'wayland_drm',
['wayland-drm.c', wayland_drm_protocol_c, wayland_drm_server_protocol_h],
c_args : c_vis_args,
gnu_symbol_visibility : 'hidden',
dependencies : [dep_wayland_server],
build_by_default : false,
)
......
......@@ -25,6 +25,6 @@ libetnaviv_noop_drm_shim = shared_library(
'etnaviv_noop.c',
include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies: dep_drm_shim,
c_args : c_vis_args,
gnu_symbol_visibility : 'hidden',
install : true,
)
......@@ -42,8 +42,8 @@ libetnaviv_drm = static_library(
inc_gallium,
inc_gallium_aux,
],
c_args : [c_vis_args, no_override_init_args],
cpp_args : [cpp_vis_args],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
dependencies : [
dep_libdrm,
dep_valgrind,
......
......@@ -30,8 +30,8 @@ etnaviv_cmd_stream_test = executable(
inc_gallium,
inc_gallium_aux,
],
c_args : [c_vis_args, no_override_init_args],
cpp_args : [cpp_vis_args],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
dependencies : [
dep_libdrm,
dep_valgrind,
......@@ -53,8 +53,8 @@ etnaviv_bo_cache_test = executable(
inc_gallium,
inc_gallium_aux,
],
c_args : [c_vis_args, no_override_init_args],
cpp_args : [cpp_vis_args],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
dependencies : [
dep_libdrm,
dep_valgrind,
......
......@@ -25,9 +25,10 @@ libfreedreno_common = static_library(
'freedreno_uuid.h',
],
include_directories : [inc_freedreno, inc_include, inc_src, inc_gallium],
c_args : [c_vis_args, no_override_init_args],
c_args : [no_override_init_args],
build_by_default : true,
dependencies: [idep_mesautil]
dependencies: [idep_mesautil],
gnu_symbol_visibility : 'hidden',
)
idep_libfreedreno_common = declare_dependency(
......
......@@ -24,6 +24,6 @@ libfreedreno_noop_drm_shim = shared_library(
'freedreno_noop.c',
include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies: dep_drm_shim,
c_args : c_vis_args,
gnu_symbol_visibility : 'hidden',
install : true,
)
......@@ -50,8 +50,8 @@ libfreedreno_drm = static_library(
inc_gallium,
inc_gallium_aux,
],
c_args : [c_vis_args, no_override_init_args],
cpp_args : [cpp_vis_args],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
dependencies : [
dep_libdrm,
dep_valgrind,
......
......@@ -26,8 +26,8 @@ libfreedreno_layout = static_library(
'freedreno_layout.c',
],
include_directories : [inc_freedreno, inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
c_args : [c_vis_args, no_override_init_args],
cpp_args : [cpp_vis_args],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
dependencies : idep_nir_headers,
build_by_default : false,
)
......
......@@ -105,8 +105,8 @@ libfreedreno_ir3 = static_library(
'freedreno_ir3',
[libfreedreno_ir3_files, ir3_nir_trig_c, ir3_nir_imul_c, ir3_parser[0], ir3_parser[1], ir3_lexer],
include_directories : [inc_freedreno, inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
c_args : [c_vis_args, no_override_init_args],
cpp_args : [cpp_vis_args],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
dependencies : idep_nir_headers,
build_by_default : false,
)
......
......@@ -30,8 +30,8 @@ libfreedreno_perfcntrs = static_library(
'freedreno_perfcntrs',
[libfreedreno_perfcntrs_files, freedreno_xml_header_files],
include_directories : [inc_freedreno, inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
c_args : [c_vis_args, no_override_init_args],
cpp_args : [cpp_vis_args],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
dependencies : idep_nir_headers,
build_by_default : false,
)
......
......@@ -130,7 +130,8 @@ libvulkan_freedreno = shared_library(
idep_vulkan_util,
idep_mesautil,
],
c_args : [c_vis_args, no_override_init_args, tu_flags],
c_args : [no_override_init_args, tu_flags],
gnu_symbol_visibility : 'hidden',
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
install : true,
)
......
......@@ -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,
)
......
......@@ -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,
......
......@@ -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,