aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2022-06-04 09:43:44 +1000
committeronefang2022-06-04 09:43:44 +1000
commit368cfdabbb197875b2c4569e118815a56616558e (patch)
tree275bab06611df7b6219279162546277a6d4b0632
parentMove save i/oar to before gitar. (diff)
downloadopensim-SC-368cfdabbb197875b2c4569e118815a56616558e.zip
opensim-SC-368cfdabbb197875b2c4569e118815a56616558e.tar.gz
opensim-SC-368cfdabbb197875b2c4569e118815a56616558e.tar.bz2
opensim-SC-368cfdabbb197875b2c4569e118815a56616558e.tar.xz
Add the json builder and parser libaries.
-rwxr-xr-xsrc/BuildIt.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/BuildIt.sh b/src/BuildIt.sh
index 18f9818..883aa3b 100755
--- a/src/BuildIt.sh
+++ b/src/BuildIt.sh
@@ -29,6 +29,34 @@ fi
29echo "" 29echo ""
30echo "" 30echo ""
31 31
32if [ ! -d git-sub-modules/json-builder ]; then
33 pushd git-sub-modules >/dev/null
34 git clone https://github.com/json-parser/json-builder.git
35 popd >/dev/null
36else
37 pushd git-sub-modules/json-builder >/dev/null
38 echo "Updating json-builder."
39# git pull
40 popd >/dev/null
41fi
42
43echo ""
44echo ""
45
46if [ ! -d git-sub-modules/json-parser ]; then
47 pushd git-sub-modules >/dev/null
48 git clone https://github.com/json-parser/json-parser.git
49 popd >/dev/null
50else
51 pushd git-sub-modules/json-parser >/dev/null
52 echo "Updating json-parser."
53# git pull
54 popd >/dev/null
55fi
56
57echo ""
58echo ""
59
32if [ ! -d git-sub-modules/luajit ]; then 60if [ ! -d git-sub-modules/luajit ]; then
33 pushd git-sub-modules >/dev/null 61 pushd git-sub-modules >/dev/null
34 git clone https://luajit.org/git/luajit-2.0.git 62 git clone https://luajit.org/git/luajit-2.0.git
@@ -108,9 +136,14 @@ if [ ! -d build/toybox ]; then
108 ln -fs ../toys/sledjchisl/fcgi_SC.h build/toybox/lib 136 ln -fs ../toys/sledjchisl/fcgi_SC.h build/toybox/lib
109 ln -fs ../toys/boxes/handlekeys.c build/toybox/lib 137 ln -fs ../toys/boxes/handlekeys.c build/toybox/lib
110 ln -fs ../toys/boxes/handlekeys.h build/toybox/lib 138 ln -fs ../toys/boxes/handlekeys.h build/toybox/lib
139 ln -fs ../../../git-sub-modules/json-builder/json-builder.c build/toybox/lib
140 ln -fs ../../../git-sub-modules/json-builder/json-builder.h build/toybox/lib
141 ln -fs ../../../git-sub-modules/json-parser/json.c build/toybox/lib
142 ln -fs ../../../git-sub-modules/json-parser/json.h build/toybox/lib
111 143
112 pushd build/toybox >/dev/null 144 pushd build/toybox >/dev/null
113 sed -e "s/strend(/tb_strend(/g" -i lib/lib.h 145 sed -e "s/strend(/tb_strend(/g" -i lib/lib.h
146 sed -e 's/<json.h>/"json.h"/g' -i lib/json-builder.h
114 find ./ -type f -name "*.c" -exec sed -e "s/strend(/tb_strend(/g" -i {} \; 147 find ./ -type f -name "*.c" -exec sed -e "s/strend(/tb_strend(/g" -i {} \;
115 make clean 148 make clean
116 #make defconfig 149 #make defconfig