Ejemplo n.º 1
0
        //[LoaderOptimization(LoaderOptimization.MultiDomain)]
        public static int Main(string[] args)
        {
            Stopwatch stopWatch = new Stopwatch();

            stopWatch.Start();

            const string CompilerAppExeName = "Xenko.Core.Assets.CompilerApp.exe";

            var serverApp = new ExecServerApp();
            // The first two parameters are the executable path and the current directory
            var newArgs = new List <string>()
            {
                Path.Combine(AppDomain.CurrentDomain.BaseDirectory, CompilerAppExeName),
                Environment.CurrentDirectory
            };

            newArgs.AddRange(args);
            var result = serverApp.Run(newArgs.ToArray());

            stopWatch.Stop();
            // Get the elapsed time as a TimeSpan value.
            TimeSpan ts = stopWatch.Elapsed;

            // Format and display the TimeSpan value.
            string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
                                               ts.Hours, ts.Minutes, ts.Seconds,
                                               ts.Milliseconds / 10);

            Console.WriteLine("RunTime " + elapsedTime);

            return(result);
        }
Ejemplo n.º 2
0
        public static int Main(string[] args)
        {
            const string CompilerAppExeName = "SiliconStudio.Assets.CompilerApp.exe";

            var serverApp = new ExecServerApp();
            // The first two parameters are the executable path and the current directory
            var newArgs = new List <string>()
            {
                Path.Combine(AppDomain.CurrentDomain.BaseDirectory, CompilerAppExeName),
                Environment.CurrentDirectory
            };

            // Set the SiliconStudioXenkoDir environment variable
            var installDir = DirectoryHelper.GetInstallationDirectory("Xenko");

            Environment.SetEnvironmentVariable("SiliconStudioXenkoDir", installDir);

            // Use shadow caching only in dev environment
            if (DirectoryHelper.IsRootDevDirectory(installDir))
            {
                newArgs.Insert(0, "/shadow");
            }

            newArgs.AddRange(args);
            var result = serverApp.Run(newArgs.ToArray());

            return(result);
        }
Ejemplo n.º 3
0
        public static int Main(string[] args)
        {
            const string CompilerAppExeName = "SiliconStudio.Assets.CompilerApp.exe";

            var serverApp = new ExecServerApp();
            // The first two parameters are the executable path and the current directory
            var newArgs = new List<string>()
            {
                Path.Combine(AppDomain.CurrentDomain.BaseDirectory, CompilerAppExeName),
                Environment.CurrentDirectory
            };

            // Set the SiliconStudioXenkoDir environment variable
            var installDir = DirectoryHelper.GetInstallationDirectory("Xenko");
            Environment.SetEnvironmentVariable("SiliconStudioXenkoDir", installDir);

            // Use shadow caching only in dev environment
            if (DirectoryHelper.IsRootDevDirectory(installDir))
            {
                newArgs.Insert(0, "/shadow");
            }

            newArgs.AddRange(args);
            var result = serverApp.Run(newArgs.ToArray());
            return result;
        }
Ejemplo n.º 4
0
        public static int Main(string[] args)
        {
            const string CompilerAppExeName = "SiliconStudio.Assets.CompilerApp.exe";

            var serverApp = new ExecServerApp();
            var newArgs = new List<string>()
            {
                Path.Combine(AppDomain.CurrentDomain.BaseDirectory, CompilerAppExeName)
            };
            newArgs.AddRange(args);
            var result = serverApp.Run(newArgs.ToArray());
            return result;
        }
Ejemplo n.º 5
0
        public static int Main(string[] args)
        {
            const string CompilerAppExeName = "SiliconStudio.Assets.CompilerApp.exe";

            var serverApp = new ExecServerApp();
            var newArgs   = new List <string>()
            {
                Path.Combine(AppDomain.CurrentDomain.BaseDirectory, CompilerAppExeName)
            };

            newArgs.AddRange(args);
            var result = serverApp.Run(newArgs.ToArray());

            return(result);
        }
Ejemplo n.º 6
0
        public static int Main(string[] args)
        {
            const string CompilerAppExeName = "SiliconStudio.Assets.CompilerApp.exe";

            var serverApp = new ExecServerApp();
            // The first two parameters are the executable path and the current directory
            var newArgs = new List<string>()
            {
                Path.Combine(AppDomain.CurrentDomain.BaseDirectory, CompilerAppExeName),
                Environment.CurrentDirectory
            };

            newArgs.AddRange(args);
            var result = serverApp.Run(newArgs.ToArray());
            return result;
        }
Ejemplo n.º 7
0
        public static int Main(string[] args)
        {
            const string CompilerAppExeName = "SiliconStudio.Assets.CompilerApp.exe";

            var serverApp = new ExecServerApp();
            // The first two parameters are the executable path and the current directory
            var newArgs = new List <string>()
            {
                Path.Combine(AppDomain.CurrentDomain.BaseDirectory, CompilerAppExeName),
                Environment.CurrentDirectory
            };

            newArgs.AddRange(args);
            var result = serverApp.Run(newArgs.ToArray());

            return(result);
        }
Ejemplo n.º 8
0
        //[LoaderOptimization(LoaderOptimization.MultiDomain)]
        public static int Main(string[] args)
        {
            Stopwatch stopWatch = new Stopwatch();

            stopWatch.Start();

            const string CompilerAppExeName = "Xenko.Core.Assets.CompilerApp.exe";

            var serverApp = new ExecServerApp();
            // The first two parameters are the executable path and the current directory
            var newArgs = new List <string>()
            {
                Path.Combine(AppDomain.CurrentDomain.BaseDirectory, CompilerAppExeName),
                Environment.CurrentDirectory
            };

            // Set the XenkoDir environment variable
            var installDir = DirectoryHelper.GetInstallationDirectory("Xenko");

            Environment.SetEnvironmentVariable("XenkoDir", installDir);

            // Use shadow caching only in dev environment
            if (DirectoryHelper.IsRootDevDirectory(installDir))
            {
                newArgs.Insert(0, "/shadow");
            }

            newArgs.AddRange(args);
            var result = serverApp.Run(newArgs.ToArray());

            stopWatch.Stop();
            // Get the elapsed time as a TimeSpan value.
            TimeSpan ts = stopWatch.Elapsed;

            // Format and display the TimeSpan value.
            string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
                                               ts.Hours, ts.Minutes, ts.Seconds,
                                               ts.Milliseconds / 10);

            Console.WriteLine("RunTime " + elapsedTime);

            return(result);
        }
Ejemplo n.º 9
0
 public static int Main(string[] args)
 {
     var serverApp = new ExecServerApp();
     var result = serverApp.Run(args);
     return result;
 }