IHeaderLibraryPolicy.HeadersOnly( HeaderLibrary sender, Bam.Core.ExecutionContext context, System.Collections.ObjectModel.ReadOnlyCollection <Bam.Core.Module> headers) { if (0 == headers.Count) { return; } var solution = Bam.Core.Graph.Instance.MetaData as VSSolutionBuilder.VSSolution; var project = solution.EnsureProjectExists(sender); var config = project.GetConfiguration(sender); config.SetType(VSSolutionBuilder.VSProjectConfiguration.EType.Utility); config.EnableIntermediatePath(); foreach (var header in headers) { config.AddHeaderFile(header as HeaderFile); } }
IHeaderLibraryPolicy.HeadersOnly( HeaderLibrary sender, Bam.Core.ExecutionContext context, System.Collections.ObjectModel.ReadOnlyCollection<Bam.Core.Module> headers) { if (0 == headers.Count) { return; } var solution = Bam.Core.Graph.Instance.MetaData as VSSolutionBuilder.VSSolution; var project = solution.EnsureProjectExists(sender); var config = project.GetConfiguration(sender); config.SetType(VSSolutionBuilder.VSProjectConfiguration.EType.Utility); config.EnableIntermediatePath(); foreach (var header in headers) { config.AddHeaderFile(header as HeaderFile); } }
IHeaderLibraryPolicy.HeadersOnly( HeaderLibrary sender, Bam.Core.ExecutionContext context, System.Collections.ObjectModel.ReadOnlyCollection <Bam.Core.Module> headers) { if (0 == headers.Count) { return; } var workspace = Bam.Core.Graph.Instance.MetaData as XcodeBuilder.WorkspaceMeta; var target = workspace.EnsureTargetExists(sender); target.Type = XcodeBuilder.Target.EProductType.Utility; var configuration = target.GetConfiguration(sender); configuration.SetProductName(Bam.Core.TokenizedString.CreateVerbatim("${TARGET_NAME}")); foreach (var header in headers) { target.EnsureHeaderFileExists((header as HeaderFile).InputPath); } }