diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2023-02-24 16:02:47 +0200 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2023-02-24 18:10:42 +0200 |
| commit | 3c9e134287362f3273ff04a86f32838b65b2651e (patch) | |
| tree | f198264a97b09d8fae79b0b695991c28cd6105a9 | |
| parent | db5e57cdba31439ab2ae0e85c0ffc0c200ac3082 (diff) | |
meson: Add summary
Add summary print for meson configuration.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
| -rw-r--r-- | kms++util/meson.build | 7 | ||||
| -rw-r--r-- | kmscube/meson.build | 7 | ||||
| -rw-r--r-- | meson.build | 24 | ||||
| -rw-r--r-- | py/pykms/meson.build | 7 |
4 files changed, 33 insertions, 12 deletions
diff --git a/kms++util/meson.build b/kms++util/meson.build index 1b226f3..61512ca 100644 --- a/kms++util/meson.build +++ b/kms++util/meson.build @@ -1,3 +1,10 @@ +if not get_option('libutils') + libutils_enabled = false + subdir_done() +endif + +libutils_enabled = true + libkmsxxutil_sources = files([ 'src/colorbar.cpp', 'src/color.cpp', diff --git a/kmscube/meson.build b/kmscube/meson.build index 7b87941..fd0fb96 100644 --- a/kmscube/meson.build +++ b/kmscube/meson.build @@ -1,7 +1,14 @@ +if not get_option('kmscube') + kmscube_enabled = false + subdir_done() +endif + if not get_option('libutils') error('"kmscube" option requires "libutils" option enabled') endif +kmscube_enabled = true + kmscube_sources = files([ 'cube.cpp', 'cube-egl.cpp', diff --git a/meson.build b/meson.build index 9e1b471..6ec1672 100644 --- a/meson.build +++ b/meson.build @@ -45,17 +45,17 @@ if get_option('libutils') endif subdir('kms++') - -if get_option('libutils') - subdir('kms++util') -endif - -if get_option('utils') - subdir('utils') -endif - +subdir('kms++util') +subdir('utils') +subdir('kmscube') subdir('py') -if get_option('kmscube') - subdir('kmscube') -endif +summary({ + 'omapdrm extensions': omapdrm_enabled, + 'kms++utils library': libutils_enabled, + 'Python bindings': pybindings_enabled, + 'kmscube': kmscube_enabled, + 'Utilities': libutils_enabled, + }, + section : 'Configuration', + bool_yn : true) diff --git a/py/pykms/meson.build b/py/pykms/meson.build index db5cbd0..9fb5208 100644 --- a/py/pykms/meson.build +++ b/py/pykms/meson.build @@ -1,6 +1,7 @@ py3_dep = dependency('python3', required : get_option('pykms')) if py3_dep.found() == false + pybindings_enabled = false subdir_done() endif @@ -8,9 +9,12 @@ pybind11_dep = dependency('pybind11', fallback : ['pybind11', 'pybind11_dep'], required : get_option('pykms')) if pybind11_dep.found() == false + pybindings_enabled = false subdir_done() endif +pybindings_enabled = true + pykms_sources = files([ 'pykmsbase.cpp', 'pykms.cpp', @@ -26,6 +30,9 @@ if libdrmomap_dep.found() pykms_sources += files([ 'pykmsomap.cpp', ]) + omapdrm_enabled = true +else + omapdrm_enabled = false endif pykms_deps = [ |
