| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
curl -OL https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip |
| 4 |
unzip -q ninja-mac.zip |
| 5 |
chmod +x ninja |
| 6 |
export PATH="$PWD:$PATH" |
| 7 |
|
| 8 |
# FIXME: kokoro machines have node and npm but currently they are symlinked to non-existent files |
| 9 |
# npm install -g typescript |
| 10 |
|
| 11 |
# Install emscripten. |
| 12 |
curl -L https://github.com/emscripten-core/emsdk/archive/2.0.17.zip > emsdk.zip |
| 13 |
unzip emsdk.zip ; mv emsdk-* emsdk ; cd emsdk |
| 14 |
./emsdk install latest |
| 15 |
./emsdk activate latest |
| 16 |
source ./emsdk_env.sh |
| 17 |
|
| 18 |
export EMSDK="$PWD" |
| 19 |
cd .. |