2020-06-22 12:33:36 +08:00
|
|
|
set MSYS=C:\MSYS64
|
|
|
|
set TRIPLE=x86_64-pc-mingw64
|
|
|
|
set PATH=%MSYS%\usr\bin;%MSYS%\mingw64\bin;%PATH%
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
set CFLAGS=-I%PREFIX:\=/%/Library/include/
|
|
|
|
set LDFLAGS=-L%PREFIX:\=/%/Library/lib/
|
|
|
|
sh ../configure --build=%TRIPLE% ^
|
|
|
|
--prefix="%PREFIX:\=/%/Library" ^
|
2020-06-22 12:57:29 +08:00
|
|
|
--target=##TARGET##
|
2020-06-22 12:33:36 +08:00
|
|
|
if errorlevel 1 exit 1
|
|
|
|
|
|
|
|
make -j4
|
|
|
|
if errorlevel 1 exit 1
|
|
|
|
|
|
|
|
make install
|
|
|
|
if errorlevel 1 exit 1
|
|
|
|
|
|
|
|
rem this is a copy of prefixed executables
|
2020-06-22 12:57:29 +08:00
|
|
|
rmdir /S /Q %PREFIX%\Library\##TARGET##
|