Prechádzať zdrojové kódy

Added NACL-ARM target.

bkaradzic 13 rokov pred
rodič
commit
a0bc7e3711

+ 8 - 0
makefile

@@ -7,6 +7,7 @@ all:
 	premake --file=premake/premake4.lua vs2008
 	premake --file=premake/premake4.lua vs2008
 	premake --file=premake/premake4.lua vs2010
 	premake --file=premake/premake4.lua vs2010
 	premake --file=premake/premake4.lua --gcc=nacl gmake
 	premake --file=premake/premake4.lua --gcc=nacl gmake
+	premake --file=premake/premake4.lua --gcc=nacl-arm gmake
 	premake --file=premake/premake4.lua --gcc=pnacl gmake
 	premake --file=premake/premake4.lua --gcc=pnacl gmake
 	premake --file=premake/premake4.lua --gcc=mingw gmake
 	premake --file=premake/premake4.lua --gcc=mingw gmake
 	premake --file=premake/premake4.lua --gcc=linux gmake
 	premake --file=premake/premake4.lua --gcc=linux gmake
@@ -55,10 +56,17 @@ nacl-release64:
 	make -R -C .build/projects/gmake-nacl config=release64
 	make -R -C .build/projects/gmake-nacl config=release64
 nacl: nacl-debug32 nacl-release32 nacl-debug64 nacl-release64
 nacl: nacl-debug32 nacl-release32 nacl-debug64 nacl-release64
 
 
+nacl-arm-debug32:
+	make -R -C .build/projects/gmake-nacl-arm config=debug32
+nacl-arm-release32:
+	make -R -C .build/projects/gmake-nacl-arm config=release32
+nacl-arm: nacl-arm-debug32 nacl-arm-release32
+
 pnacl-debug:
 pnacl-debug:
 	make -R -C .build/projects/gmake-pnacl config=debug64
 	make -R -C .build/projects/gmake-pnacl config=debug64
 pnacl-release:
 pnacl-release:
 	make -R -C .build/projects/gmake-pnacl config=release64
 	make -R -C .build/projects/gmake-pnacl config=release64
+pnacl: pnacl-debug pnacl-release
 
 
 osx-debug32:
 osx-debug32:
 	make -C .build/projects/gmake-osx config=debug32
 	make -C .build/projects/gmake-osx config=debug32

+ 6 - 1
premake/example-00-helloworld.lua

@@ -21,8 +21,13 @@ project "example-00-helloworld"
 	configuration { "emscripten" }
 	configuration { "emscripten" }
 		targetextension ".bc"
 		targetextension ".bc"
 
 
-	configuration { "nacl" }
+	configuration { "nacl or nacl-arm or pnacl" }
 		targetextension ".nexe"
 		targetextension ".nexe"
