diff options
author | Mark Bolhuis <mark@bolhuis.dev> | 2022-09-07 00:59:08 +0100 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-09-07 08:43:29 -0400 |
commit | b6235a2e42deb417f13cb9411e0c6feb2a4ab995 (patch) | |
tree | 886f7493d05b9aa4b3202e8f732d9d7cec15bdab /mesonbuild/modules | |
parent | 25f838fd3328273733976b16775142a58e3db275 (diff) | |
download | meson-b6235a2e42deb417f13cb9411e0c6feb2a4ab995.zip meson-b6235a2e42deb417f13cb9411e0c6feb2a4ab995.tar.gz meson-b6235a2e42deb417f13cb9411e0c6feb2a4ab995.tar.bz2 |
modules/wayland: Rename core_only to include_core_only
Rename the core_only option in scan_xml to include_core_only
to match the flag used by wayland-scanner.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/wayland.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/modules/wayland.py b/mesonbuild/modules/wayland.py index 1b2b333..0cbc4b7 100644 --- a/mesonbuild/modules/wayland.py +++ b/mesonbuild/modules/wayland.py @@ -37,7 +37,7 @@ if T.TYPE_CHECKING: public: bool client: bool server: bool - core_only: bool + include_core_only: bool class FindProtocol(TypedDict): @@ -66,7 +66,7 @@ class WaylandModule(ExtensionModule): KwargInfo('public', bool, default=False), KwargInfo('client', bool, default=True), KwargInfo('server', bool, default=False), - KwargInfo('core_only', bool, default=False, since='0.64.0'), + KwargInfo('include_core_only', bool, default=False, since='0.64.0'), ) def scan_xml(self, state: ModuleState, args: T.Tuple[T.List[FileOrString]], kwargs: ScanXML) -> ModuleReturnValue: if self.scanner_bin is None: @@ -101,7 +101,7 @@ class WaylandModule(ExtensionModule): for side in sides: command = [self.scanner_bin, f'{side}-header', '@INPUT@', '@OUTPUT@'] - if kwargs['core_only']: + if kwargs['include_core_only']: command.append('--include-core-only') header = CustomTarget( |