public static string EmscriptenVersion() { string BaseSDKPath = HTML5SDKInfo.EmscriptenSDKPath(); string VersionInfo = File.ReadAllText(Path.Combine(BaseSDKPath, "emscripten-version.txt")); VersionInfo = VersionInfo.Trim(); return(VersionInfo); }
static string GetLinkArguments(LinkEnvironment LinkEnvironment) { string Result = GetSharedArguments_Global(LinkEnvironment.Config.Target.Configuration, LinkEnvironment.Config.Target.Architecture); if (LinkEnvironment.Config.Target.Architecture != "-win32") { // enable verbose mode Result += " -v"; if (LinkEnvironment.Config.Target.Configuration == CPPTargetConfiguration.Debug) { // check for alignment/etc checking //Result += " -s SAFE_HEAP=1"; //Result += " -s CHECK_HEAP_ALIGN=1"; //Result += " -s SAFE_DYNCALLS=1"; // enable assertions in non-Shipping/Release builds Result += " -s ASSERTIONS=1"; } if (LinkEnvironment.Config.Target.Configuration == CPPTargetConfiguration.Debug) { Result += " -O0"; } if (LinkEnvironment.Config.Target.Configuration == CPPTargetConfiguration.Debug || LinkEnvironment.Config.Target.Configuration == CPPTargetConfiguration.Development) { Result += " -s GL_ASSERTIONS=1 "; } if (LinkEnvironment.Config.Target.Configuration == CPPTargetConfiguration.Development) { Result += " -O2 -s ASM_JS=1 -s OUTLINING_LIMIT=110000 -g2 "; } if (LinkEnvironment.Config.Target.Configuration == CPPTargetConfiguration.Shipping) { Result += " -O3 -s ASM_JS=1 -s OUTLINING_LIMIT=40000"; } Result += " -s CASE_INSENSITIVE_FS=1 "; string BaseSDKPath = HTML5SDKInfo.EmscriptenSDKPath(); Result += " --js-library \"" + BaseSDKPath + "/Src/library_openal.js\" "; } return(Result); }
static string GetVersionInfoPath() { string BaseSDKPath = HTML5SDKInfo.EmscriptenSDKPath(); return(Path.Combine(BaseSDKPath, "emscripten-version.txt")); }