Ejemplo n.º 1
0
        // cache the location of SDK tools
        public override void RegisterToolChain()
        {
            if (HTML5SDKInfo.IsSDKInstalled() && HTML5SDKInfo.IsPythonInstalled())
            {
                EMCCPath   = "\"" + HTML5SDKInfo.EmscriptenCompiler() + "\"";
                PythonPath = HTML5SDKInfo.PythonPath();

                // set some environment variable we'll need
                //Environment.SetEnvironmentVariable("EMCC_DEBUG", "cache");
                Environment.SetEnvironmentVariable("EMCC_CORES", "8");
                Environment.SetEnvironmentVariable("EMCC_FORCE_STDLIBS", "1");
                Environment.SetEnvironmentVariable("EMCC_OPTIMIZE_NORMALLY", "1");
                // finally register the toolchain that is now ready to go
                Log.TraceVerbose("        Registered for {0}", CPPTargetPlatform.HTML5.ToString());
                UEToolChain.RegisterPlatformToolChain(CPPTargetPlatform.HTML5, this);
            }
        }