Skip to content

Commit

Permalink
Fix issues related to utils & libutils
Browse files Browse the repository at this point in the history
Fix dependency issues related to libutils, wrong use of
libutils_enabled.

Signed-off-by: Tomi Valkeinen <[email protected]>
  • Loading branch information
tomba committed Oct 6, 2023
1 parent b91affd commit 8191ab3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ summary({
'kms++utils library': libutils_enabled,
'Python bindings': pybindings_enabled,
'kmscube': kmscube_enabled,
'Utilities': libutils_enabled,
'Utilities': utils_enabled,
},
section : 'Configuration',
bool_yn : true)
7 changes: 7 additions & 0 deletions py/pykms/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@

# Python bindings require libutils for now.
if not get_option('libutils')
pybindings_enabled = false
subdir_done()
endif

py3_dep = dependency('python3', required : get_option('pykms'))

if py3_dep.found() == false
Expand Down
10 changes: 9 additions & 1 deletion utils/meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
if not get_option('utils')
utils_enabled = false
subdir_done()
endif

if not get_option('libutils')
error('"utils" option requires "libutils" option enabled')
utils_enabled = false
subdir_done()
endif

utils_enabled = true

common_deps = [ libkmsxx_dep, libkmsxxutil_dep, libfmt_dep ]

libevdev_dep = dependency('libevdev', required : false)
Expand Down

0 comments on commit 8191ab3

Please sign in to comment.