GetConfiguration( Bam.Core.Module module) { lock (this.Configurations) { var moduleConfig = module.BuildEnvironment.Configuration; if (this.Configurations.ContainsKey(moduleConfig)) { return(this.Configurations[moduleConfig]); } var platform = Bam.Core.EPlatform.Invalid; var bitDepth = (module as C.CModule).BitDepth; switch (bitDepth) { case C.EBit.ThirtyTwo: platform = Bam.Core.EPlatform.Win32; break; case C.EBit.SixtyFour: platform = Bam.Core.EPlatform.Win64; break; } if (Bam.Core.EPlatform.Invalid == platform) { throw new Bam.Core.Exception("Platform cannot be extracted from the tool {0} for project {1}", module.Tool.ToString(), this.ProjectPath); } var configuration = new VSProjectConfiguration(this, module, platform); this.Configurations.Add(moduleConfig, configuration); return(configuration); } }
GetConfiguration( Bam.Core.Module module) { lock (this.Configurations) { var moduleConfig = module.BuildEnvironment.Configuration; if (this.Configurations.ContainsKey(moduleConfig)) { return this.Configurations[moduleConfig]; } var platform = Bam.Core.EPlatform.Invalid; var bitDepth = (module as C.CModule).BitDepth; switch (bitDepth) { case C.EBit.ThirtyTwo: platform = Bam.Core.EPlatform.Win32; break; case C.EBit.SixtyFour: platform = Bam.Core.EPlatform.Win64; break; } if (Bam.Core.EPlatform.Invalid == platform) { throw new Bam.Core.Exception("Platform cannot be extracted from the tool {0} for project {1}", module.Tool.ToString(), this.ProjectPath); } var configuration = new VSProjectConfiguration(this, module, platform); this.Configurations.Add(moduleConfig, configuration); return configuration; } }