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],
],
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,
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],
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,
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,
)
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(
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',
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)
),
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',
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],
'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',
),
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],
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,
)
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],
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,
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,
),
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(
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,
],
files('drmsl.c'),
include_directories : [inc_root, inc_drm],
link_with : libdrm,
- c_args : warn_c_args,
+ c_args : libdrm_c_args,
)
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(
files('random.c'),
include_directories : [inc_root, inc_drm],
link_with : libdrm,
- c_args : warn_c_args,
+ c_args : libdrm_c_args,
)
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)
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,
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],
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)
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,
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,
)
'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],
)
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,