public static string GetConfigPathName(BuildConfiguration.BuildType type)
 {
     if (type == BuildConfiguration.BuildType.Debug)
     {
         return("\\Debug");
     }
     else
     {
         return("\\Release");
     }
 }
Exemple #2
0
 public bool IsValidForBuild(BuildConfiguration.BuildType bc)
 {
     if (bc == BuildConfiguration.BuildType.Debug)
     {
         return(LibBuildConfig != LibBuildConfig.Optimized);
     }
     if (bc == BuildConfiguration.BuildType.Release)
     {
         return(LibBuildConfig != LibBuildConfig.Debug);
     }
     return(false);
 }
 public BuildConfig(string name, BuildConfiguration.BuildType type, BuildConfiguration.PackageType packageType, string[] inDefines = null)
 {
     Name               = name;
     CurrentType        = type;
     Defines            = new List <string>();
     CurrentPackageType = packageType;
     if (packageType == BuildConfiguration.PackageType.Package)
     {
         Defines.Add("BUILD_GAME");
     }
     else if (packageType == BuildConfiguration.PackageType.ShippingPackage)
     {
         Defines.Add("BUILD_GAME");
         Defines.Add("BUILD_SHIP");
     }
     if (inDefines != null)
     {
         Defines.AddRange(inDefines);
     }
 }