diff options
author | Salamandar <felix@piedallu.me> | 2018-04-27 16:08:46 +0200 |
---|---|---|
committer | Salamandar <felix@piedallu.me> | 2018-06-01 14:23:24 +0200 |
commit | a1a53e8de1454e94b57844ee187a637e6518edc5 (patch) | |
tree | ed845ca2602f08d87e92adfa3f5c141226ae9668 | |
parent | accea4889b5ad115e1854560a052ef03c148e89c (diff) | |
download | meson-a1a53e8de1454e94b57844ee187a637e6518edc5.tar.gz |
Add 0.38.0 features
-rw-r--r-- | mesonbuild/interpreter.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index e675bcac0..1b23ff2fe 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -260,6 +260,7 @@ This will become a hard error in the future''') def has_method(self, args, kwargs): return args[0] in self.held_object.values + @FeatureNew('configuration_data.get()', '0.38.0') @noArgsFlattening def get_method(self, args, kwargs): if len(args) < 1 or len(args) > 2: @@ -2068,6 +2069,7 @@ external dependencies (including libraries) must go to "dependencies".''') def func_option(self, nodes, args, kwargs): raise InterpreterException('Tried to call option() in build description file. All options must be in the option file.') + @FeatureNewKwargs('subproject', '0.38.0', ['default_options']) @permittedKwargs(permitted_kwargs['subproject']) @stringArgs def func_subproject(self, nodes, args, kwargs): @@ -2653,6 +2655,7 @@ to directly access options of other subprojects.''') 'dep {}'.format(found, dirname, wanted, name)) return None + @FeatureNewKwargs('dependency', '0.38.0', ['default_options']) @permittedKwargs(permitted_kwargs['dependency']) def func_dependency(self, node, args, kwargs): self.validate_arguments(args, 1, [str]) @@ -3100,6 +3103,7 @@ root and issuing %s. 'permissions arg to be a string or false') return FileMode(*install_mode) + @FeatureNewKwargs('install_data', '0.38.0', ['install_mode']) @permittedKwargs(permitted_kwargs['install_data']) def func_install_data(self, node, args, kwargs): kwsource = mesonlib.stringlistify(kwargs.get('sources', [])) @@ -3121,6 +3125,7 @@ root and issuing %s. self.build.data.append(data.held_object) return data + @FeatureNewKwargs('install_subdir', '0.38.0', ['install_mode']) @permittedKwargs(permitted_kwargs['install_subdir']) @stringArgs def func_install_subdir(self, node, args, kwargs): |