IStrippedBinaryCollationPolicy.CollateStrippedBinaries( StrippedBinaryCollation sender, Bam.Core.ExecutionContext context) { var meta = new MakeFileBuilder.MakeFileMeta(sender); var rule = meta.AddRule(); rule.AddTarget(Bam.Core.TokenizedString.CreateVerbatim("publish_stripped_binaries"), isPhony: true); foreach (var dep in sender.Dependents) { var depMeta = dep.MetaData as MakeFileBuilder.MakeFileMeta; if (null == depMeta) { continue; } foreach (var rules in depMeta.Rules) { // TODO: only the first? rule.AddPrerequisite(rules.Targets[0]); } } }
IStrippedBinaryCollationPolicy.CollateStrippedBinaries( StrippedBinaryCollation sender, Bam.Core.ExecutionContext context) { var meta = new MakeFileBuilder.MakeFileMeta(sender); var rule = meta.AddRule(); rule.AddTarget(Bam.Core.TokenizedString.CreateVerbatim("publish_stripped_binaries"), isPhony: true); foreach (var dep in sender.Dependents) { var depMeta = dep.MetaData as MakeFileBuilder.MakeFileMeta; if (null == depMeta) { continue; } foreach (var rules in depMeta.Rules) { // TODO: only the first? rule.AddPrerequisite(rules.Targets[0]); } } }