Handle targets with no dependencies

These would not be added to the dependency graph and thus no build instructions were generated for them.
This commit is contained in:
Allan Odgaard
2013-01-21 10:11:52 +01:00
parent 6970031245
commit e19686c9d8

View File

@@ -691,6 +691,7 @@ open("#{builddir}/build.ninja", "w") do |io|
dag = ''
TARGETS.each do |target|
dag << "#{target[:name]}\t#{target[:name]}\n" if target['LINK'].nil?
target['LINK'].each { |dep| dag << "#{target[:name]}\t#{dep}\n" } unless target['LINK'].nil?
target.each do |key, value|
value.each { |rsrc| dag << "#{target[:name]}\t#$'\n" if rsrc =~ /^@/ } if key =~ /^CP_/