From 40c290eb515b40692e2654e304e1e0569a20924c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Jan 2021 00:15:14 +0100 Subject: Show installation paths in configuration summary --- doc/meson.build | 5 ----- meson.build | 27 ++++++++++++++++++--------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/doc/meson.build b/doc/meson.build index ba6ea11..583f09d 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -11,8 +11,3 @@ if build_docs subdir('c') subdir('cpp') endif - -if meson.version().version_compare('>=0.53.0') - summary('Documentation', build_docs, bool_yn: true) -endif - diff --git a/meson.build b/meson.build index 454a194..a39d074 100644 --- a/meson.build +++ b/meson.build @@ -420,15 +420,6 @@ endif install_headers(c_headers, subdir: versioned_name / 'pugl') install_headers(cpp_headers, subdir: 'puglxx' + version_suffix) -if meson.version().version_compare('>=0.53.0') - summary('Platform', platform) - summary('Cairo backend', cairo_dep.found(), bool_yn: true) - summary('OpenGL backend', opengl_dep.found(), bool_yn: true) - summary('Vulkan backend', vulkan_dep.found(), bool_yn: true) - summary('Tests', get_option('tests'), bool_yn: true) - summary('Examples', get_option('examples'), bool_yn: true) -endif - if not get_option('docs').disabled() subdir('doc') endif @@ -440,3 +431,21 @@ endif if get_option('tests') subdir('test') endif + +if meson.version().version_compare('>=0.53.0') + summary('Platform', platform) + summary('Cairo backend', cairo_dep.found(), bool_yn: true) + summary('OpenGL backend', opengl_dep.found(), bool_yn: true) + summary('Vulkan backend', vulkan_dep.found(), bool_yn: true) + summary('Tests', get_option('tests'), bool_yn: true) + summary('Examples', get_option('examples'), bool_yn: true) + summary('Documentation', build_docs, bool_yn: true) + + summary('Install prefix', get_option('prefix')) + summary('Headers', get_option('prefix') / get_option('includedir')) + summary('Libraries', get_option('prefix') / get_option('libdir')) + + if get_option('examples') + summary('Executables', get_option('prefix') / get_option('bindir')) + endif +endif -- cgit v1.2.1