xref: /aosp_15_r20/external/libcxx/appveyor-reqs-install.cmd (revision 58b9f456b02922dfdb1fad8a988d5fd8765ecb80)
1*58b9f456SAndroid Build Coastguard Worker@echo on
2*58b9f456SAndroid Build Coastguard Worker
3*58b9f456SAndroid Build Coastguard Workerif NOT EXIST C:\projects\deps (
4*58b9f456SAndroid Build Coastguard Worker  mkdir C:\projects\deps
5*58b9f456SAndroid Build Coastguard Worker)
6*58b9f456SAndroid Build Coastguard Workercd C:\projects\deps
7*58b9f456SAndroid Build Coastguard Worker
8*58b9f456SAndroid Build Coastguard Worker::###########################################################################
9*58b9f456SAndroid Build Coastguard Worker:: Setup Compiler
10*58b9f456SAndroid Build Coastguard Worker::###########################################################################
11*58b9f456SAndroid Build Coastguard Workerif NOT EXIST llvm-installer.exe (
12*58b9f456SAndroid Build Coastguard Worker  appveyor DownloadFile https://prereleases.llvm.org/win-snapshots/LLVM-8.0.0-r345380-win32.exe -FileName llvm-installer.exe
13*58b9f456SAndroid Build Coastguard Worker)
14*58b9f456SAndroid Build Coastguard Workerif "%CLANG_VERSION%"=="ToT" (
15*58b9f456SAndroid Build Coastguard Worker    START /WAIT llvm-installer.exe /S /D=C:\"Program Files\LLVM"
16*58b9f456SAndroid Build Coastguard Worker)
17*58b9f456SAndroid Build Coastguard Workerif DEFINED CLANG_VERSION  @set PATH="C:\Program Files\LLVM\bin";%PATH%
18*58b9f456SAndroid Build Coastguard Workerif DEFINED CLANG_VERSION  clang-cl -v
19*58b9f456SAndroid Build Coastguard Worker
20*58b9f456SAndroid Build Coastguard Workerif DEFINED MINGW_PATH rename "C:\Program Files\Git\usr\bin\sh.exe" "sh-ignored.exe"
21*58b9f456SAndroid Build Coastguard Workerif DEFINED MINGW_PATH @set "PATH=%PATH:C:\Program Files (x86)\Git\bin=%"
22*58b9f456SAndroid Build Coastguard Workerif DEFINED MINGW_PATH @set "PATH=%PATH%;%MINGW_PATH%"
23*58b9f456SAndroid Build Coastguard Workerif DEFINED MINGW_PATH g++ -v
24*58b9f456SAndroid Build Coastguard Worker
25*58b9f456SAndroid Build Coastguard Worker::###########################################################################
26*58b9f456SAndroid Build Coastguard Worker:: Install a recent CMake
27*58b9f456SAndroid Build Coastguard Worker::###########################################################################
28*58b9f456SAndroid Build Coastguard Workerif NOT EXIST cmake (
29*58b9f456SAndroid Build Coastguard Worker  appveyor DownloadFile https://cmake.org/files/v3.7/cmake-3.7.2-win64-x64.zip -FileName cmake.zip
30*58b9f456SAndroid Build Coastguard Worker  7z x cmake.zip -oC:\projects\deps > nul
31*58b9f456SAndroid Build Coastguard Worker  move C:\projects\deps\cmake-* C:\projects\deps\cmake
32*58b9f456SAndroid Build Coastguard Worker  rm cmake.zip
33*58b9f456SAndroid Build Coastguard Worker)
34*58b9f456SAndroid Build Coastguard Worker@set PATH=C:\projects\deps\cmake\bin;%PATH%
35*58b9f456SAndroid Build Coastguard Workercmake --version
36*58b9f456SAndroid Build Coastguard Worker
37*58b9f456SAndroid Build Coastguard Worker::###########################################################################
38*58b9f456SAndroid Build Coastguard Worker:: Install Ninja
39*58b9f456SAndroid Build Coastguard Worker::###########################################################################
40*58b9f456SAndroid Build Coastguard Workerif NOT EXIST ninja (
41*58b9f456SAndroid Build Coastguard Worker  appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-win.zip -FileName ninja.zip
42*58b9f456SAndroid Build Coastguard Worker  7z x ninja.zip -oC:\projects\deps\ninja > nul
43*58b9f456SAndroid Build Coastguard Worker  rm ninja.zip
44*58b9f456SAndroid Build Coastguard Worker)
45*58b9f456SAndroid Build Coastguard Worker@set PATH=C:\projects\deps\ninja;%PATH%
46*58b9f456SAndroid Build Coastguard Workerninja --version
47*58b9f456SAndroid Build Coastguard Worker
48*58b9f456SAndroid Build Coastguard Worker::###########################################################################
49*58b9f456SAndroid Build Coastguard Worker:: Setup the cached copy of LLVM
50*58b9f456SAndroid Build Coastguard Worker::###########################################################################
51*58b9f456SAndroid Build Coastguard Workergit clone --depth=1 http://llvm.org/git/llvm.git
52*58b9f456SAndroid Build Coastguard Worker
53*58b9f456SAndroid Build Coastguard Worker@echo off
54