forked from nbsdx/SimpleJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·18 lines (14 loc) · 1.06 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
mkdir -p examples/bin
mkdir -p test/bin
# Build Examples.
g++ -std=c++11 -static-libstdc++ -static-libgcc -pthread -ldl -I. ./examples/json_example.cpp -o ./examples/bin/json_example
g++ -std=c++11 -static-libstdc++ -static-libgcc -pthread -ldl -I. ./examples/array_example.cpp -o ./examples/bin/array_example
g++ -std=c++11 -static-libstdc++ -static-libgcc -pthread -ldl -I. ./examples/prim_example.cpp -o ./examples/bin/prim_example
g++ -std=c++11 -static-libstdc++ -static-libgcc -pthread -ldl -I. ./examples/init_example.cpp -o ./examples/bin/init_example
g++ -std=c++11 -static-libstdc++ -static-libgcc -pthread -ldl -I. ./examples/load_example.cpp -o ./examples/bin/load_example
g++ -std=c++11 -static-libstdc++ -static-libgcc -pthread -ldl -I. ./examples/iter_example.cpp -o ./examples/bin/iter_example
# Build Test Tool
g++ -std=c++11 -static-libstdc++ -static-libgcc -pthread -ldl -I. ./test/tester.cpp -o ./test/bin/tester
echo "Done. See './examples' for examples, and './examples/bin' for the executables."
echo "To run tests, run cd test; python ./run.py"