Ver Fonte

Enable parallel build back

rexim há 2 anos atrás
pai
commit
658bb5144a
1 ficheiros alterados com 13 adições e 13 exclusões
  1. 13 13
      build.sh

+ 13 - 13
build.sh

@@ -29,29 +29,29 @@ build_vc_demo() {
 
 
 build_all_vc_demos() {
 build_all_vc_demos() {
     mkdir -p ./build/demos
     mkdir -p ./build/demos
-    build_vc_demo triangle
-    build_vc_demo 3d
-    build_vc_demo squish
-    build_vc_demo triangle3d
-    build_vc_demo triangleTex
-    build_vc_demo triangle3dTex
-    build_vc_demo cup3d
+    build_vc_demo triangle &
+    build_vc_demo 3d &
+    build_vc_demo squish &
+    build_vc_demo triangle3d &
+    build_vc_demo triangleTex &
+    build_vc_demo triangle3dTex &
+    build_vc_demo cup3d &
     wait # TODO: the whole script must fail if one of the jobs fails
     wait # TODO: the whole script must fail if one of the jobs fails
 }
 }
 
 
 build_tools() {
 build_tools() {
     mkdir -p ./build/tools/
     mkdir -p ./build/tools/
-    clang $COMMON_CFLAGS -o ./build/tools/png2c -Ithirdparty ./tools/png2c.c -lm
-    clang $COMMON_CFLAGS -o ./build/tools/obj2c -Ithirdparty ./tools/obj2c.c -lm
-    clang $COMMON_CFLAGS -O2 -o ./build/tools/viewobj ./tools/viewobj.c
+    clang $COMMON_CFLAGS -o ./build/tools/png2c -Ithirdparty ./tools/png2c.c -lm &
+    clang $COMMON_CFLAGS -o ./build/tools/obj2c -Ithirdparty ./tools/obj2c.c -lm &
+    clang $COMMON_CFLAGS -O2 -o ./build/tools/viewobj ./tools/viewobj.c &
     wait # TODO: the whole script must fail if one of the jobs fails
     wait # TODO: the whole script must fail if one of the jobs fails
 }
 }
 
 
 build_assets() {
 build_assets() {
     mkdir -p ./build/assets/
     mkdir -p ./build/assets/
-    ./build/tools/png2c -n tsodinPog -o ./build/assets/tsodinPog.c ./assets/tsodinPog.png
-    ./build/tools/png2c -n Sadge -o ./build/assets/Sadge.c ./assets/Sadge.png
-    ./build/tools/obj2c ./assets/tsodinCupLowPoly.obj ./build/assets/tsodinCupLowPoly.c
+    ./build/tools/png2c -n tsodinPog -o ./build/assets/tsodinPog.c ./assets/tsodinPog.png &
+    ./build/tools/png2c -n Sadge -o ./build/assets/Sadge.c ./assets/Sadge.png &
+    ./build/tools/obj2c ./assets/tsodinCupLowPoly.obj ./build/assets/tsodinCupLowPoly.c &
     wait # TODO: the whole script must fail if one of the jobs fails
     wait # TODO: the whole script must fail if one of the jobs fails
 }
 }