PublishingPath( Bam.Core.Module module, EPublishingType type) { if (this.BuildEnvironment.Platform.Includes(Bam.Core.EPlatform.OSX) && (EPublishingType.WindowedApplication == type)) { return(module.CreateTokenizedString("$(OutputName).app/Contents/MacOS").Parse()); } return(null); }
Include <DependentModule>( Bam.Core.PathKey key, EPublishingType type, string subdir = null) where DependentModule : Bam.Core.Module, new() { var dependent = Bam.Core.Graph.Instance.FindReferencedModule <DependentModule>(); if (null == dependent) { return(null); } var path = this.PublishingPath(dependent, type); string destSubDir; if (null == path) { destSubDir = subdir; } else { if (null != subdir) { destSubDir = System.IO.Path.Combine(path, subdir); } else { destSubDir = path; } } var copyFileModule = this.CreateCollatedFile( dependent, dependent.GeneratedPaths[key], null, Bam.Core.TokenizedString.CreateVerbatim(destSubDir)); if (EPublishingType.WindowedApplication == type) { if (C.ConsoleApplication.Key == key) { this.AddOSXChangeIDNameForBinary(copyFileModule); } } this.InitialReference = copyFileModule; return(copyFileModule); }