summaryrefslogtreecommitdiff
path: root/lib/libdrm/libkms/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdrm/libkms/meson.build')
-rw-r--r--lib/libdrm/libkms/meson.build22
1 files changed, 8 insertions, 14 deletions
diff --git a/lib/libdrm/libkms/meson.build b/lib/libdrm/libkms/meson.build
index e2adaea36..86d1a4ee6 100644
--- a/lib/libdrm/libkms/meson.build
+++ b/lib/libdrm/libkms/meson.build
@@ -41,10 +41,10 @@ if with_exynos
libkms_include += include_directories('../exynos')
endif
-libkms = library(
+libkms = shared_library(
'kms',
[files_libkms, config_file],
- c_args : libdrm_c_args,
+ c_args : warn_c_args,
include_directories : libkms_include,
link_with : libdrm,
version : '1.0.0',
@@ -56,26 +56,20 @@ ext_libkms = declare_dependency(
include_directories : [libkms_include],
)
-if meson.version().version_compare('>= 0.54.0')
- meson.override_dependency('kms', ext_libkms)
-endif
-
install_headers('libkms.h', subdir : 'libkms')
pkg.generate(
- libkms,
name : 'libkms',
+ libraries : libkms,
subdirs : ['libkms'],
version : '1.0.0',
+ requires_private : 'libdrm',
description : 'Library that abstracts away the different mm interfaces for kernel drivers',
)
test(
- 'kms-symbols-check',
- symbols_check,
- args : [
- '--lib', libkms,
- '--symbols-file', files('kms-symbols.txt'),
- '--nm', prog_nm.path(),
- ],
+ 'kms-symbol-check',
+ prog_bash,
+ env : env_test,
+ args : [files('kms-symbol-check'), libkms]
)