-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.pepper
More file actions
executable file
·27 lines (27 loc) · 917 Bytes
/
Copy pathsetup.pepper
File metadata and controls
executable file
·27 lines (27 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash -v
cd
mkdir nacl
cd nacl
wget http://build.chromium.org/buildbot/nacl_archive/nacl_new_sdk/naclsdk_linux.tgz
echo export NACL_SDK=`pwd`/`tar -tzf naclsdk_linux.tgz | head -n 1 | tr -d /` > naclvars
echo export 'PATH=$NACL_SDK/toolchain/linux_x86/bin:$PATH' >> naclvars
source naclvars
tar -zxvf naclsdk_linux.tgz
mkdir esidl
cd esidl
svn checkout http://es-operating-system.googlecode.com/svn/trunk/esidl src
mkdir obj
cd obj
../src/configure --prefix=$NACL_SDK/toolchain/linux_x86 --disable-java --disable-cplusplus --disable-npapi
make
make install
cd ..
mkdir nacl
cd nacl
CXXFLAGS='-fno-rtti -fno-exceptions' ../src/configure --prefix=$NACL_SDK/toolchain/linux_x86 --htmldir=$NACL_SDK/../esidl/examples --disable-java --host=nacl --target=nacl
make
make install
cd ../examples
python -m CGIHTTPServer &
/opt/google/chrome/google-chrome --enable-nacl --enable-webgl http://localhost:8000/
kill %python