mirror of
https://github.com/vxcontrol/lualibs-cjson.git
synced 2026-07-01 15:47:55 -04:00
add support for vxbuild-cross build system
This commit is contained in:
Executable
BIN
Binary file not shown.
Binary file not shown.
Regular → Executable
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
BIN
Binary file not shown.
Binary file not shown.
Regular → Executable
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
+1
@@ -0,0 +1 @@
|
||||
P=linux32 C="-m32 -fPIC" L="-m32 -s -static-libgcc" D=cjson.so A=libcjson.a ./build.sh
|
||||
@@ -1 +1 @@
|
||||
P=linux64 C=-fPIC L="-s -static-libgcc" D=cjson.so A=libcjson.a ./build.sh
|
||||
P=linux64 C="-fPIC" L="-s -static-libgcc" D=cjson.so A=libcjson.a ./build.sh
|
||||
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
[ `uname` = Linux ] && { export X=i686-w64-mingw32-; }
|
||||
P=mingw32 D=cjson.dll A=cjson.a \
|
||||
C="-fPIC" L="-s -static-libgcc ../../bin/$P/luajit.a" ./build.sh
|
||||
@@ -1,2 +1,3 @@
|
||||
[ `uname` = Linux ] && { export X=x86_64-w64-mingw32-; }
|
||||
P=mingw64 D=cjson.dll A=cjson.a \
|
||||
L="-s -static-libgcc -L../../bin/mingw64 -llua51" ./build.sh
|
||||
C="-fPIC" L="-s -static-libgcc ../../bin/$P/luajit.a" ./build.sh
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
[ `uname` = Linux ] && export X=x86_64-apple-darwin11-
|
||||
P=osx64 D=cjson.so A=libcjson.a C="-arch x86_64" \
|
||||
L="-arch x86_64 -undefined dynamic_lookup -Wno-static-in-inline" ./build.sh
|
||||
[ `uname` = Linux ] && { export X=x86_64-apple-darwin19-; export CC=clang; }
|
||||
P=osx64 D=cjson.so A=libcjson.a C="-arch x86_64 -fPIC" \
|
||||
L="-arch x86_64 -static -undefined dynamic_lookup -Wno-static-in-inline" ./build.sh
|
||||
|
||||
+4
-2
@@ -1,6 +1,8 @@
|
||||
${X}gcc -c -O2 $C strbuf.c lua_cjson.c fpconv.c -I../lua-headers \
|
||||
[ "$CC" ] || CC=gcc
|
||||
mkdir -p ../../bin/$P/clib
|
||||
${X}${CC} -c -O2 $C strbuf.c lua_cjson.c fpconv.c -I../lua-headers \
|
||||
-Wall -pedantic -DDISABLE_INVALID_NUMBERS
|
||||
${X}gcc *.o -shared -o ../../bin/$P/clib/$D $L
|
||||
${X}${CC} *.o -shared -o ../../bin/$P/clib/$D $L
|
||||
rm -f ../../bin/$P/$A
|
||||
${X}ar rcs ../../bin/$P/$A *.o
|
||||
rm *.o
|
||||
|
||||
@@ -160,7 +160,7 @@ static const char *char2escape[256] = {
|
||||
"\\u0018", "\\u0019", "\\u001a", "\\u001b",
|
||||
"\\u001c", "\\u001d", "\\u001e", "\\u001f",
|
||||
NULL, NULL, "\\\"", NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, "\\/",
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
|
||||
Reference in New Issue
Block a user