android: fix build issues with libmesa_anv_gen* libraries
[mesa.git] / scripts / appveyor_msvc.bat
1 goto %1
2
3 :install
4 rem Check git config
5 git config core.autocrlf
6 rem Check pip
7 python --version
8 python -m pip --version
9 rem Install Mako
10 python -m pip install Mako==1.0.7
11 rem Install pywin32 extensions, needed by SCons
12 python -m pip install pypiwin32
13 rem Install python wheels, necessary to install SCons via pip
14 python -m pip install wheel
15 rem Install SCons
16 python -m pip install scons==3.0.1
17 call scons --version
18 rem Install flex/bison
19 set WINFLEXBISON_ARCHIVE=win_flex_bison-%WINFLEXBISON_VERSION%.zip
20 if not exist "%WINFLEXBISON_ARCHIVE%" appveyor DownloadFile "https://github.com/lexxmark/winflexbison/releases/download/v%WINFLEXBISON_VERSION%/%WINFLEXBISON_ARCHIVE%"
21 7z x -y -owinflexbison\ "%WINFLEXBISON_ARCHIVE%" > nul
22 set Path=%CD%\winflexbison;%Path%
23 win_flex --version
24 win_bison --version
25 rem Download and extract LLVM
26 if not exist "%LLVM_ARCHIVE%" appveyor DownloadFile "https://people.freedesktop.org/~jrfonseca/llvm/%LLVM_ARCHIVE%"
27 7z x -y "%LLVM_ARCHIVE%" > nul
28 mkdir llvm\bin
29 set LLVM=%CD%\llvm
30 goto :eof
31
32 :build_script
33 call scons -j%NUMBER_OF_PROCESSORS% MSVC_VERSION=14.1 llvm=1
34 goto :eof
35
36 :after_build
37 call scons -j%NUMBER_OF_PROCESSORS% MSVC_VERSION=14.1 llvm=1 check
38 goto :eof