diff options
author | Evgeny Zinoviev <me@ch1p.com> | 2018-09-05 21:46:55 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.com> | 2018-09-05 21:46:55 +0300 |
commit | 9fcc074af39f0c88313179eacc3b2a8dd32e94f3 (patch) | |
tree | d7422e669f584414f2d9274745206141fb93272d /build-win.sh |
initial
Diffstat (limited to 'build-win.sh')
-rwxr-xr-x | build-win.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/build-win.sh b/build-win.sh new file mode 100755 index 0000000..caa1ed0 --- /dev/null +++ b/build-win.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +CC=$DIR/nacl_sdk/pepper_49/toolchain/win_x86_glibc/bin/x86_64-nacl-g++.exe + +cd $DIR + +$CC spinning_cube.c hello.cc \ + -shared -o libppapi_hello.ldd \ + -I$DIR/nacl_sdk/pepper_49/include \ + -L$DIR/nacl_sdk/pepper_49/lib/win_x86_64_host/Release \ + -lppapi_cpp \ + -lppapi \ + -lppapi_simple \ + -lpthread \ + -lm \ + -lppapi_gles2 \ + -Wall -fPIC |