aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-05-12 16:24:32 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-05-12 16:24:32 -0400
commit7f5933f02ab229cabb1ad2bb1a900ef2a9165ed3 (patch)
treec570a5abbdc5755d4c2072903b98ace37ebff5a7 /build.sh
parentc21bbc8129b55f95723110ac837179dec479459c (diff)
downloadlite-xl-plugin-manager-7f5933f02ab229cabb1ad2bb1a900ef2a9165ed3.tar.gz
lite-xl-plugin-manager-7f5933f02ab229cabb1ad2bb1a900ef2a9165ed3.zip
Updated meson and build.sh to remove source context for LPM_STATIC builds.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 96a9842..ae162a6 100755
--- a/build.sh
+++ b/build.sh
@@ -41,7 +41,7 @@ fi
# Build the pre-packaged lua file into the executbale.
if [[ "$@" == *"-DLPM_STATIC"* ]]; then
[[ ! -e "lua.exe" ]] && { $HOSTCC -Ilib/lua -o lua.exe lib/lua/onelua.c -lm || exit -1; }
- ./lua.exe -e 'io.open("src/lpm.lua.c", "wb"):write("unsigned char lpm_luac[] = \""..string.dump(loadfile("src/lpm.lua")):gsub(".",function(c) return string.format("\\x%02X",string.byte(c)) end).."\";unsigned int lpm_luac_len = sizeof(lpm_luac)-1;")'
+ ./lua.exe -e 'io.open("src/lpm.lua.c", "wb"):write("unsigned char lpm_luac[] = \""..string.dump(load(io.lines("src/lpm.lua","L"), "=lpm.lua")):gsub(".",function(c) return string.format("\\x%02X",string.byte(c)) end).."\";unsigned int lpm_luac_len = sizeof(lpm_luac)-1;")'
fi
[[ $OSTYPE != 'msys'* && $CC != *'mingw'* && $CC != "emcc" ]] && COMPILE_FLAGS="$COMPILE_FLAGS -DLUA_USE_LINUX" && LINK_FLAGS="$LINK_FLAGS -ldl"