diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-05-04 12:19:33 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-05-11 09:57:38 -0700 |
commit | c03744cccb3239a98803debf05b98793a1291aa7 (patch) | |
tree | 9172724c7546c602ac82431d84dde39accd5064a /mesonbuild/build.py | |
parent | e2567386f108c17704a9b300f56c0f2f2c0b4b54 (diff) | |
download | meson-c03744cccb3239a98803debf05b98793a1291aa7.zip meson-c03744cccb3239a98803debf05b98793a1291aa7.tar.gz meson-c03744cccb3239a98803debf05b98793a1291aa7.tar.bz2 |
Allow passing a list of Files to CustomTarget. Closes #1720
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 41fd8c1..59459bf 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1439,8 +1439,7 @@ class CustomTarget(Target): def process_kwargs(self, kwargs): super().process_kwargs(kwargs) self.sources = kwargs.get('input', []) - if not isinstance(self.sources, list): - self.sources = [self.sources] + self.sources = flatten(self.sources) if 'output' not in kwargs: raise InvalidArguments('Missing keyword argument "output".') self.outputs = kwargs['output'] |