Commit d79e3362 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia
Browse files

Ajuste para instalação no Cygwin.

[SOMA-9022][SOMA-9004]
parent f4369fb8
Pipeline #91970 failed with stages
in 5 minutes and 56 seconds
......@@ -109,7 +109,24 @@ then
LUA_VERSION="lua-5.2.4"
download http://www.lua.org/ftp ${LUA_VERSION}
cd ${LUA_VERSION}
make INSTALL_TOP=${SGA_HOME} linux install
case "$(uname -s)" in
CYGWIN*)
cd src
make \
"LUA_A=cyglua-5.2.dll" \
"LUA_T=lua.exe" \
"AR=gcc -shared -Wl,--enable-auto-image-base -Wl,--enable-auto-import -Wl,--out-implib,liblua.a -o" \
"RANLIB=strip --strip-unneeded" \
"MYCFLAGS=-DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_BUILD_AS_DLL" \
"MYLDFLAGS=-s" \
"lua.exe"
cd ..
make INSTALL_TOP=${SGA_HOME} "TO_BIN=lua.exe cyglua-5.2.dll" install
;;
*)
make INSTALL_TOP=${SGA_HOME} linux install
;;
esac
cd ..
elif ! grep -q "Lua 5.2" < <(${SGA_HOME}/bin/lua -v)
then
......
......@@ -28,7 +28,6 @@ dependencies = {
"safer",
"restserver == 0.1",
"restserver-xavante == 0.2",
"lanes >= 3.10.0",
"lualogging",
"luaposix",
"serpent",
......
......@@ -20,6 +20,7 @@ dependencies = {
"sga-daemon",
"lua-schema",
"safer",
"lanes >= 3.10.0",
}
build = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment