From cda4a49a95c446be7738ab541008423690144761 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 20 Oct 2020 16:34:57 +0300 Subject: meson: add 'util' option to disable kms++util and utils Signed-off-by: Tomi Valkeinen --- py/pykms/meson.build | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'py/pykms') diff --git a/py/pykms/meson.build b/py/pykms/meson.build index c0860d3..db2f8c7 100644 --- a/py/pykms/meson.build +++ b/py/pykms/meson.build @@ -7,10 +7,15 @@ endif pykms_sources = files([ 'pykmsbase.cpp', 'pykms.cpp', - 'pykmsutil.cpp', - 'pyvid.cpp', ]) +if get_option('utils') + pykms_sources += files([ + 'pykmsutil.cpp', + 'pyvid.cpp', + ]) +endif + if libdrmomap_dep.found() pykms_sources += files([ 'pykmsomap.cpp', @@ -19,11 +24,14 @@ endif pykms_deps = [ libkmsxx_dep, - libkmsxxutil_dep, py3_dep, pybind11_dep, ] +if get_option('utils') + pykms_deps += [ libkmsxxutil_dep ] +endif + destdir = get_option('libdir') / 'python' + py3_dep.version() / 'site-packages/pykms' pykms = shared_module('pykms', -- cgit v1.2.3