Пример #1
0
		public BuildSoftwareWin32(Software software, int buildNumber, int version, string buildName, Cpu cpu, OS os)
			: base(software, buildNumber, version, buildName, cpu, os)
		{
		}
Пример #2
0
        public BuildSoftwareUnix(Software software, int buildNumber, int version, string buildName, Cpu cpu, OS os, 
            string crossLibName, bool useGccBitsOption, string crossCompilerName, bool noPthreadOption, string crossCompilerOption)
            : base(software, buildNumber, version, buildName, cpu, os)
        {
            this.CrossLibName = crossLibName;
            this.UseGccBitsOption = useGccBitsOption;
            this.CrossCompilerName = crossCompilerName;
            this.NoPThreadOption = noPthreadOption;
            this.CrossCompilerOption = crossCompilerOption;

            #if !BU_SOFTETHER
            this.SrcKitDefaultDir = Env.SystemDir.Substring(0, 2) + @"\tmp\vpn4_srckit";
            #else
            this.SrcKitDefaultDir = Env.SystemDir.Substring(0, 2) + @"\tmp\se_vpn_srckit";
            #endif
        }
Пример #3
0
		public BuildSoftware(string filename)
		{
			filename = Path.GetFileName(filename);

			if (filename.StartsWith(Paths.Prefix, StringComparison.InvariantCultureIgnoreCase))
			{
				filename = filename.Substring(Paths.Prefix.Length);
			}

			if (filename.EndsWith(".tar.gz", StringComparison.InvariantCultureIgnoreCase))
			{
				filename = Str.ReplaceStr(filename, ".tar.gz", "");
			}
			else
			{
				filename = Path.GetFileNameWithoutExtension(filename);
			}
			char[] sps = {'-'};

			string[] tokens = filename.Split(sps, StringSplitOptions.RemoveEmptyEntries);
			if (tokens.Length != 8)
			{
				throw new ApplicationException(filename);
			}

			if (tokens[1].StartsWith("v", StringComparison.InvariantCultureIgnoreCase) == false)
			{
				throw new ApplicationException(filename);
			}

			this.Software = (Software)Enum.Parse(typeof(Software), tokens[0], true);
			this.Version = (int)(double.Parse(tokens[1].Substring(1)) * 100);
			this.BuildNumber = int.Parse(tokens[2]);
			this.BuildName = tokens[3];

			string[] ds = tokens[4].Split('.');
			this.BuildDate = new DateTime(int.Parse(ds[0]), int.Parse(ds[1]), int.Parse(ds[2]));
			this.Os = OSList.FindByName(tokens[5]);
			this.Cpu = CpuList.FindByName(tokens[6]);
		}
Пример #4
0
 public static BuildSoftware Find(Software soft, OS os, Cpu cpu)
 {
     foreach (BuildSoftware s in List)
     {
         if (s.Software == soft && s.Os == os && s.Cpu == cpu)
         {
             return s;
         }
     }
     return null;
 }
Пример #5
0
		public DateTime BuildDate;				// Build date

		public BuildSoftware(Software software, int buildNumber, int version, string buildName, Cpu cpu, OS os)
		{
			this.Software = software;
			this.BuildNumber = buildNumber;
			this.Version = version;
			this.BuildName = buildName;
			this.Cpu = cpu;
			this.Os = os;
		}
Пример #6
0
        public BuildSoftwareUnix(Software software, int buildNumber, int version, string buildName, Cpu cpu, OS os,
                                 string crossLibName, bool useGccBitsOption, string crossCompilerName, bool noPthreadOption, string crossCompilerOption)
            : base(software, buildNumber, version, buildName, cpu, os)
        {
            this.CrossLibName        = crossLibName;
            this.UseGccBitsOption    = useGccBitsOption;
            this.CrossCompilerName   = crossCompilerName;
            this.NoPThreadOption     = noPthreadOption;
            this.CrossCompilerOption = crossCompilerOption;

#if !BU_SOFTETHER
            this.SrcKitDefaultDir = Env.SystemDir.Substring(0, 2) + @"\tmp\vpn4_srckit";
#else
            this.SrcKitDefaultDir = Env.SystemDir.Substring(0, 2) + @"\tmp\se_vpn_srckit";
#endif
        }
Пример #7
0
        public DateTime BuildDate;                                      // Build date

        public BuildSoftware(Software software, int versionMajor, int versionMinor, int versionBuild, string buildName, Cpu cpu, OS os)
        {
            this.Software     = software;
            this.VersionMajor = versionMajor;
            this.VersionMinor = versionMinor;
            this.VersionBuild = versionBuild;
            this.BuildName    = buildName;
            this.Cpu          = cpu;
            this.Os           = os;
        }
Пример #8
0
        public DateTime BuildDate;                                      // Build date

        public BuildSoftware(Software software, int buildNumber, int version, string buildName, Cpu cpu, OS os)
        {
            this.Software    = software;
            this.BuildNumber = buildNumber;
            this.Version     = version;
            this.BuildName   = buildName;
            this.Cpu         = cpu;
            this.Os          = os;
        }
Пример #9
0
 public BuildSoftwareWin32(Software software, int buildNumber, int version, string buildName, Cpu cpu, OS os)
     : base(software, buildNumber, version, buildName, cpu, os)
 {
 }