meson: use dictionary kwargs
So we don't have to duplicate the libdrm library call just to not set the version keyword for android Reviewed-by: Simon Ser <contact@emersion.fr> Signed-off-by: Dylan Baker <dylan@pnwbakers.com>main
parent
294b9c8322
commit
9324e4f054
26
meson.build
26
meson.build
|
@ -308,23 +308,23 @@ libdrm_files = [files(
|
||||||
config_file, format_mod_static_table
|
config_file, format_mod_static_table
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Build an unversioned so on android
|
||||||
if android
|
if android
|
||||||
libdrm = library('drm', libdrm_files,
|
libdrm_kw = {}
|
||||||
c_args : libdrm_c_args,
|
|
||||||
dependencies : [dep_valgrind, dep_rt, dep_m],
|
|
||||||
include_directories : inc_drm,
|
|
||||||
install : true,
|
|
||||||
)
|
|
||||||
else
|
else
|
||||||
libdrm = library('drm', libdrm_files,
|
libdrm_kw = {'version' : '2.4.0'}
|
||||||
c_args : libdrm_c_args,
|
|
||||||
dependencies : [dep_valgrind, dep_rt, dep_m],
|
|
||||||
include_directories : inc_drm,
|
|
||||||
install : true,
|
|
||||||
version: '2.4.0'
|
|
||||||
)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
libdrm = library(
|
||||||
|
'drm',
|
||||||
|
libdrm_files,
|
||||||
|
c_args : libdrm_c_args,
|
||||||
|
dependencies : [dep_valgrind, dep_rt, dep_m],
|
||||||
|
include_directories : inc_drm,
|
||||||
|
install : true,
|
||||||
|
kwargs : libdrm_kw,
|
||||||
|
)
|
||||||
|
|
||||||
test(
|
test(
|
||||||
'core-symbols-check',
|
'core-symbols-check',
|
||||||
symbols_check,
|
symbols_check,
|
||||||
|
|
Loading…
Reference in New Issue