diff options
author | Jason Francis <zxzax@protonmail.com> | 2021-03-22 08:50:10 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-26 17:08:26 +0100 |
commit | 39c751b94c5e12bb7a48a64941ccf225d93359ff (patch) | |
tree | 85564bb750d0b9b99007e964ea54d6c8d18f9022 /mesonbuild/backend | |
parent | bb12587e0ba83ed6cde0f395c0a31cee9a3ace26 (diff) | |
download | meson-39c751b94c5e12bb7a48a64941ccf225d93359ff.zip meson-39c751b94c5e12bb7a48a64941ccf225d93359ff.tar.gz meson-39c751b94c5e12bb7a48a64941ccf225d93359ff.tar.bz2 |
introspection: export all sources for custom targets
Also adds some test cases for source files in target_sources.
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r-- | mesonbuild/backend/backends.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index e6628b6..ee5f446 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -1523,6 +1523,8 @@ class Backend: source_list += [j.absolute_path(self.source_dir, self.build_dir)] elif isinstance(j, str): source_list += [os.path.join(self.source_dir, j)] + elif isinstance(j, (build.CustomTarget, build.BuildTarget)): + source_list += [os.path.join(self.build_dir, j.get_subdir(), o) for o in j.get_outputs()] source_list = list(map(lambda x: os.path.normpath(x), source_list)) compiler = [] |