James E. King, III | 07f5997 | 2017-03-10 06:18:33 -0500 | [diff] [blame^] | 1 | :: |
| 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 |
| 21 | SETLOCAL EnableDelayedExpansion |
| 22 | |
| 23 | CD build\appveyor || EXIT /B |
| 24 | CALL cl_banner_install.bat || EXIT /B |
| 25 | CALL cl_setenv.bat || EXIT /B |
| 26 | CALL cl_showenv.bat || EXIT /B |
| 27 | MKDIR "%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 |
| 31 | cinst -c "%BUILDCACHE%" -y ant || EXIT /B |
| 32 | |
| 33 | :: Install bison and flex |
| 34 | cinst -c "%BUILDCACHE%" -y winflexbison3 || EXIT /B |
| 35 | |
| 36 | :: zlib |
| 37 | CD "%APPVEYOR_SCRIPTS%" || EXIT /B |
| 38 | call build-zlib.bat || EXIT /B |
| 39 | |
| 40 | :: libevent |
| 41 | CD "%APPVEYOR_SCRIPTS%" || EXIT /B |
| 42 | call build-libevent.bat || EXIT /B |
| 43 | |
| 44 | :: python packages |
| 45 | pip install backports.ssl_match_hostname ^ |
| 46 | ipaddress ^ |
| 47 | tornado ^ |
| 48 | twisted || EXIT /B |
| 49 | |
| 50 | :: msinttypes - for MSVC2010 only |
| 51 | SET MSINTTYPESURL=https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/msinttypes/msinttypes-r26.zip |
| 52 | IF "%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 |
| 60 | cinst -c "%BUILDCACHE%" -y ghc || EXIT /B |