| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Build script to build all components for Native Client. | 2 # Build script to build all components for Native Client. |
| 3 # | 3 # |
| 4 # By default this script will only build debug versions. | 4 # By default this script will only build debug versions. |
| 5 # Pass "all" as an argument to build clean and also build | 5 # Pass "all" as an argument to build clean and also build |
| 6 # release config. | 6 # release config. |
| 7 # | 7 # |
| 8 # Before running this script you need to set NACL_SDK_ROOT | 8 # Before running this script you need to set NACL_SDK_ROOT |
| 9 # and add the NaCl compiler bin folder to your path. | 9 # and add the NaCl compiler bin folder to your path. |
| 10 # | 10 # |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 mkdir -p $OUTPUT_RELEASE | 32 mkdir -p $OUTPUT_RELEASE |
| 33 | 33 |
| 34 export MAKEFLAGS="-j10 PLATFORM=nacl" | 34 export MAKEFLAGS="-j10 PLATFORM=nacl" |
| 35 | 35 |
| 36 if [ "$1" = "clean" ]; then | 36 if [ "$1" = "clean" ]; then |
| 37 make DEBUG=1 clean | 37 make DEBUG=1 clean |
| 38 make DEBUG=0 clean | 38 make DEBUG=0 clean |
| 39 exit 0 | 39 exit 0 |
| 40 fi | 40 fi |
| 41 | 41 |
| 42 make NACL_ARCH=x86_64 DEBUG=1 all | 42 make NACL_ARCH=x86_64 DEBUG=1 $* |
| 43 make NACL_ARCH=x86_64 DEBUG=0 all | 43 make NACL_ARCH=x86_64 DEBUG=0 $* |
| 44 | 44 |
| 45 make NACL_ARCH=i686 DEBUG=1 all | 45 make NACL_ARCH=i686 DEBUG=1 $* |
| 46 make NACL_ARCH=i686 DEBUG=0 all | 46 make NACL_ARCH=i686 DEBUG=0 $* |
| 47 | 47 |
| 48 make NACL_ARCH=arm DEBUG=1 all | 48 if [ "${NACL_GLIBC:-}" != "1" ]; then |
| 49 make NACL_ARCH=arm DEBUG=0 all | 49 make NACL_ARCH=arm DEBUG=1 $* |
| 50 make NACL_ARCH=arm DEBUG=0 $* |
| 51 fi |
| OLD | NEW |