Exemplo n.º 1
0
 protected void RunAPIUpdaterIfRequired(string responseFile)
 {
     if (this._runAPIUpdater)
     {
         APIUpdaterHelper.UpdateScripts(responseFile, this._island.GetExtensionOfSourceFiles());
     }
 }
        protected ManagedProgram StartCompiler(BuildTarget target, string compiler, List <string> arguments, bool setMonoEnvironmentVariables, string monodistro)
        {
            string text = CommandLineFormatter.GenerateResponseFile(arguments);

            if (this.runUpdater)
            {
                APIUpdaterHelper.UpdateScripts(text, this._island.GetExtensionOfSourceFiles());
            }
            ManagedProgram managedProgram = new ManagedProgram(monodistro, this._island._classlib_profile, compiler, " @" + text, setMonoEnvironmentVariables, null);

            managedProgram.Start();
            return(managedProgram);
        }
Exemplo n.º 3
0
        protected void RunAPIUpdaterIfRequired(string responseFile, IList <string> pathMappings)
        {
            if (!_runAPIUpdater)
            {
                return;
            }

            var pathMappingsFilePath = Path.GetTempFileName();

            File.WriteAllLines(pathMappingsFilePath, pathMappings.ToArray());

            APIUpdaterHelper.UpdateScripts(responseFile, _island.GetExtensionOfSourceFiles(), PrepareFileName(pathMappingsFilePath));
        }
        protected ManagedProgram StartCompiler(BuildTarget target, string compiler, List <string> arguments, bool setMonoEnvironmentVariables)
        {
            this.AddCustomResponseFileIfPresent(arguments, Path.GetFileNameWithoutExtension(compiler) + ".rsp");
            string responseFile = CommandLineFormatter.GenerateResponseFile((IEnumerable <string>)arguments);

            if (this.runUpdater)
            {
                APIUpdaterHelper.UpdateScripts(responseFile, this._island.GetExtensionOfSourceFiles());
            }
            ManagedProgram managedProgram = new ManagedProgram(MonoInstallationFinder.GetMonoInstallation(), this._island._classlib_profile, compiler, " @" + responseFile, setMonoEnvironmentVariables);

            managedProgram.Start();
            return(managedProgram);
        }