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:
parent
49e4757c0b
commit
8f851e8adf
@ -246,7 +246,6 @@ libgvc_gir = libgvc.get_variable('libgvc_gir')
|
|||||||
if get_option('extensions_tool')
|
if get_option('extensions_tool')
|
||||||
extension_tool = subproject('extensions-tool',
|
extension_tool = subproject('extensions-tool',
|
||||||
default_options: [
|
default_options: [
|
||||||
'man=@0@'.format(get_option('man')),
|
|
||||||
'package_name=@0@'.format(meson.project_name()),
|
'package_name=@0@'.format(meson.project_name()),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
option('man',
|
option('man',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: true,
|
value: true,
|
||||||
description: 'Generate man pages'
|
description: 'Generate man pages',
|
||||||
|
yield: true,
|
||||||
)
|
)
|
||||||
|
|
||||||
option('package_name',
|
option('package_name',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user