ninjabackend: Add support for generated csharp sources.

pull/2243/head
Thibault Saunier 7 years ago
parent 48e7398add
commit a83eb4ddb2
  1. 9
      mesonbuild/backend/ninjabackend.py

@ -987,11 +987,20 @@ int dummy;
outputs = [outname_rel, outname_rel + '.mdb']
else:
outputs = [outname_rel]
generated_sources = self.get_target_generated_sources(target)
for rel_src in generated_sources.keys():
dirpart, fnamepart = os.path.split(rel_src)
if rel_src.lower().endswith('.cs'):
rel_srcs.append(rel_src)
deps.append(rel_src)
elem = NinjaBuildElement(self.all_outputs, outputs, 'cs_COMPILER', rel_srcs)
elem.add_dep(deps)
elem.add_item('ARGS', commands)
elem.write(outfile)
self.generate_generator_list_rules(target, outfile)
def generate_single_java_compile(self, src, target, compiler, outfile):
args = []
args += compiler.get_buildtype_args(self.get_option_for_target('buildtype', target))

Loading…
Cancel
Save