diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2020-10-20 16:34:57 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2020-10-20 16:34:57 +0300 |
commit | cda4a49a95c446be7738ab541008423690144761 (patch) | |
tree | 326a7a43235b37a847c459152a8a453c754b0f69 /py/pykms | |
parent | debef007b62bc5e8696e02f96111bd2a10072562 (diff) |
meson: add 'util' option to disable kms++util and utils
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'py/pykms')
-rw-r--r-- | py/pykms/meson.build | 14 |
1 files changed, 11 insertions, 3 deletions
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', |