# 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
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
cpp_msvc_compat_args += a
endif
endforeach
-
- if cpp.has_argument('-fvisibility=hidden')
- cpp_vis_args += '-fvisibility=hidden'
- endif
-
endif
# set linker arguments
),
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',
)
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])
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,
)
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',
)
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,
)
['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,
)
['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,
)
'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,
)
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
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
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
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],
['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,
)
[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,
)
'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,
)
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,
)
[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,
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],
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],
'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],
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],
'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],
['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],
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],
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],
'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,
)
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'),
)
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,
)
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],
),
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],
),
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],
),
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],
),
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],
),
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],
),
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],
),
],
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(
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],
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,
)
'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,
)
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,
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,
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,
'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(
'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,
)
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,
'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,
)
'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,
)
'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,
)
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,
)
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
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,
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,
)
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,
)
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,
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,
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,
],
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
'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],
)
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],
)
['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
# 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,
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, ],
)
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],
)
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(
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],
)
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,
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],
)
'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(
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')
'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
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],
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],
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],
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],
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],
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],
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],
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],
[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,
)
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,
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],
)
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],
)
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],
)
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,
)
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
)
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],
)
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(
dep_llvm.version(), 'include',
)),
],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_llvm, dep_elf, dep_llvmspirvlib],
override_options : clover_cpp_std,
)
'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,
)
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,
)
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,
)
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,
)
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],
)
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',
)
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,
],
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,
)
'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,
'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,
],
'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],
)
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,
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,
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 : [
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,
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,
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
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,
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 : [
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,
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 : [
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,
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,
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,
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,
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,
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],
)
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],
)
inc_src, inc_include,
inc_gallium, inc_gallium_aux, inc_gallium_drivers,
],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
)
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,
)
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],
)
inc_src, inc_include,
inc_gallium, inc_gallium_aux, inc_gallium_drivers,
],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
)
'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],
)
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'),
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],
)
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')
],
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,
)
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,
)
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,
)
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],
)
inc_src, inc_include,
inc_gallium, inc_gallium_aux, inc_gallium_drivers,
],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
)
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',
)
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(
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',
)
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',
)
'gbm',
files_gbm,
include_directories : incs_gbm,
- c_args : [c_vis_args, args_gbm],
+ c_args : [args_gbm],
link_args : [ld_args_gc_sections],
link_with : libloader,
dependencies : [deps_gbm, dep_dl, dep_thread, idep_mesautil, idep_xmlconfig],
+ gnu_symbol_visibility : 'hidden',
version : '1.0.0',
install : true,
)
[files_libappleglx, glapitable_h],
include_directories: [inc_mesa, inc_glx, inc_src, inc_include, inc_glapi],
dependencies: [dep_xext, dep_xplugin],
- c_args: [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default: false,
)
[files_libglx, glx_generated],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glapi, inc_loader],
c_args : [
- c_vis_args, gl_lib_cargs,
+ gl_lib_cargs,
'-DGL_LIB_NAME="lib@0@.so.@1@"'.format(gl_lib_name, gl_lib_version.split('.')[0]),
],
+ gnu_symbol_visibility : 'hidden',
link_with : [
libloader, libloader_dri3_helper,
extra_libs_libglx,
'glxwindows',
[files_libwindowsglx, files_windowsdriproto],
include_directories: [inc_include, inc_src, inc_glapi],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default: false,
)
'blorp',
files_libblorp,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel],
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [idep_nir_headers, idep_genxml],
)
['intel_common', genX_xml_h],
files_libintel_common,
include_directories : [inc_include, inc_src, inc_mesa, inc_gallium, inc_intel],
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
link_with : [libisl],
dependencies : [dep_expat, dep_libdrm, dep_thread, idep_genxml],
)
'intel_@0@_mi_builder_test'.format(g[1]),
files('tests/gen_mi_builder_test.cpp'),
cpp_args : [
- cpp_vis_args, cpp_msvc_compat_args,
+ cpp_msvc_compat_args,
'-DGEN_VERSIONx10=@0@'.format(g[0])
],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_intel],
link_with : [libintel_dev],
dependencies : [dep_libdrm, idep_gtest, idep_genxml, idep_mesautil],
'intel_compiler',
[libintel_compiler_files, brw_nir_trig, ir_expression_operation_h],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel],
- 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,
)
['intel_dev'],
files_libintel_dev,
include_directories : [inc_include, inc_src, inc_intel],
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
)
if with_tests
'isl_gen@0@'.format(_gen),
[g[1], isl_gen_files, gen_xml_pack],
include_directories : [inc_include, inc_src, inc_gallium, inc_intel],
- c_args : [c_vis_args, no_override_init_args,
- '-DGEN_VERSIONx10=@0@'.format(_gen)],
+ c_args : [
+ no_override_init_args,
+ '-DGEN_VERSIONx10=@0@'.format(_gen)
+ ],
+ gnu_symbol_visibility : 'hidden',
)
endforeach
include_directories : [
inc_include, inc_src, inc_mesa, inc_gallium, inc_intel,
],
- c_args : [c_vis_args, no_override_init_args, '-msse2'],
+ c_args : [no_override_init_args, '-msse2'],
+ gnu_symbol_visibility : 'hidden',
extra_files : ['isl_tiled_memcpy.c']
)
inc_include, inc_src, inc_mesa, inc_gallium, inc_intel,
],
link_args : ['-Wl,--exclude-libs=ALL'],
- c_args : [c_vis_args, no_override_init_args, '-msse2', sse41_args],
+ c_args : [no_override_init_args, '-msse2', sse41_args],
+ gnu_symbol_visibility : 'hidden',
extra_files : ['isl_tiled_memcpy.c']
)
else
[libisl_files, isl_format_layout_c, genX_bits_h],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel],
link_with : [isl_gen_libs, isl_tiled_memcpy, isl_tiled_memcpy_sse41],
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
)
if with_tests
include_directories : [
inc_include, inc_src, inc_intel,
],
- c_args : [c_vis_args, no_override_init_args, '-msse2'],
- cpp_args : [cpp_vis_args, '-msse2'],
+ c_args : [no_override_init_args, '-msse2'],
+ cpp_args : ['-msse2'],
+ gnu_symbol_visibility : 'hidden',
)
include_directories : [inc_include, inc_src, inc_intel],
dependencies : idep_mesautil,
link_with : [libintel_common, libintel_dev],
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
install : false
)
dependencies : [idep_mesautil, dep_expat, dep_zlib, dep_dl, dep_thread, dep_m],
include_directories : [inc_include, inc_src, inc_intel],
link_with : [libintel_common, libintel_compiler, libintel_dev, libaub],
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
install : true
)
dependencies : [idep_mesautil, dep_zlib, dep_thread],
include_directories : [inc_include, inc_src, inc_intel],
link_with : [libintel_common, libintel_compiler, libintel_dev],
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
install : true
)
dependencies : [idep_mesautil, dep_thread],
include_directories : [inc_include, inc_src, inc_mesa, inc_intel],
link_with : [libintel_common, libintel_compiler, libintel_dev],
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
install : true
)
dependencies : [dep_zlib, dep_dl, dep_thread, dep_m],
include_directories : [inc_include, inc_src, inc_intel],
link_with : [libintel_dev],
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
install : true
)
dependencies : [idep_mesautil, dep_dl, dep_thread],
include_directories : [inc_include, inc_src, inc_intel],
link_with : libintel_common,
- c_args : [c_vis_args, no_override_init_args, c_sse2_args],
+ c_args : [no_override_init_args, c_sse2_args],
+ gnu_symbol_visibility : 'hidden',
install_dir : get_option('libexecdir'),
install : true
)
dependencies : dep_dl,
include_directories : [inc_include, inc_src, inc_intel],
link_with : libintel_dev,
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
install_dir : get_option('libexecdir'),
install : true
)
include_directories: [inc_include, inc_src, inc_intel],
link_with: libintel_dev,
dependencies: [dep_libdrm, dep_drm_shim, idep_mesautil, idep_libintel_common],
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
install : true,
)
endif
dependencies : [idep_mesautil, dep_zlib, dep_dl, dep_thread, dep_m, libintel_imgui_gtk_dep],
include_directories : [inc_include, inc_src, inc_intel],
link_with : [libintel_common, libintel_compiler, libintel_dev, libaub],
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
cpp_args : ['-fpermissive', '-Wno-parentheses', '-Wno-class-memaccess'],
install : true
)
dependencies : [idep_mesautil, dep_thread],
include_directories : [inc_include, inc_src, inc_mesa, inc_intel],
link_with : [libintel_common, libintel_compiler, libintel_dev],
- c_args : [c_vis_args, no_override_init_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
install : true
)
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_compiler, inc_intel, inc_vulkan_wsi,
],
c_args : [
- c_vis_args, no_override_init_args, c_sse2_args,
+ no_override_init_args, c_sse2_args,
'-DGEN_VERSIONx10=@0@'.format(_gen),
],
+ gnu_symbol_visibility : 'hidden',
dependencies : [
dep_libdrm, dep_valgrind, idep_nir_headers, idep_genxml, idep_vulkan_util_headers,
],
idep_xmlconfig_headers,
]
anv_flags = [
- c_vis_args,
no_override_init_args,
c_sse2_args,
]
inc_vulkan_wsi, inc_util,
],
c_args : anv_flags,
+ gnu_symbol_visibility : 'hidden',
dependencies : anv_deps,
)
idep_nir, idep_genxml, idep_vulkan_util, idep_mesautil, idep_xmlconfig,
],
c_args : anv_flags,
+ gnu_symbol_visibility : 'hidden',
link_args : ['-Wl,--build-id=sha1', ld_args_bsymbolic, ld_args_gc_sections],
install : true,
)
idep_nir, idep_vulkan_util, idep_mesautil,
],
c_args : anv_flags,
+ gnu_symbol_visibility : 'hidden',
)
foreach t : ['block_pool_no_free', 'block_pool_grow_first',
libloader_dri3_helper = static_library(
'loader_dri3_helper',
'loader_dri3_helper.c',
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src],
dependencies : [
dep_libdrm, dep_xcb_dri3, dep_xcb_present, dep_xcb_sync, dep_xshmfence,
endif
loader_c_args = [
- c_vis_args, '-DUSE_DRICONF',
+ '-DUSE_DRICONF',
'-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path),
]
'loader',
['loader.c', 'pci_id_driver_map.c'],
c_args : loader_c_args,
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_util],
dependencies : [dep_libdrm, dep_thread, idep_xmlconfig_headers],
build_by_default : false,
['../entry.c', es1_glapi_mapi_tmp_h],
c_args : [
c_msvc_compat_args,
- c_vis_args,
_es1_c_args,
'-DMAPI_MODE_BRIDGE',
'-DMAPI_ABI_HEADER="@0@"'.format(es1_glapi_mapi_tmp_h.full_path()),
gcc_lto_quirk,
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [inc_src, inc_include, inc_mapi],
link_with : libglapi,
['../entry.c', es2_glapi_mapi_tmp_h],
c_args : [
c_msvc_compat_args,
- c_vis_args,
_es2_c_args,
'-DMAPI_MODE_BRIDGE',
'-DMAPI_ABI_HEADER="@0@"'.format(es2_glapi_mapi_tmp_h.full_path()),
gcc_lto_quirk,
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [inc_src, inc_include, inc_mapi],
link_with : libglapi,
c_args : [
_glapi_c_args,
c_msvc_compat_args,
- c_vis_args,
'-DMAPI_MODE_GLAPI',
'-DMAPI_ABI_HEADER="@0@"'.format(shared_glapi_mapi_tmp_h.full_path()),
gcc_lto_quirk,
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [inc_src, inc_include, inc_mapi],
dependencies : [dep_thread, dep_selinux],
'dricommon',
files('utils.c', 'utils.h', 'dri_util.c', 'dri_util.h'),
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util],
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, idep_xmlconfig_headers],
build_by_default : false,
)
'megadriver_stub',
'megadriver_stub.c',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
- c_args : c_vis_args,
+ gnu_symbol_visibility : 'hidden',
dependencies : dep_libdrm,
build_by_default : false,
)
'i915',
files_i915,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_dri_common, inc_util],
- 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_libdrm_intel, idep_xmlconfig_headers],
)
'genX_state_upload.c', gen_xml_pack],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel, inc_dri_common],
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, idep_nir_headers],
)
endforeach
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel, inc_dri_common,
],
- c_args : [c_vis_args, no_override_init_args, c_sse2_args],
- cpp_args : [cpp_vis_args, c_sse2_args],
+ c_args : [no_override_init_args, c_sse2_args],
+ cpp_args : [c_sse2_args],
+ gnu_symbol_visibility : 'hidden',
link_with : [
i965_gen_libs, libintel_dev, libisl, libintel_compiler, libblorp,
libintel_perf
'nouveau_vieux',
files_nouveau_vieux,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_dri_common, inc_util],
- c_args : [c_vis_args],
- cpp_args : [cpp_vis_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, dep_libdrm_nouveau, idep_xmlconfig_headers],
)
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_dri_common, inc_util, include_directories('server'),
],
- c_args : [c_vis_args, '-DRADEON_R200'],
- cpp_args : [cpp_vis_args],
+ c_args : ['-DRADEON_R200'],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, dep_libdrm_radeon, idep_xmlconfig_headers],
)
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_dri_common, inc_util, include_directories('server'),
],
- c_args : [c_vis_args, '-DRADEON_R100'],
- cpp_args : [cpp_vis_args],
+ c_args : ['-DRADEON_R100'],
+ gnu_symbol_visibility : 'hidden',
dependencies : [dep_libdrm, dep_libdrm_radeon, idep_xmlconfig_headers],
)
libswrast_dri = static_library(
'swrast_dri',
files('swrast.c', 'swrast_priv.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, inc_dri_common],
dependencies : dep_libdrm,
)
libosmesa = shared_library(
osmesa_lib_name,
['osmesa.c', glapitable_h, glapitemp_h],
- c_args : c_vis_args,
- cpp_args : cpp_vis_args,
+ gnu_symbol_visibility : 'hidden',
link_args : ld_args_gc_sections,
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux,
libmesa_sse41 = static_library(
'mesa_sse41',
files('main/streaming-load-memcpy.c', 'main/sse_minmax.c'),
- c_args : [c_vis_args, c_msvc_compat_args, sse41_args],
+ c_args : [c_msvc_compat_args, sse41_args],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
+ gnu_symbol_visibility : 'hidden',
)
else
libmesa_sse41 = []
libmesa_common = static_library(
'mesa_common',
files_libmesa_common,
- c_args : [c_vis_args, c_msvc_compat_args, _mesa_windows_args],
- cpp_args : [cpp_vis_args, cpp_msvc_compat_args, _mesa_windows_args],
+ c_args : [c_msvc_compat_args, _mesa_windows_args],
+ cpp_args : [cpp_msvc_compat_args, _mesa_windows_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_libmesa_asm, include_directories('main')],
dependencies : idep_nir_headers,
build_by_default : false,
libmesa_classic = static_library(
'mesa_classic',
files_libmesa_classic,
- 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_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_libmesa_asm, include_directories('main')],
link_with : [libmesa_common, libglsl, libmesa_sse41],
dependencies : idep_nir_headers,
libmesa_gallium = static_library(
'mesa_gallium',
files_libmesa_gallium,
- c_args : [c_vis_args, c_msvc_compat_args, _mesa_windows_args],
- cpp_args : [cpp_vis_args, cpp_msvc_compat_args, _mesa_windows_args],
+ c_args : [c_msvc_compat_args, _mesa_windows_args],
+ cpp_args : [cpp_msvc_compat_args, _mesa_windows_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_libmesa_asm, include_directories('main')],
link_with : [libmesa_common, libglsl, libmesa_sse41],
dependencies : [idep_nir_headers, dep_vdpau],
'mesa/program/dummy_errors.c',
),
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
- c_args : [c_vis_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost_hw],
dependencies: [idep_nir],
link_with: [libpanfrost_util],
- c_args : [c_vis_args, no_override_init_args],
- cpp_args : [cpp_vis_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
'panfrost_encoder',
[libpanfrost_encoder_files],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost_hw],
- 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],
build_by_default : false,
)
idep_nir
],
link_with: [libpanfrost_util],
- c_args : [c_vis_args, no_override_init_args],
- cpp_args : [cpp_vis_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
'panfrost_decode',
[libpanfrost_decode_files],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost],
- c_args : [c_vis_args, no_override_init_args],
- cpp_args : [cpp_vis_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
'panfrost_shared',
[libpanfrost_shared_files],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
- c_args : [c_vis_args, no_override_init_args, '-O3'],
- cpp_args : [cpp_vis_args],
+ c_args : [no_override_init_args, '-O3'],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
[libpanfrost_util_files],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost_hw],
dependencies: [idep_nir],
- c_args : [c_vis_args, no_override_init_args],
- cpp_args : [cpp_vis_args],
+ c_args : [no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
[files_mesa_format, u_format_table_c],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : dep_m,
- c_args : [c_msvc_compat_args, c_vis_args],
+ c_args : [c_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false
)
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : deps_for_libmesa_util,
link_with: libmesa_format,
- c_args : [c_msvc_compat_args, c_vis_args],
+ c_args : [c_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false
)
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [idep_mesautil, dep_expat, dep_m],
c_args : [
- c_msvc_compat_args, c_vis_args,
+ c_msvc_compat_args,
'-DSYSCONFDIR="@0@"'.format(
join_paths(get_option('prefix'), get_option('sysconfdir'))
),
join_paths(get_option('prefix'), get_option('datadir'))
),
],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
vklayer_mesa_device_select = shared_library(
'VkLayer_MESA_device_select',
vklayer_files,
- c_args : [c_vis_args, no_override_init_args, vklayer_flags ],
+ c_args : [no_override_init_args, vklayer_flags],
+ gnu_symbol_visibility : 'hidden',
dependencies : [idep_vulkan_util, idep_mesautil, vklayer_deps, dep_libdrm, dep_dl],
include_directories : [inc_include, inc_util, inc_vulkan_wsi],
link_args : cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro']),
vklayer_mesa_overlay = shared_library(
'VkLayer_MESA_overlay',
vklayer_files, overlay_spv,
- c_args : [c_vis_args, no_override_init_args, vulkan_wsi_args],
- cpp_args : [cpp_vis_args, vulkan_wsi_args],
+ c_args : [no_override_init_args, vulkan_wsi_args],
+ cpp_args : [vulkan_wsi_args],
+ gnu_symbol_visibility : 'hidden',
dependencies : [idep_vulkan_util, idep_mesautil, vulkan_wsi_deps, libimgui_core_dep, dep_dl],
include_directories : [inc_include, inc_src],
link_args : cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro']),
[files_vulkan_util, vk_enum_to_str],
include_directories : [inc_include, inc_src, inc_gallium],
dependencies : vulkan_wsi_deps,
- c_args : [c_vis_args, vulkan_wsi_args],
+ c_args : [vulkan_wsi_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
files_vulkan_wsi,
include_directories : [inc_include, inc_src],
dependencies : [vulkan_wsi_deps, dep_libdrm, idep_vulkan_util, idep_xmlconfig],
- c_args : [c_vis_args, vulkan_wsi_args],
+ c_args : [vulkan_wsi_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false,
)