diff options
Diffstat (limited to 'py')
-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', |