meson: make symbols hidden by default
Now that symbols that should be exported are annotated accordingly, make all the rest hidden by default. Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>main
parent
67967e9b5c
commit
ba808253bc
|
@ -31,7 +31,7 @@ libdrm_amdgpu = shared_library(
|
|||
config_file,
|
||||
],
|
||||
c_args : [
|
||||
warn_c_args,
|
||||
libdrm_c_args,
|
||||
'-DAMDGPU_ASIC_ID_TABLE="@0@"'.format(join_paths(datadir_amdgpu, 'amdgpu.ids')),
|
||||
],
|
||||
include_directories : [inc_root, inc_drm],
|
||||
|
|
|
@ -30,7 +30,7 @@ libdrm_etnaviv = shared_library(
|
|||
],
|
||||
include_directories : [inc_root, inc_drm],
|
||||
link_with : libdrm,
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
dependencies : [dep_pthread_stubs, dep_rt, dep_atomic_ops],
|
||||
version : '1.0.0',
|
||||
install : true,
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
libdrm_exynos = shared_library(
|
||||
'drm_exynos',
|
||||
[files('exynos_drm.c', 'exynos_fimg2d.c'), config_file],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : [inc_root, inc_drm],
|
||||
link_with : libdrm,
|
||||
dependencies : [dep_pthread_stubs],
|
||||
|
|
|
@ -42,7 +42,7 @@ endif
|
|||
libdrm_freedreno = shared_library(
|
||||
'drm_freedreno',
|
||||
[files_freedreno, config_file],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : [inc_root, inc_drm],
|
||||
dependencies : [dep_valgrind, dep_pthread_stubs, dep_rt, dep_atomic_ops],
|
||||
link_with : libdrm,
|
||||
|
|
|
@ -30,7 +30,7 @@ libdrm_intel = shared_library(
|
|||
include_directories : [inc_root, inc_drm],
|
||||
link_with : libdrm,
|
||||
dependencies : [dep_pciaccess, dep_pthread_stubs, dep_rt, dep_valgrind, dep_atomic_ops],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
version : '1.0.0',
|
||||
install : true,
|
||||
)
|
||||
|
@ -59,7 +59,7 @@ test_decode = executable(
|
|||
files('test_decode.c'),
|
||||
include_directories : [inc_root, inc_drm],
|
||||
link_with : [libdrm, libdrm_intel],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
)
|
||||
|
||||
test(
|
||||
|
|
|
@ -44,7 +44,7 @@ endif
|
|||
libkms = shared_library(
|
||||
'kms',
|
||||
[files_libkms, config_file],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : libkms_include,
|
||||
link_with : libdrm,
|
||||
version : '1.0.0',
|
||||
|
|
|
@ -211,6 +211,9 @@ foreach a : ['unused-parameter', 'attributes', 'long-long',
|
|||
endif
|
||||
endforeach
|
||||
|
||||
# all c args:
|
||||
libdrm_c_args = warn_c_args + ['-fvisibility=hidden']
|
||||
|
||||
|
||||
dep_pciaccess = dependency('pciaccess', version : '>= 0.10', required : with_intel)
|
||||
dep_cunit = dependency('cunit', version : '>= 2.1', required : false)
|
||||
|
@ -286,7 +289,7 @@ libdrm = shared_library(
|
|||
),
|
||||
config_file,
|
||||
],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
dependencies : [dep_valgrind, dep_rt, dep_m],
|
||||
include_directories : inc_drm,
|
||||
version : '2.4.0',
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
libdrm_nouveau = shared_library(
|
||||
'drm_nouveau',
|
||||
[files( 'nouveau.c', 'pushbuf.c', 'bufctx.c', 'abi16.c'), config_file],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : [inc_root, inc_drm],
|
||||
link_with : libdrm,
|
||||
dependencies : [dep_threads, dep_atomic_ops],
|
||||
|
|
|
@ -22,7 +22,7 @@ libdrm_omap = shared_library(
|
|||
'drm_omap',
|
||||
[files('omap_drm.c'), config_file],
|
||||
include_directories : [inc_root, inc_drm],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
link_with : libdrm,
|
||||
dependencies : [dep_pthread_stubs, dep_atomic_ops],
|
||||
version : '1.0.0',
|
||||
|
|
|
@ -28,7 +28,7 @@ libdrm_radeon = shared_library(
|
|||
),
|
||||
config_file,
|
||||
],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : [inc_root, inc_drm],
|
||||
link_with : libdrm,
|
||||
dependencies : [dep_pthread_stubs, dep_atomic_ops],
|
||||
|
|
|
@ -24,7 +24,7 @@ libdrm_tegra = shared_library(
|
|||
include_directories : [inc_root, inc_drm],
|
||||
link_with : libdrm,
|
||||
dependencies : [dep_pthread_stubs, dep_atomic_ops],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
version : '0.0.0',
|
||||
install : true,
|
||||
)
|
||||
|
|
|
@ -24,7 +24,7 @@ if with_libkms
|
|||
exynos_fimg2d_test = executable(
|
||||
'exynos_fimg2d_test',
|
||||
files('exynos_fimg2d_test.c'),
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : [inc_root, inc_drm, inc_exynos,
|
||||
include_directories('../../libkms')],
|
||||
link_with : [libdrm, libkms, libdrm_exynos],
|
||||
|
@ -36,7 +36,7 @@ endif
|
|||
exynos_fimg2d_perf = executable(
|
||||
'exynos_fimg2d_perf',
|
||||
files('exynos_fimg2d_perf.c'),
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : [inc_root, inc_drm, inc_exynos],
|
||||
link_with : [libdrm, libdrm_exynos],
|
||||
dependencies : dep_threads,
|
||||
|
@ -46,7 +46,7 @@ exynos_fimg2d_perf = executable(
|
|||
exynos_fimg2d_event = executable(
|
||||
'exynos_fimg2d_event',
|
||||
files('exynos_fimg2d_event.c'),
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : [inc_root, inc_drm, inc_exynos],
|
||||
link_with : [libdrm, libdrm_exynos],
|
||||
dependencies : dep_threads,
|
||||
|
|
|
@ -27,7 +27,7 @@ libkms_test = static_library(
|
|||
),
|
||||
include_directories : [inc_root, inc_tests, inc_drm],
|
||||
link_with : libdrm,
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
)
|
||||
|
||||
kms_steal_crtc = executable(
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
kmstest = executable(
|
||||
'kmstest',
|
||||
files('main.c'),
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : [
|
||||
inc_root, inc_tests, include_directories('../../libkms'), inc_drm,
|
||||
],
|
||||
|
|
|
@ -53,7 +53,7 @@ drmsl = executable(
|
|||
files('drmsl.c'),
|
||||
include_directories : [inc_root, inc_drm],
|
||||
link_with : libdrm,
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
)
|
||||
|
||||
hash = executable(
|
||||
|
@ -61,7 +61,7 @@ hash = executable(
|
|||
files('hash.c'),
|
||||
include_directories : [inc_root, inc_drm],
|
||||
link_with : libdrm,
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
)
|
||||
|
||||
random = executable(
|
||||
|
@ -69,7 +69,7 @@ random = executable(
|
|||
files('random.c'),
|
||||
include_directories : [inc_root, inc_drm],
|
||||
link_with : libdrm,
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
)
|
||||
|
||||
drmdevice = executable(
|
||||
|
@ -77,7 +77,7 @@ drmdevice = executable(
|
|||
files('drmdevice.c'),
|
||||
include_directories : [inc_root, inc_drm],
|
||||
link_with : libdrm,
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
)
|
||||
|
||||
test('random', random, timeout : 240)
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
modeprint = executable(
|
||||
'modeprint',
|
||||
files('modeprint.c'),
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : [inc_root, inc_tests, inc_drm],
|
||||
link_with : libdrm,
|
||||
dependencies : dep_threads,
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
modetest = executable(
|
||||
'modetest',
|
||||
files('buffers.c', 'cursor.c', 'modetest.c'),
|
||||
c_args : [warn_c_args, '-Wno-pointer-arith'],
|
||||
c_args : [libdrm_c_args, '-Wno-pointer-arith'],
|
||||
include_directories : [inc_root, inc_tests, inc_drm],
|
||||
dependencies : [dep_threads, dep_cairo],
|
||||
link_with : [libdrm, libutil],
|
||||
|
|
|
@ -24,7 +24,7 @@ threaded = executable(
|
|||
dependencies : [dep_dl, dep_threads],
|
||||
include_directories : [inc_root, inc_drm, include_directories('../../nouveau')],
|
||||
link_with : [libdrm, libdrm_nouveau],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
)
|
||||
|
||||
test('threaded', threaded)
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
proptest = executable(
|
||||
'proptest',
|
||||
files('proptest.c'),
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : [inc_root, inc_tests, inc_drm],
|
||||
link_with : [libdrm, libutil],
|
||||
install : with_install_tests,
|
||||
|
|
|
@ -23,5 +23,5 @@ radeon_ttm = executable(
|
|||
files('rbo.c', 'radeon_ttm.c'),
|
||||
include_directories : [inc_root, inc_drm],
|
||||
link_with : libdrm,
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
)
|
||||
|
|
|
@ -22,6 +22,6 @@ openclose = executable(
|
|||
'openclose',
|
||||
files('openclose.c'),
|
||||
include_directories : [inc_root, inc_drm, include_directories('../../tegra')],
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
link_with : [libdrm, libdrm_tegra],
|
||||
)
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
vbltest = executable(
|
||||
'vbltest',
|
||||
files('vbltest.c'),
|
||||
c_args : warn_c_args,
|
||||
c_args : libdrm_c_args,
|
||||
include_directories : [inc_root, inc_tests, inc_drm],
|
||||
link_with : [libdrm, libutil],
|
||||
install : with_install_tests,
|
||||
|
|
Loading…
Reference in New Issue