blob: 95008bd523d07cc5dc6174d7283936c054033650 [file] [log] [blame]
James E. King, III07f59972017-03-10 06:18:33 -05001::
2:: Licensed under the Apache License, Version 2.0 (the "License");
3:: you may not use this file except in compliance with the License.
4:: You may obtain a copy of the License at
5::
6:: http://www.apache.org/licenses/LICENSE-2.0
7::
8:: Unless required by applicable law or agreed to in writing, software
9:: distributed under the License is distributed on an "AS IS" BASIS,
10:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11:: See the License for the specific language governing permissions and
12:: limitations under the License.
13::
14
15::
16:: Appveyor install script for MSVC
17:: Installs (or builds) third party packages we need
18::
19
20@ECHO OFF
21SETLOCAL EnableDelayedExpansion
22
23CD build\appveyor || EXIT /B
24CALL cl_banner_install.bat || EXIT /B
25CALL cl_setenv.bat || EXIT /B
26CALL cl_showenv.bat || EXIT /B
27MKDIR "%WIN3P%" || EXIT /B
28
James E. King III860a5f12018-03-06 14:23:23 -050029choco feature enable -n allowGlobalConfirmation || EXIT /B
James E. King, III07f59972017-03-10 06:18:33 -050030
James E. King III860a5f12018-03-06 14:23:23 -050031:: Things to install when NOT running in appveyor:
32IF "%APPVEYOR_BUILD_ID%" == "" (
33 cup -y chocolatey || EXIT /B
34 cinst -c "%BUILDCACHE%" -y curl || EXIT /B
35 cinst -c "%BUILDCACHE%" -y 7zip || EXIT /B
36 cinst -c "%BUILDCACHE%" -y python3 || EXIT /B
37 cinst -c "%BUILDCACHE%" -y openssl.light || EXIT /B
38)
39
40cinst -c "%BUILDCACHE%" -y jdk8 || EXIT /B
James E. King, III07f59972017-03-10 06:18:33 -050041cinst -c "%BUILDCACHE%" -y winflexbison3 || EXIT /B
42
James E. King III860a5f12018-03-06 14:23:23 -050043:: zlib - not available through chocolatey
James E. King, III07f59972017-03-10 06:18:33 -050044CD "%APPVEYOR_SCRIPTS%" || EXIT /B
45call build-zlib.bat || EXIT /B
46
James E. King III860a5f12018-03-06 14:23:23 -050047:: libevent - not available through chocolatey
James E. King, III07f59972017-03-10 06:18:33 -050048CD "%APPVEYOR_SCRIPTS%" || EXIT /B
49call build-libevent.bat || EXIT /B
50
James E. King III860a5f12018-03-06 14:23:23 -050051:: python packages (correct path to pip set in cl_setenv.bat)
52pip.exe ^
53 install backports.ssl_match_hostname ^
James E. King, III07f59972017-03-10 06:18:33 -050054 ipaddress ^
James E. King III860a5f12018-03-06 14:23:23 -050055 six ^
James E. King, III07f59972017-03-10 06:18:33 -050056 tornado ^
57 twisted || EXIT /B
58
James E. King, III07f59972017-03-10 06:18:33 -050059:: Haskell (GHC) and cabal
60cinst -c "%BUILDCACHE%" -y ghc || EXIT /B