From a9e8328ae2b14341c3dee1b6610bb454f50e34aa Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Thu, 21 May 2020 16:28:24 +0430 Subject: [PATCH] [meson] Add build configuration summary just like autotools --- docs/meson.build | 2 ++ meson.build | 27 +++++++++++++++++++++++++++ src/meson.build | 1 + 3 files changed, 30 insertions(+) diff --git a/docs/meson.build b/docs/meson.build index b39beec38..2fc8b81f8 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -8,6 +8,8 @@ if not find_program('gtkdoc-scan', required: get_option('gtk_doc')).found() subdir_done() endif +conf.set('HAVE_GTK_DOC', 1) + gnome = import('gnome') docconf = configuration_data() diff --git a/meson.build b/meson.build index 47b7f5039..fc4c16f6e 100644 --- a/meson.build +++ b/meson.build @@ -347,3 +347,30 @@ if not get_option('gtk_doc').disabled() endif configure_file(output: 'config.h', configuration: conf) + +summary({'prefix': get_option('prefix'), + 'bindir': get_option('bindir'), + 'libdir': get_option('libdir'), + 'includedir': get_option('includedir'), + 'datadir': get_option('datadir'), + }, section: 'Directories') +summary({'Builtin': true, + 'Glib': conf.get('HAVE_GLIB', 0) == 1, + 'ICU': conf.get('HAVE_ICU', 0) == 1, + }, bool_yn: true, section: 'Unicode callbacks (you want at least one)') +summary({'FreeType': conf.get('HAVE_FREETYPE', 0) == 1, + }, bool_yn: true, section: 'Font callbacks (the more the merrier)') +summary({'Cairo': conf.get('HAVE_CAIRO', 0) == 1, + 'Fontconfig': conf.get('HAVE_FONTCONFIG', 0) == 1, + }, bool_yn: true, section: 'Tools used for command-line utilities') +summary({'Graphite2': conf.get('HAVE_GRAPHITE2', 0) == 1, + }, bool_yn: true, section: 'Additional shapers (the more the merrier)') +summary({'CoreText': conf.get('HAVE_CORETEXT', 0) == 1, + 'DirectWrite': conf.get('HAVE_DIRECTWRITE', 0) == 1, + 'GDI': conf.get('HAVE_GDI', 0) == 1, + 'Uniscribe': conf.get('HAVE_UNISCRIBE', 0) == 1, + }, bool_yn: true, section: 'Platform shapers (not normally needed)') +summary({'Documentation': conf.get('HAVE_GTK_DOC', 0) == 1, + 'GObject bindings': conf.get('HAVE_GOBJECT', 0) == 1, + 'Introspection': conf.get('HAVE_INTROSPECTION', 0) == 1, + }, bool_yn: true, section: 'Other features') diff --git a/src/meson.build b/src/meson.build index 5cd05fe28..c81156051 100644 --- a/src/meson.build +++ b/src/meson.build @@ -650,6 +650,7 @@ if have_gobject build_gir = gir.found() and not meson.is_cross_build() if build_gir + conf.set('HAVE_INTROSPECTION', 1) hb_gen_files_gir = gnome.generate_gir(libharfbuzz, libharfbuzz_gobject, sources: [hb_headers, hb_sources, hb_gobject_headers, hb_gobject_sources, enum_h], namespace: 'HarfBuzz',