2017-05-04 13:16:48 +08:00
|
|
|
@echo on
|
2017-05-10 10:30:16 +08:00
|
|
|
|
2017-05-04 13:16:48 +08:00
|
|
|
if NOT EXIST C:\projects\deps (
|
|
|
|
mkdir C:\projects\deps
|
|
|
|
)
|
|
|
|
cd C:\projects\deps
|
|
|
|
|
|
|
|
::###########################################################################
|
2017-05-10 10:30:16 +08:00
|
|
|
:: Setup Compiler
|
2017-05-04 13:16:48 +08:00
|
|
|
::###########################################################################
|
2017-05-05 03:04:50 +08:00
|
|
|
if NOT EXIST llvm-installer.exe (
|
2017-06-01 09:00:59 +08:00
|
|
|
appveyor DownloadFile http://llvm.org/pre-releases/win-snapshots/LLVM-5.0.0-r303050-win32.exe -FileName llvm-installer.exe
|
2017-05-05 03:04:50 +08:00
|
|
|
)
|
2017-05-04 13:16:48 +08:00
|
|
|
if "%CLANG_VERSION%"=="ToT" (
|
2017-05-05 03:04:50 +08:00
|
|
|
START /WAIT llvm-installer.exe /S /D=C:\"Program Files\LLVM"
|
2017-05-04 13:16:48 +08:00
|
|
|
)
|
2017-05-10 10:30:16 +08:00
|
|
|
if DEFINED CLANG_VERSION @set PATH="C:\Program Files\LLVM\bin";%PATH%
|
|
|
|
if DEFINED CLANG_VERSION clang-cl -v
|
|
|
|
|
|
|
|
if DEFINED MINGW_PATH rename "C:\Program Files\Git\usr\bin\sh.exe" "sh-ignored.exe"
|
|
|
|
if DEFINED MINGW_PATH @set "PATH=%PATH:C:\Program Files (x86)\Git\bin=%"
|
|
|
|
if DEFINED MINGW_PATH @set "PATH=%PATH%;%MINGW_PATH%"
|
|
|
|
if DEFINED MINGW_PATH g++ -v
|
2017-05-04 13:16:48 +08:00
|
|
|
|
|
|
|
::###########################################################################
|
|
|
|
:: Install a recent CMake
|
|
|
|
::###########################################################################
|
|
|
|
if NOT EXIST cmake (
|
|
|
|
appveyor DownloadFile https://cmake.org/files/v3.7/cmake-3.7.2-win64-x64.zip -FileName cmake.zip
|
|
|
|
7z x cmake.zip -oC:\projects\deps > nul
|
|
|
|
move C:\projects\deps\cmake-* C:\projects\deps\cmake
|
|
|
|
rm cmake.zip
|
|
|
|
)
|
|
|
|
@set PATH=C:\projects\deps\cmake\bin;%PATH%
|
|
|
|
cmake --version
|
|
|
|
|
|
|
|
::###########################################################################
|
|
|
|
:: Install Ninja
|
|
|
|
::###########################################################################
|
|
|
|
if NOT EXIST ninja (
|
|
|
|
appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-win.zip -FileName ninja.zip
|
|
|
|
7z x ninja.zip -oC:\projects\deps\ninja > nul
|
|
|
|
rm ninja.zip
|
|
|
|
)
|
|
|
|
@set PATH=C:\projects\deps\ninja;%PATH%
|
|
|
|
ninja --version
|
|
|
|
|
|
|
|
::###########################################################################
|
|
|
|
:: Setup the cached copy of LLVM
|
|
|
|
::###########################################################################
|
2017-05-05 03:04:50 +08:00
|
|
|
git clone --depth=1 http://llvm.org/git/llvm.git
|
2017-05-04 13:16:48 +08:00
|
|
|
|
|
|
|
@echo off
|