qulogic/talkatu

Add a help2man build config option.

2019-10-07, Elliott Sales de Andrade
5eb967db335f
Parents 8270c18a1484
Children 9124bc660919
Add a help2man build config option.

Because this can't be done when cross-compiling without a wrapper.
--- a/demo/meson.build Sun Sep 29 23:52:04 2019 -0500
+++ b/demo/meson.build Mon Oct 07 02:41:27 2019 -0400
@@ -30,12 +30,14 @@
install: true,
)
-custom_target('talkatu-demo.1',
- command : [HELP2MAN,
- '--name=Talkatu Demo', '--section=1',
- '--help-option=--help-all', '--no-info',
- '--output', '@OUTPUT@',
- talkatudemo],
- output : 'talkatu-demo.1',
- install : true,
- install_dir : join_paths(get_option('mandir'), 'man1'))
+if get_option('help2man')
+ custom_target('talkatu-demo.1',
+ command : [HELP2MAN,
+ '--name=Talkatu Demo', '--section=1',
+ '--help-option=--help-all', '--no-info',
+ '--output', '@OUTPUT@',
+ talkatudemo],
+ output : 'talkatu-demo.1',
+ install : true,
+ install_dir : join_paths(get_option('mandir'), 'man1'))
+endif
--- a/meson.build Sun Sep 29 23:52:04 2019 -0500
+++ b/meson.build Mon Oct 07 02:41:27 2019 -0400
@@ -41,7 +41,9 @@
CMARK = dependency('libcmark')
-HELP2MAN = find_program('help2man')
+if get_option('help2man')
+ HELP2MAN = find_program('help2man')
+endif
if get_option('tests')
XVFB_RUN = find_program('xvfb-run')
--- a/meson_options.txt Sun Sep 29 23:52:04 2019 -0500
+++ b/meson_options.txt Mon Oct 07 02:41:27 2019 -0400
@@ -14,6 +14,12 @@
)
option(
+ 'help2man',
+ type : 'boolean', value : true,
+ description : 'Whether or not to build man pages from --help output'
+)
+
+option(
'gobject-introspection',
type : 'boolean', value : true,
description : 'build gobject-introspection support'
@@ -23,4 +29,4 @@
'tests',
type : 'boolean', value : true,
description : 'run unit tests'
-)
\ No newline at end of file
+)