+		links {
+			"ppapi",
+			"ppapi_gles2",
+			"pthread",
+		}
 
 
 	configuration { "nacl", "Release" }
 	configuration { "nacl", "Release" }
 		postbuildcommands {
 		postbuildcommands {

+ 6 - 1
premake/example-01-cubes.lua

@@ -23,8 +23,13 @@ project "example-01-cubes"
 	configuration { "emscripten" }
 	configuration { "emscripten" }
 		targetextension ".bc"
 		targetextension ".bc"
 
 
-	configuration { "nacl" }
+	configuration { "nacl or nacl-arm or pnacl" }
 		targetextension ".nexe"
 		targetextension ".nexe"
+		links {
+			"ppapi",
+			"ppapi_gles2",
+			"pthread",
+		}
 
 
 	configuration { "nacl", "Release" }
 	configuration { "nacl", "Release" }
 		postbuildcommands {
 		postbuildcommands {

+ 6 - 1
premake/example-02-metaballs.lua

@@ -23,8 +23,13 @@ project "example-02-metaballs"
 	configuration { "emscripten" }
 	configuration { "emscripten" }
 		targetextension ".bc"
 		targetextension ".bc"
 
 
-	configuration { "nacl" }
+	configuration { "nacl or nacl-arm or pnacl" }
 		targetextension ".nexe"
 		targetextension ".nexe"
+		links {
+			"ppapi",
+			"ppapi_gles2",
+			"pthread",
+		}
 
 
 	configuration { "nacl", "Release" }
 	configuration { "nacl", "Release" }
 		postbuildcommands {
 		postbuildcommands {

+ 6 - 1
premake/example-03-raymarch.lua

@@ -23,8 +23,13 @@ project "example-03-raymarch"
 	configuration { "emscripten" }
 	configuration { "emscripten" }
 		targetextension ".bc"
 		targetextension ".bc"
 
 
-	configuration { "nacl" }
+	configuration { "nacl or nacl-arm or pnacl" }
 		targetextension ".nexe"
 		targetextension ".nexe"
+		links {
+			"ppapi",
+			"ppapi_gles2",
+			"pthread",
+		}
 
 
 	configuration { "nacl", "Release" }
 	configuration { "nacl", "Release" }
 		postbuildcommands {
 		postbuildcommands {

+ 6 - 1
premake/example-04-mesh.lua

@@ -23,8 +23,13 @@ project "example-04-mesh"
 	configuration { "emscripten" }
 	configuration { "emscripten" }
 		targetextension ".bc"
 		targetextension ".bc"
 
 
-	configuration { "nacl" }
+	configuration { "nacl or nacl-arm or pnacl" }
 		targetextension ".nexe"
 		targetextension ".nexe"
+		links {
+			"ppapi",
+			"ppapi_gles2",
+			"pthread",
+		}
 
 
 	configuration { "nacl", "Release" }
 	configuration { "nacl", "Release" }
 		postbuildcommands {
 		postbuildcommands {

+ 6 - 1
premake/example-05-instancing.lua

@@ -23,8 +23,13 @@ project "example-05-instancing"
 	configuration { "emscripten" }
 	configuration { "emscripten" }
 		targetextension ".bc"
 		targetextension ".bc"
 
 
-	configuration { "nacl" }
+	configuration { "nacl or nacl-arm or pnacl" }
 		targetextension ".nexe"
 		targetextension ".nexe"
+		links {
+			"ppapi",
+			"ppapi_gles2",
+			"pthread",
+		}
 
 
 	configuration { "nacl", "Release" }
 	configuration { "nacl", "Release" }
 		postbuildcommands {
 		postbuildcommands {

+ 6 - 1
premake/example-06-bump.lua

@@ -20,8 +20,13 @@ project "example-06-bump"
 		"bgfx",
 		"bgfx",
 	}
 	}
 
 
-	configuration { "nacl" }
+	configuration { "nacl or nacl-arm or pnacl" }
 		targetextension ".nexe"
 		targetextension ".nexe"
+		links {
+			"ppapi",
+			"ppapi_gles2",
+			"pthread",
+		}
 
 
 	configuration { "nacl", "Release" }
 	configuration { "nacl", "Release" }
 		postbuildcommands {
 		postbuildcommands {

+ 6 - 1
premake/example-07-callback.lua

@@ -20,8 +20,13 @@ project "example-07-callback"
 		"bgfx",
 		"bgfx",
 	}
 	}
 
 
-	configuration { "nacl" }
+	configuration { "nacl or nacl-arm or pnacl" }
 		targetextension ".nexe"
 		targetextension ".nexe"
+		links {
+			"ppapi",
+			"ppapi_gles2",
+			"pthread",
+		}
 
 
 	configuration { "nacl", "Release" }
 	configuration { "nacl", "Release" }
 		postbuildcommands {
 		postbuildcommands {

+ 6 - 1
premake/example-08-update.lua

@@ -23,8 +23,13 @@ project "example-08-update"
 	configuration { "emscripten" }
 	configuration { "emscripten" }
 		targetextension ".bc"
 		targetextension ".bc"
 
 
-	configuration { "nacl" }
+	configuration { "nacl or nacl-arm or pnacl" }
 		targetextension ".nexe"
 		targetextension ".nexe"
+		links {
+			"ppapi",
+			"ppapi_gles2",
+			"pthread",
+		}
 
 
 	configuration { "nacl", "Release" }
 	configuration { "nacl", "Release" }
 		postbuildcommands {
 		postbuildcommands {

+ 4 - 4
premake/premake4.lua

@@ -29,10 +29,6 @@ function copyLib()
 end
 end
 
 
 dofile "bgfx.lua"
 dofile "bgfx.lua"
-dofile "makedisttex.lua"
-dofile "shaderc.lua"
-dofile "texturec.lua"
-dofile "geometryc.lua"
 dofile "example-00-helloworld.lua"
 dofile "example-00-helloworld.lua"
 dofile "example-01-cubes.lua"
 dofile "example-01-cubes.lua"
 dofile "example-02-metaballs.lua"
 dofile "example-02-metaballs.lua"
@@ -42,3 +38,7 @@ dofile "example-05-instancing.lua"
 dofile "example-06-bump.lua"
 dofile "example-06-bump.lua"
 dofile "example-07-callback.lua"
 dofile "example-07-callback.lua"
 dofile "example-08-update.lua"
 dofile "example-08-update.lua"
+dofile "makedisttex.lua"
+dofile "shaderc.lua"
+dofile "texturec.lua"
+dofile "geometryc.lua"