GetCSharpCompiler() static private method

static private GetCSharpCompiler ( BuildTarget targetPlatform, bool buildingForEditor, string assemblyName ) : CSharpCompiler
targetPlatform BuildTarget
buildingForEditor bool
assemblyName string
return CSharpCompiler
コード例 #1
0
        public override ScriptCompilerBase CreateCompiler(MonoIsland island, bool buildingForEditor, BuildTarget targetPlatform, bool runUpdater)
        {
            switch (CSharpLanguage.GetCSharpCompiler(targetPlatform, buildingForEditor, island._output))
            {
            case CSharpCompiler.Microsoft:
                return((ScriptCompilerBase) new MicrosoftCSharpCompiler(island, runUpdater));

            default:
                return((ScriptCompilerBase) new MonoCSharpCompiler(island, runUpdater));
            }
        }
コード例 #2
0
        public override ScriptCompilerBase CreateCompiler(MonoIsland island, bool buildingForEditor, BuildTarget targetPlatform, bool runUpdater)
        {
            CSharpCompiler cSharpCompiler = CSharpLanguage.GetCSharpCompiler(targetPlatform, buildingForEditor, island._output);

            if (cSharpCompiler != CSharpCompiler.Mono)
            {
                if (cSharpCompiler == CSharpCompiler.Microsoft)
                {
                    return(new MicrosoftCSharpCompiler(island, runUpdater));
                }
            }
            return(new MonoCSharpCompiler(island, runUpdater));
        }