diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-19 12:52:41 +0100 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-04-16 01:46:31 +0000 |
commit | c8b414f6b9b47f573c2b840df030f887c05308b8 (patch) | |
tree | df3a8d960760c77db4efe2d60503404513dd55c3 /mesonbuild/backend/vs2010backend.py | |
parent | 5952256566f7c09e36fc219d37d02aec1b0fc68b (diff) | |
download | meson-c8b414f6b9b47f573c2b840df030f887c05308b8.zip meson-c8b414f6b9b47f573c2b840df030f887c05308b8.tar.gz meson-c8b414f6b9b47f573c2b840df030f887c05308b8.tar.bz2 |
vs2010backend: emit dependencies for generators
This is the VS-specific part of the previous commit; the Visual Studio
backend was ignoring dependencies, add an AdditionalInputs element
similar to what add_custom_build does.
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r-- | mesonbuild/backend/vs2010backend.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index ed800e8..d1bf1e5 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -126,6 +126,7 @@ class Vs2010Backend(backends.Backend): sole_output = '' curfile = infilelist[i] infilename = os.path.join(down, curfile.rel_to_builddir(self.build_to_src)) + deps = self.get_custom_target_depend_files(genlist, True) base_args = generator.get_arglist(infilename) outfiles_rel = genlist.get_outputs_for(curfile) outfiles = [os.path.join(target_private_dir, of) for of in outfiles_rel] @@ -156,6 +157,8 @@ class Vs2010Backend(backends.Backend): cbs = ET.SubElement(idgroup, 'CustomBuild', Include=infilename) ET.SubElement(cbs, 'Command').text = ' '.join(self.quote_arguments(cmd)) ET.SubElement(cbs, 'Outputs').text = ';'.join(outfiles) + if deps: + ET.SubElement(cbs, 'AdditionalInputs').text = ';'.join(deps) return generator_output_files, custom_target_output_files, custom_target_include_dirs def generate(self, interp): |