build: Yield 'man' option to extension-tool subproject

Turns out meson has a build-in pattern of what we are doing, namely:
Set a subproject option to a parent project option of the same name.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1072
This commit is contained in:
Florian Müllner 2020-03-05 03:54:23 +01:00
parent 49e4757c0b
commit 8f851e8adf
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,6 @@ libgvc_gir = libgvc.get_variable('libgvc_gir')
if get_option('extensions_tool')
extension_tool = subproject('extensions-tool',
default_options: [
'man=@0@'.format(get_option('man')),
'package_name=@0@'.format(meson.project_name()),
]
)

View File

@ -1,7 +1,8 @@
option('man',
type: 'boolean',
value: true,
description: 'Generate man pages'
description: 'Generate man pages',
yield: true,
)
option('package_name',