protected override NativeProgramFormat GetExecutableFormatForConfig(DotsConfiguration config, bool enableManagedDebugger) { var format = new EmscriptenExecutableFormat(ToolChain, "html"); switch (config) { case DotsConfiguration.Debug: return(format.WithLinkerSetting <EmscriptenDynamicLinker>(d => TinyEmscripten.ConfigureEmscriptenLinkerFor(d, "debug", enableManagedDebugger))); case DotsConfiguration.Develop: return(format.WithLinkerSetting <EmscriptenDynamicLinker>(d => TinyEmscripten.ConfigureEmscriptenLinkerFor(d, "develop", enableManagedDebugger))); case DotsConfiguration.Release: return(format.WithLinkerSetting <EmscriptenDynamicLinker>(d => TinyEmscripten.ConfigureEmscriptenLinkerFor(d, "release", enableManagedDebugger))); default: throw new NotImplementedException("Unknown config: " + config); } }
public DotsRuntimeCSharpProgramConfiguration( CSharpCodeGen csharpCodegen, CodeGen cppCodegen, ToolChain nativeToolchain, ScriptingBackend scriptingBackend, TargetFramework targetFramework, string identifier, bool enableUnityCollectionsChecks, bool enableManagedDebugging, bool waitForManagedDebugger, bool multiThreadedJobs, DotsConfiguration dotsConfiguration, bool enableProfiler, bool useBurst, IEnumerable <string> defines = null, NPath finalOutputDirectory = null) : base( csharpCodegen, null, DebugFormat.PortablePdb, nativeToolchain.Architecture is IntelArchitecture ? nativeToolchain.Architecture : null) { NativeProgramConfiguration = new DotsRuntimeNativeProgramConfiguration( cppCodegen, nativeToolchain, identifier, this); _identifier = identifier; EnableUnityCollectionsChecks = enableUnityCollectionsChecks; DotsConfiguration = dotsConfiguration; MultiThreadedJobs = multiThreadedJobs; EnableProfiler = enableProfiler; UseBurst = useBurst; EnableManagedDebugging = enableManagedDebugging; WaitForManagedDebugger = waitForManagedDebugger; ScriptingBackend = scriptingBackend; TargetFramework = targetFramework; Defines = defines?.ToList(); FinalOutputDirectory = finalOutputDirectory; }
protected virtual NativeProgramFormat GetExecutableFormatForConfig(DotsConfiguration config) => null;
protected virtual NativeProgramFormat GetExecutableFormatForConfig(DotsConfiguration config, bool enableManagedDebugger) => null;
public void SetAppPackagingParameters(String gameName, DotsConfiguration config) { m_gameName = gameName; m_config = config; }
protected override NativeProgramFormat GetExecutableFormatForConfig(DotsConfiguration config, bool enableManagedDebugger) { return(new AndroidApkMainModuleFormat(ToolChain as AndroidApkToolchain)); }