xqemu/appveyor.bat

40 lines
1.4 KiB
Batchfile

rem Matrix-driven Appveyor CI script for xqemu, borrowed from https://github.com/mypaint/libmypaint
rem Currently only does MSYS2 builds.
rem https://www.appveyor.com/docs/installed-software#mingw-msys-cygwin
rem Needs the following vars:
rem MSYS2_ARCH: x86_64 or i686
rem MSYSTEM: MINGW64 or MINGW32
rem Set the paths appropriately
PATH C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin;%PATH%
rem Install required tools
bash -xlc "pacman --noconfirm -S --needed base-devel"
rem Install the relevant native dependencies
bash -xlc "pacman --noconfirm -S --needed git"
bash -xlc "pacman --noconfirm -S --needed make"
bash -xlc "pacman --noconfirm -S --needed autoconf"
bash -xlc "pacman --noconfirm -S --needed automake-wrapper"
bash -xlc "pacman --noconfirm -S --needed mingw-w64-x86_64-libtool"
bash -xlc "pacman --noconfirm -S --needed mingw-w64-x86_64-pkg-config"
bash -xlc "pacman --noconfirm -S --needed mingw-w64-x86_64-glib2"
bash -xlc "pacman --noconfirm -S --needed mingw-w64-x86_64-SDL2"
bash -xlc "pacman --noconfirm -S --needed mingw-w64-x86_64-pixman"
bash -xlc "pacman --noconfirm -S --needed mingw-w64-x86_64-libepoxy"
rem Invoke subsequent bash in the build tree
cd %APPVEYOR_BUILD_FOLDER%
set CHERE_INVOKING=yes
rem Build/test scripting
bash -xlc "set pwd"
bash -xlc "env"
IF "%1%" == "Release" (
bash -xlc "./build.sh --release"
) ELSE (
bash -xlc "./build.sh"
)