talkatu/talkatu

Parents 2c25a49202a6
Children ceb57c636aa6
Added meson option to select if the demo application will be installed or not

Testing Done:
1. Compiled, installed with the default options and verified that the demo application and its manpage weren't installed.

2. Deleted `build` directory, reconfigured the install option added in this MR with `meson configure -Dinstall-demo=true` and then compiled and installed. This time the demo application and its manpage were installed in my system.

Bugs closed: TALKATU-84

Reviewed at https://reviews.imfreedom.org/r/156/
--- a/demo/meson.build Mon Sep 21 21:18:58 2020 -0500
+++ b/demo/meson.build Mon Oct 12 20:19:49 2020 -0500
@@ -25,7 +25,7 @@
talkatudemo_resources,
dependencies: [GLIB, GTK3, talkatu_dep],
include_directories : top_srcdir,
- install: true,
+ install: get_option('install-demo'),
)
if get_option('help2man')
@@ -36,6 +36,6 @@
'--output', '@OUTPUT@',
talkatudemo],
output : 'talkatu-demo.1',
- install : true,
+ install : get_option('install-demo'),
install_dir : get_option('mandir') / 'man1')
endif
--- a/meson_options.txt Mon Sep 21 21:18:58 2020 -0500
+++ b/meson_options.txt Mon Oct 12 20:19:49 2020 -0500
@@ -20,6 +20,12 @@
)
option(
+ 'install-demo',
+ type : 'boolean', value : true,
+ description : 'Whether or not to install demo application'
+)
+
+option(
'introspection',
type : 'boolean', value : true, yield : true,
description : 'build gobject-introspection support'