summaryrefslogtreecommitdiff
path: root/Data/Libraries/luaunit/.appveyor/install-luajit.cmd
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-26 11:32:46 +0800
committerchai <chaifix@163.com>2021-10-26 11:32:46 +0800
commit0549b1e5a8a3132005e275d6026db8003cb067d2 (patch)
treef0d7751ec32ecf5c4d23997fa0ffd3450a5a755a /Data/Libraries/luaunit/.appveyor/install-luajit.cmd
parent32345800737b668011a87328cd3dcce59ec2934c (diff)
*rename folder
Diffstat (limited to 'Data/Libraries/luaunit/.appveyor/install-luajit.cmd')
-rw-r--r--Data/Libraries/luaunit/.appveyor/install-luajit.cmd25
1 files changed, 25 insertions, 0 deletions
diff --git a/Data/Libraries/luaunit/.appveyor/install-luajit.cmd b/Data/Libraries/luaunit/.appveyor/install-luajit.cmd
new file mode 100644
index 0000000..ca7dbb4
--- /dev/null
+++ b/Data/Libraries/luaunit/.appveyor/install-luajit.cmd
@@ -0,0 +1,25 @@
+REM Do a minimalistic build of LuaJIT using the MinGW compiler
+
+set PATH=C:\MinGW\bin;%PATH%
+
+echo Downloading %PRETTY_VERSION% ...
+curl -fLsS -o %DL_ZIP%.zip %DL_URL%
+
+echo Unzipping %DL_ZIP%
+unzip -q %DL_ZIP%
+
+REM tweak Makefile for a static LuaJIT build (Windows defaults to "dynamic" otherwise)
+sed -i "s/BUILDMODE=.*mixed/BUILDMODE=static/" %DL_ZIP%\src\Makefile
+
+mingw32-make TARGET_SYS=Windows -C %DL_ZIP%\src
+
+echo Installing %PRETTY_VERSION% ...
+REM copy luajit.exe to project dir
+mkdir %APPVEYOR_BUILD_FOLDER%\%LUA_BIN_DIR%
+copy %DL_ZIP%\src\luajit.exe %APPVEYOR_BUILD_FOLDER%\%LUA_BIN_DIR%\
+
+REM clean up (remove source folders and archive)
+rm -rf %DL_ZIP%/*
+rm -f %DL_ZIP%.zip
+
+