aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-10 00:15:14 +0100
committerDavid Robillard <d@drobilla.net>2021-01-10 00:15:14 +0100
commit40c290eb515b40692e2654e304e1e0569a20924c (patch)
treea933272e5325559fdead82326630d35f994da768
parentfec5f8b73b46fe1d68400ee00e6983393ebd03e7 (diff)
downloadpugl-40c290eb515b40692e2654e304e1e0569a20924c.tar.gz
pugl-40c290eb515b40692e2654e304e1e0569a20924c.tar.bz2
pugl-40c290eb515b40692e2654e304e1e0569a20924c.zip
Show installation paths in configuration summary
-rw-r--r--doc/meson.build5
-rw-r--r--meson.build27
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