mirror of
https://github.com/vxcontrol/lualibs-lanes.git
synced 2026-07-01 10:03:33 -04:00
add support for vxbuild-cross build system
This commit is contained in:
Executable
BIN
Binary file not shown.
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.
Binary file not shown.
Executable
+1
@@ -0,0 +1 @@
|
||||
P=linux32 C="-m32 -fPIC" L="-m32 -s -static-libgcc -pthread" D=core.so A=liblanes_core.a ./build.sh
|
||||
@@ -1 +1 @@
|
||||
P=linux64 C=-fPIC L="-s -static-libgcc -pthread" D=core.so A=liblanes_core.a ./build.sh
|
||||
P=linux64 C="-fPIC" L="-s -static-libgcc -pthread" D=core.so A=liblanes_core.a ./build.sh
|
||||
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
[ `uname` = Linux ] && { export X=i686-w64-mingw32-; }
|
||||
P=mingw32 C="-DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -fPIC" \
|
||||
L="-s -static-libgcc ../../bin/$P/luajit.a" D=core.dll A=lanes_core.a ./build.sh
|
||||
@@ -1,2 +1,3 @@
|
||||
P=mingw64 C="-DWINVER=0x0501 -D_WIN32_WINNT=0x0501" \
|
||||
L="-s -static-libgcc -llua51" D=core.dll A=lanes_core.a ./build.sh
|
||||
[ `uname` = Linux ] && { export X=x86_64-w64-mingw32-; }
|
||||
P=mingw64 C="-DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -fPIC" \
|
||||
L="-s -static-libgcc ../../bin/$P/luajit.a" D=core.dll A=lanes_core.a ./build.sh
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
[ `uname` = Linux ] && export X=x86_64-apple-darwin11-
|
||||
P=osx64 C="-arch x86_64" L="-arch x86_64 -undefined dynamic_lookup" \
|
||||
[ `uname` = Linux ] && { export X=x86_64-apple-darwin19-; export CC=clang; }
|
||||
P=osx64 C="-arch x86_64 -fPIC" L="-arch x86_64 -undefined dynamic_lookup" \
|
||||
D=core.so A=liblanes_core.a ./build.sh
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
[ "$CC" ] || CC=gcc
|
||||
mkdir -p ../../bin/$P/clib/lanes
|
||||
${X}gcc -c -O2 $C src/*.c -I../lua-headers -DNDEBUG
|
||||
${X}gcc *.o -shared -o ../../bin/$P/clib/lanes/$D -L../../bin/$P $L
|
||||
${X}${CC} -c -O2 $C src/*.c -I../lua-headers -DNDEBUG
|
||||
${X}${CC} *.o -shared -o ../../bin/$P/clib/lanes/$D -L../../bin/$P $L
|
||||
rm -f ../../bin/$P/$A
|
||||
${X}ar rcs ../../bin/$P/$A *.o
|
||||
rm *.o
|
||||
|
||||
Reference in New Issue
Block a user