aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-12-04 15:24:28 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-12-04 15:24:28 -0500
commit9d674fc0937c8843d1c0bef98e72cd39864f08bd (patch)
tree89c311790510ffb231ae9e0e2bb2bf77cde3d645 /build.sh
parent85b453cec99b80a5bea4f0777d19676486ac15e7 (diff)
downloadlite-xl-plugin-manager-9d674fc0937c8843d1c0bef98e72cd39864f08bd.tar.gz
lite-xl-plugin-manager-9d674fc0937c8843d1c0bef98e72cd39864f08bd.zip
Made LIVE more clear.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index c1980cf..362ae8e 100755
--- a/build.sh
+++ b/build.sh
@@ -36,9 +36,11 @@ fi
[[ "$@" != *"-llua"* ]] && CFLAGS="$CFLAGS -Ilib/lua -DMAKE_LIB=1" && SRCS="$SRCS lib/lua/onelua.c"
# Build the pre-packaged lua file into the executbale.
-[[ ! -e "lua.exe" ]] && gcc -Ilib/lua -o lua.exe lib/lua/onelua.c -lm
-./lua.exe -e 'io.open("src/lpm.luac", "wb"):write(string.dump(assert(loadfile("src/lpm.lua"))))'
-xxd -i src/lpm.luac > src/lpm.lua.c
+if [[ "$@" != *"-DLPM_LIVE" ]]; then
+ [[ ! -e "lua.exe" ]] && gcc -Ilib/lua -o lua.exe lib/lua/onelua.c -lm
+ ./lua.exe -e 'io.open("src/lpm.luac", "wb"):write(string.dump(assert(loadfile("src/lpm.lua"))))'
+ xxd -i src/lpm.luac > src/lpm.lua.c
+fi
[[ $OSTYPE != 'msys'* && $CC != *'mingw'* && $CC != "emcc" ]] && LDFLAGS=" $LDFLAGS -ldl -pthread"
[[ $OSTYPE == 'msys'* || $CC == *'mingw'* ]] && LDFLAGS="$LDFLAGS -lbcrypt -lws2_32 -lz -lwinhttp -lole32 -lcrypt32 -lrpcrt4"