diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-04-30 20:58:25 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-05-04 00:17:33 +0300 |
commit | 108dac5c162eb086b8cce3f4d0575f7282c72c48 (patch) | |
tree | 91b2b6f245933d178a1211867b0dacf0b596a2bf /mesonbuild/interpreter.py | |
parent | 8f4976489627e8a94744ca06e59ea9363e0b379a (diff) | |
download | meson-108dac5c162eb086b8cce3f4d0575f7282c72c48.zip meson-108dac5c162eb086b8cce3f4d0575f7282c72c48.tar.gz meson-108dac5c162eb086b8cce3f4d0575f7282c72c48.tar.bz2 |
Store extra_files as file objects. Helps with #1686.
Diffstat (limited to 'mesonbuild/interpreter.py')
-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 979cdcc..d8f3b2b 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -2554,6 +2554,11 @@ different subdirectory. sources = self.source_strings_to_files(sources) objs = self.flatten(kwargs.get('objects', [])) kwargs['dependencies'] = self.flatten(kwargs.get('dependencies', [])) + if 'extra_files' in kwargs: + ef = kwargs['extra_files'] + if not isinstance(ef, list): + ef = [ef] + kwargs['extra_files'] = self.source_strings_to_files(ef) if not isinstance(objs, list): objs = [objs] self.check_sources_exist(os.path.join(self.source_root, self.subdir), sources) |