-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·21 lines (15 loc) · 841 Bytes
/
build.sh
File metadata and controls
executable file
·21 lines (15 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#Simple build with system SDL2
#Build v8 if not yet
if [ ! -e "v8" ]; then
./build_v8.sh
fi
gcc tools/bin2c.c -o bin2c
./bin2c ./v8/out/x64.release/natives_blob.bin natives_blob.c v8_natives_blob
./bin2c ./v8/out/x64.release/snapshot_blob.bin snapshot_blob.c v8_snapshot_blob
#g++ -static-libstdc++ -O2 -std=c++11 -I"v8/include" main.cc -o pixelscript -Wl,--start-group \
#v8/out/x64.release/obj.target/{tools/gyp/libv8_{base,libbase,external_snapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a -Wl,--end-group \
#-lrt -ldl -pthread -lSDL2
g++ -static-libstdc++ -O2 -std=c++11 -I"v8/include" main.cc -o pixelscript -Wl,--start-group \
v8/out/x64.release/obj.target/src/{libv8_{base,libbase,external_snapshot,libplatform},/../third_party/icu/libicu{uc,i18n,data}}.a -Wl,--end-group \
-lrt -ldl -pthread -lSDL2