|
|
@ -881,8 +881,8 @@ This will become a hard error in the future.''') |
|
|
|
|
|
|
|
|
|
|
|
@FeatureNewKwargs('build target', '0.46.0', ['install_header', 'install_dir', 'sources']) |
|
|
|
@FeatureNewKwargs('build target', '0.46.0', ['install_header', 'install_dir', 'sources']) |
|
|
|
@FeatureNewKwargs('build target', '0.40.0', ['build_by_default']) |
|
|
|
@FeatureNewKwargs('build target', '0.40.0', ['build_by_default']) |
|
|
|
@FeatureNewKwargs('build target', '0.47.0', ['extra_args']) |
|
|
|
@FeatureNewKwargs('build target', '0.47.0', ['extra_args', 'autocleanup']) |
|
|
|
@permittedKwargs({'interface_prefix', 'namespace', 'extra_args', 'object_manager', 'build_by_default', |
|
|
|
@permittedKwargs({'interface_prefix', 'namespace', 'extra_args', 'autocleanup', 'object_manager', 'build_by_default', |
|
|
|
'annotations', 'docbook', 'install_header', 'install_dir', 'sources'}) |
|
|
|
'annotations', 'docbook', 'install_header', 'install_dir', 'sources'}) |
|
|
|
def gdbus_codegen(self, state, args, kwargs): |
|
|
|
def gdbus_codegen(self, state, args, kwargs): |
|
|
|
if len(args) not in (1, 2): |
|
|
|
if len(args) not in (1, 2): |
|
|
@ -893,6 +893,11 @@ This will become a hard error in the future.''') |
|
|
|
cmd = [self.interpreter.find_program_impl('gdbus-codegen')] |
|
|
|
cmd = [self.interpreter.find_program_impl('gdbus-codegen')] |
|
|
|
extra_args = mesonlib.stringlistify(kwargs.pop('extra_args', [])) |
|
|
|
extra_args = mesonlib.stringlistify(kwargs.pop('extra_args', [])) |
|
|
|
cmd += extra_args |
|
|
|
cmd += extra_args |
|
|
|
|
|
|
|
autocleanup = kwargs.pop('autocleanup', 'all') |
|
|
|
|
|
|
|
if autocleanup not in ['none', 'objects', 'all']: |
|
|
|
|
|
|
|
raise MesonException( |
|
|
|
|
|
|
|
'Gdbus_codegen does not support %s as an autocleanup value.' % (autocleanup, )) |
|
|
|
|
|
|
|
cmd += ['--c-generate-autocleanup', autocleanup] |
|
|
|
if 'interface_prefix' in kwargs: |
|
|
|
if 'interface_prefix' in kwargs: |
|
|
|
cmd += ['--interface-prefix', kwargs.pop('interface_prefix')] |
|
|
|
cmd += ['--interface-prefix', kwargs.pop('interface_prefix')] |
|
|
|
if 'namespace' in kwargs: |
|
|
|
if 'namespace' in kwargs: |
|
|
|