diff options
Diffstat (limited to 'build-macos.sh')
-rwxr-xr-x | build-macos.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build-macos.sh b/build-macos.sh new file mode 100755 index 0000000..ecaced0 --- /dev/null +++ b/build-macos.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +g++ ./spinning_cube.c ./hello.cc \ + -shared -o libppapi_hello.so \ + -I$DIR/nacl_sdk/pepper_49/include \ + -L$DIR/nacl_sdk/pepper_49/lib/mac_host/Release \ + -lppapi_cpp \ + -lppapi \ + -lppapi_simple \ + -lpthread \ + -lm \ + -lppapi_gles2 \ + -Wall -fPIC |