Skip to content

Commit

Permalink
Updated build scripts to build all components when all parameter is…
Browse files Browse the repository at this point in the history
… specified (#260).
  • Loading branch information
pkulchenko committed Aug 23, 2016
1 parent 75c40dd commit 45628ad
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,16 @@ WXLUABUILD="MinSizeRel"
for ARG in "$@"; do
case $ARG in
5.2)
BUILD_LUA=true
BUILD_52=true
;;
5.3)
BUILD_LUA=true
BUILD_53=true
BUILD_FLAGS="$BUILD_FLAGS -DLUA_COMPAT_APIINTCASTS"
;;
jit)
BUILD_LUA=true
BUILD_JIT=true
;;
wxwidgets)
Expand Down Expand Up @@ -102,6 +105,9 @@ for ARG in "$@"; do
BUILD_LUA=true
BUILD_WXLUA=true
BUILD_LUASOCKET=true
BUILD_LUASEC=true
BUILD_LFS=true
BUILD_LPEG=true
;;
*)
echo "Error: invalid argument $ARG"
Expand Down Expand Up @@ -240,10 +246,10 @@ if [ $BUILD_LUASOCKET ]; then
unzip "$LUASOCKET_FILENAME"
cd "$LUASOCKET_BASENAME"
mkdir -p "$INSTALL_DIR/lib/lua/$LUAV/"{mime,socket}
gcc $BUILD_FLAGS -o "$INSTALL_DIR/lib/lua/$LUAV/mime/core.so" src/mime.c -llua \
gcc $BUILD_FLAGS -o "$INSTALL_DIR/lib/lua/$LUAV/mime/core.so" src/mime.c \
|| { echo "Error: failed to build LuaSocket"; exit 1; }
gcc $BUILD_FLAGS -o "$INSTALL_DIR/lib/lua/$LUAV/socket/core.so" \
src/{auxiliar.c,buffer.c,except.c,inet.c,io.c,luasocket.c,options.c,select.c,tcp.c,timeout.c,udp.c,usocket.c} -llua \
src/{auxiliar.c,buffer.c,except.c,inet.c,io.c,luasocket.c,options.c,select.c,tcp.c,timeout.c,udp.c,usocket.c} \
|| { echo "Error: failed to build LuaSocket"; exit 1; }
mkdir -p "$INSTALL_DIR/share/lua/$LUAV/socket"
cp src/{ftp.lua,http.lua,smtp.lua,tp.lua,url.lua} "$INSTALL_DIR/share/lua/$LUAV/socket"
Expand Down
6 changes: 6 additions & 0 deletions build/build-macosx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,16 @@ WXLUABUILD="MinSizeRel"
for ARG in "$@"; do
case $ARG in
5.2)
BUILD_LUA=true
BUILD_52=true
;;
5.3)
BUILD_LUA=true
BUILD_53=true
BUILD_FLAGS="$BUILD_FLAGS -DLUA_COMPAT_APIINTCASTS"
;;
jit)
BUILD_LUA=true
BUILD_JIT=true
;;
wxwidgets)
Expand Down Expand Up @@ -97,6 +100,9 @@ for ARG in "$@"; do
BUILD_LUA=true
BUILD_WXLUA=true
BUILD_LUASOCKET=true
BUILD_LUASEC=true
BUILD_LFS=true
BUILD_LPEG=true
;;
*)
echo "Error: invalid argument $ARG"
Expand Down
6 changes: 6 additions & 0 deletions build/build-win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,16 @@ WXLUABUILD="MinSizeRel"
for ARG in "$@"; do
case $ARG in
5.2)
BUILD_LUA=true
BUILD_52=true
;;
5.3)
BUILD_LUA=true
BUILD_53=true
BUILD_FLAGS="$BUILD_FLAGS -DLUA_COMPAT_APIINTCASTS"
;;
jit)
BUILD_LUA=true
BUILD_JIT=true
;;
wxwidgets)
Expand Down Expand Up @@ -102,6 +105,9 @@ for ARG in "$@"; do
BUILD_LUASOCKET=true
BUILD_WINAPI=true
BUILD_ZBSTUDIO=true
BUILD_LUASEC=true
BUILD_LFS=true
BUILD_LPEG=true
;;
*)
echo "Error: invalid argument $ARG"
Expand Down

0 comments on commit 45628ad

Please sign in to comment.