Moc tuning.

pull/15/head
Jussi Pakkanen 11 years ago
parent 55dba78889
commit 23ac32c196
  1. 9
      ninjabackend.py

@ -817,7 +817,14 @@ class NinjaBackend(backends.Backend):
elem.add_item('rcc_flags', ['--name', basename]) elem.add_item('rcc_flags', ['--name', basename])
elem.write(outfile) elem.write(outfile)
if self.is_compilable_file(outfilename): if self.is_compilable_file(outfilename):
src_deps.append(outfilename) if rule.name == 'moc_hdr_compile' or rule.name == 'moc_src_compile':
manual_mocs = target.get_original_kwargs().get('manual_moc_include', [])
if src in manual_mocs:
other_deps.append(outfilename)
else:
src_deps.append(outfilename)
else:
src_deps.append(outfilename)
else: else:
other_deps.append(outfilename) other_deps.append(outfilename)
if rule.name == 'moc_src_compile': #HACK if rule.name == 'moc_src_compile': #HACK

Loading…
Cancel
Save