blob: ca7dbb46061b308f149180ab8dd82426b5622c01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|