|
|
|
@ -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( |
|
|
|
|