summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2023-05-05 10:52:07 +0300
committerRan Benita <ran@unusedvar.com>2023-05-05 11:17:07 +0300
commite020174ac69eb0e5b724662ff157c582e6051132 (patch)
tree8c143e7a462cc2986e67879de9ba587910d19255
parent80be81e5ce58aca8484ef7c670a11062e38a9a76 (diff)
downloadlibxkbcommon-e020174ac69eb0e5b724662ff157c582e6051132.tar.gz
libxkbcommon-e020174ac69eb0e5b724662ff157c582e6051132.tar.bz2
libxkbcommon-e020174ac69eb0e5b724662ff157c582e6051132.zip
build: show a summary
Signed-off-by: Ran Benita <ran@unusedvar.com>
-rw-r--r--meson.build34
1 files changed, 34 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 9971dc0..57fbc1c 100644
--- a/meson.build
+++ b/meson.build
@@ -156,6 +156,7 @@ map_to_def = find_program('scripts/map-to-def')
# (preferred) or byacc (with backtracking enabled).
bison = find_program('bison', 'win_bison', required: false, version: '>= 2.3a')
if bison.found()
+ yacc = bison
yacc_gen = generator(
bison,
output: ['@BASENAME@.c', '@BASENAME@.h'],
@@ -164,6 +165,7 @@ if bison.found()
else
byacc = find_program('byacc', required: false)
if byacc.found()
+ yacc = byacc
yacc_gen = generator(
byacc,
output: ['@BASENAME@.c', '@BASENAME@.h'],
@@ -838,3 +840,35 @@ endif
if get_option('enable-xkbregistry')
libxkbregistry_dep = dep_libxkbregistry
endif
+
+if meson.version().version_compare('>=0.62.0')
+ summary({
+ 'backend': meson.backend(),
+ 'buildtype': get_option('buildtype'),
+ 'c_args': get_option('c_args'),
+ 'c_link_args': get_option('c_link_args'),
+ 'yacc': yacc.full_path() + ' ' + yacc.version(),
+ }, section: 'Compiler')
+ summary({
+ 'prefix': get_option('prefix'),
+ 'bindir': get_option('bindir'),
+ 'libdir': get_option('libdir'),
+ 'datadir': get_option('datadir'),
+ 'xkb-config-root': XKBCONFIGROOT,
+ 'xkb-config-extra-path': XKBCONFIGEXTRAPATH,
+ 'xlocaledir': XLOCALEDIR,
+ }, section: 'Directories')
+ summary({
+ 'docs': get_option('enable-docs'),
+ 'tools': get_option('enable-tools'),
+ 'wayland': get_option('enable-wayland'),
+ 'x11': get_option('enable-x11'),
+ }, section: 'Features')
+ summary({
+ 'layout': get_option('default-layout'),
+ 'model': get_option('default-model'),
+ 'options': get_option('default-options'),
+ 'rules': get_option('default-rules'),
+ 'variant': get_option('default-variant'),
+ }, section: 'Defaults')
+endif