blob: 573700e0cc3428576fc9143013a888f864fc9060 [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
James E. King, III33df4eb2017-04-06 08:45:17 -040059:: appveyor build slaves do not have MSVC2010 Boost installed
60IF "%COMPILER%" == "vc100" (
61 SET BITS=64
62 IF "%PLATFORM%" == "x86" (
63 SET BITS=32
64 )
65 SET BOOSTEXEURL=https://downloads.sourceforge.net/project/boost/boost-binaries/%BOOST_VERSION%/boost_%BOOST_VERSION:.=_%-msvc-10.0-!BITS!.exe
66 SET BOOSTEXE=C:\projects\thrift\buildcache\boost_%BOOST_VERSION:.=_%-msvc-10.0-!BITS!.exe
67 appveyor DownloadFile "!BOOSTEXEURL!" -FileName "!BOOSTEXE!" || EXIT /B
68 "!BOOSTEXE!" /dir=C:\Libraries\boost_%BOOST_VERSION:.=_% /silent || EXIT /B
69)
70
James E. King, III07f59972017-03-10 06:18:33 -050071:: Haskell (GHC) and cabal
72cinst -c "%BUILDCACHE%" -y ghc || EXIT /B