diff options
author | chai <chaifix@163.com> | 2021-10-20 13:36:36 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-20 13:36:36 +0800 |
commit | dde719dd575090b36aaa3ad85bb3cabf33f36c5a (patch) | |
tree | 3e0a8e70f716dbfee2f644f5202da7ee74b3c6b7 /Resources/Libraries/luaunit/.appveyor/install-luajit.cmd | |
parent | 943411c9006345b07557e76ff360c388ee8366c1 (diff) |
+luaunit test
Diffstat (limited to 'Resources/Libraries/luaunit/.appveyor/install-luajit.cmd')
-rw-r--r-- | Resources/Libraries/luaunit/.appveyor/install-luajit.cmd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Resources/Libraries/luaunit/.appveyor/install-luajit.cmd b/Resources/Libraries/luaunit/.appveyor/install-luajit.cmd new file mode 100644 index 0000000..ca7dbb4 --- /dev/null +++ b/Resources/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
+
+
|