Bläddra i källkod

Added asmjs postbuild step.

Branimir Karadžić 11 år sedan
förälder
incheckning
54774915ab
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      premake/toolchain.lua

+ 6 - 0
premake/toolchain.lua

@@ -705,5 +705,11 @@ function strip()
 			"@" .. naclToolchain .. "strip -s \"$(TARGET)\""
 		}
 
+	configuration { "asmjs" }
+		postbuildcommands {
+			"@echo Running asmjs finalize.",
+			"@$(EMSCRIPTEN)/emcc -O2 \"$(TARGET)\" -o \"$(TARGET)\".html"
+		}
+
 	configuration {} -- reset configuration
 end