Exemple #1
0
        static int Main(string[] args)
        {
            // Build mono runtime
            Console.WriteLine("Building the mono runtime..");

            string msbuild  = @"C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe";
            string solution = Utilities.CombinePaths(Environment.CurrentDirectory, "mono", "msvc", "mono.sln");

            string[] msbuild_args = new string[] { "/m", "\"" + solution + "\"", "/p:Configuration=Release_eglib", "/p:Platform=Win32" };

            CommandLineResults results = CommandLineRunner.ExecuteCommand(msbuild, null, string.Join(" ", msbuild_args));

            if (results.ExitCode != 0)
            {
                Console.WriteLine("Error compiling mono runtime:");
                Console.WriteLine(results.Output);
                return(1);
            }

            Console.WriteLine("Runtime successfully built.");

            // Build managed libraries/tools
            Console.WriteLine("Building the managed libraries..");

            MonoCompiler.MonoCompiler mc = new MonkeyBuilder.MonoCompiler.MonoCompiler();

            string config_file = Utilities.CombinePaths(Environment.CurrentDirectory, "mono", "msvc", "win32.xml");

            StepResults compile_results = mc.Compile("unknown", config_file);

            if (compile_results.ExitCode != 0)
            {
                Console.WriteLine("Error compiling managed libraries:");
                Console.WriteLine(compile_results.Log);
                return(1);
            }

            Console.WriteLine("Managed libraries successfully built.");

            return(0);
        }
Exemple #2
0
        static int Main(string[] args)
        {
            // Build mono runtime
            Console.WriteLine ("Building the mono runtime..");

            string msbuild = @"C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe";
            string solution = Utilities.CombinePaths (Environment.CurrentDirectory, "mono", "msvc", "mono.sln");
            string[] msbuild_args = new string[] { "/m", "\"" + solution + "\"", "/p:Configuration=Release_eglib", "/p:Platform=Win32" };

            CommandLineResults results = CommandLineRunner.ExecuteCommand (msbuild, null, string.Join (" ", msbuild_args));

            if (results.ExitCode != 0) {
                Console.WriteLine ("Error compiling mono runtime:");
                Console.WriteLine (results.Output);
                return 1;
            }

            Console.WriteLine ("Runtime successfully built.");

            // Build managed libraries/tools
            Console.WriteLine ("Building the managed libraries..");

            MonoCompiler.MonoCompiler mc = new MonkeyBuilder.MonoCompiler.MonoCompiler ();

            string config_file = Utilities.CombinePaths (Environment.CurrentDirectory, "mono", "msvc", "win32.xml");

            StepResults compile_results = mc.Compile ("unknown", config_file);

            if (compile_results.ExitCode != 0) {
                Console.WriteLine ("Error compiling managed libraries:");
                Console.WriteLine (compile_results.Log);
                return 1;
            }

            Console.WriteLine ("Managed libraries successfully built.");

            return 0;
        }