Bläddra i källkod

Use windows subsystem for managed executables in release builds

Josh Engebretson 9 år sedan
förälder
incheckning
b3a7ee5446
1 ändrade filer med 17 tillägg och 1 borttagningar
  1. 17 1
      Source/ToolCore/NETTools/NETProjectGen.cpp

+ 17 - 1
Source/ToolCore/NETTools/NETProjectGen.cpp

@@ -836,7 +836,23 @@ namespace ToolCore
 
         // OutputType
         XMLElement outputType = pgroup.CreateChild("OutputType");
-        outputType.SetValue(outputType_);
+
+		String oType = outputType_;
+
+#ifdef ATOMIC_PLATFORM_WINDOWS
+#ifndef ATOMIC_DEBUG
+
+		if (oType.ToLower() == "exe") 
+		{
+			// use windows subsystem for release builds
+			// TODO: make this an option in the json?
+			oType = "WinExe";
+		}
+
+#endif
+#endif
+
+        outputType.SetValue(oType);
 
         pgroup.CreateChild("AppDesignerFolder").SetValue("Properties");