blob: 5343d85473c69cf406c8930bae9b8038c783ccd3 [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
29:: Install ant - this also installs the latest JDK as a dependency
30:: The installation of JDK requires us to pick up PATH and JAVE_HOME from the registry
31cinst -c "%BUILDCACHE%" -y ant || EXIT /B
32
33:: Install bison and flex
34cinst -c "%BUILDCACHE%" -y winflexbison3 || EXIT /B
35
36:: zlib
37CD "%APPVEYOR_SCRIPTS%" || EXIT /B
38call build-zlib.bat || EXIT /B
39
40:: libevent
41CD "%APPVEYOR_SCRIPTS%" || EXIT /B
42call build-libevent.bat || EXIT /B
43
44:: python packages
45pip install backports.ssl_match_hostname ^
46 ipaddress ^
47 tornado ^
48 twisted || EXIT /B
49
50:: msinttypes - for MSVC2010 only
51SET MSINTTYPESURL=https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/msinttypes/msinttypes-r26.zip
52IF "%COMPILER%" == "vc100" (
53 MKDIR "%WIN3P%\msinttypes" || EXIT /B
54 CD "%WIN3P%\msinttypes" || EXIT /B
55 appveyor DownloadFile "%MSINTTYPESURL%" || EXIT /B
56 7z x "msinttypes-r26.zip" || EXIT /B
57)
58
59:: Haskell (GHC) and cabal
60cinst -c "%BUILDCACHE%" -y ghc || EXIT /B