From 32b6f82fb55b7f9ce1cd8a9e2e8ebdc3a7ac746c Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 20 Dec 2022 09:27:33 +0200 Subject: py: fix dependency to kms++util Py bindings always calls init_pykmsutils() even if kms++util is not enabled. Fix this. Fixes #68 Signed-off-by: Tomi Valkeinen --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index ce73f4c..6fffc20 100644 --- a/meson.build +++ b/meson.build @@ -40,6 +40,10 @@ if libdrmomap_dep.found() add_global_arguments('-DHAS_LIBDRM_OMAP', language : 'cpp') endif +if get_option('libutils') + add_global_arguments('-DHAS_KMSXXUTIL', language : 'cpp') +endif + subdir('kms++') if get_option('v4l2').enabled() -- cgit v1.2.3