Пример #1
0
        static int BuildWin32(ConsoleService c, string cmdName, string str)
        {
            ConsoleParam[] args =
            {
                new ConsoleParam("[yes|no]",     ConsoleService.Prompt, "Increments build number (y/n) ? ", ConsoleService.EvalNotEmpty, null),
                new ConsoleParam("NORMALIZESRC", ConsoleService.Prompt, "Normalizes source codes (y/n) ? ", ConsoleService.EvalNotEmpty, null)
            };
            ConsoleParamValueList vl = c.ParseCommandList(cmdName, str, args);

            if (vl.DefaultParam.BoolValue)
            {
                Win32BuildUtil.IncrementBuildNumber();
            }
            if (vl.DefaultParam.BoolValue || vl["NORMALIZESRC"].BoolValue)
            {
                Win32BuildUtil.NormalizeBuildInfo();
            }

            Paths.DeleteAllReleaseTarGz();
            Paths.DeleteAllReleaseExe();
            Paths.DeleteAllReleaseManuals();
            Paths.DeleteAllReleaseAdminKits();

            Win32BuildUtil.BuildMain();
            Win32BuildUtil.SignAllBinaryFiles();
            HamCoreBuildUtil.BuildHamcore();
            Win32BuildUtil.CopyDebugSnapshot();

            return(0);
        }
Пример #2
0
        static int BuildHamCore(ConsoleService c, string cmdName, string str)
        {
            ConsoleParam[] args =
            {
            };
            ConsoleParamValueList vl = c.ParseCommandList(cmdName, str, args);

            HamCoreBuildUtil.BuildHamcore();

            return(0);
        }
Пример #3
0
        static int PostBuild(ConsoleService c, string cmdName, string str)
        {
            ConsoleParam[] args =
            {
            };
            ConsoleParamValueList vl = c.ParseCommandList(cmdName, str, args);

            Win32BuildUtil.SignAllBinaryFiles();
            HamCoreBuildUtil.BuildHamcore();

            return(0);
        }