blob: a818df30513fbc6532fbdb49358c8cb649523209 [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 MSYS
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
27
James E. King III860a5f12018-03-06 14:23:23 -050028:: We're going to keep boost at a version cmake understands
zeshuai007a8770a92020-10-24 09:53:53 +080029SET BOOSTPKG=mingw-w64-x86_64-boost-1.64.0-3-any.pkg.tar.xz
James E. King III860a5f12018-03-06 14:23:23 -050030SET IGNORE=--ignore mingw-w64-x86_64-boost
31
James E. King, III07f59972017-03-10 06:18:33 -050032SET PACKAGES=^
James E. King III860a5f12018-03-06 14:23:23 -050033 --needed -S bison flex make ^
James E. King, III07f59972017-03-10 06:18:33 -050034 mingw-w64-x86_64-cmake ^
James E. King III860a5f12018-03-06 14:23:23 -050035 mingw-w64-x86_64-libevent ^
Mario Emmenlauera1054502017-04-07 21:26:52 +020036 mingw-w64-x86_64-openssl ^
James E. King, III07f59972017-03-10 06:18:33 -050037 mingw-w64-x86_64-toolchain ^
Mario Emmenlauera1054502017-04-07 21:26:52 +020038 mingw-w64-x86_64-zlib
James E. King, III07f59972017-03-10 06:18:33 -050039
James E. King III860a5f12018-03-06 14:23:23 -050040%BASH% -lc "pacman --noconfirm -Syu %IGNORE%" || EXIT /B
41%BASH% -lc "pacman --noconfirm -Su %IGNORE%" || EXIT /B
42%BASH% -lc "pacman --noconfirm %PACKAGES%" || EXIT /B
James E. King, III07f59972017-03-10 06:18:33 -050043
James E. King III860a5f12018-03-06 14:23:23 -050044:: Install a slightly older boost (1.64.0) as cmake 3.10
45:: does not have built-in dependencies for boost 1.66.0 yet
46:: -- this cuts down on build warning output --
47%BASH% -lc "wget http://repo.msys2.org/mingw/x86_64/%BOOSTPKG% && pacman --noconfirm --needed -U %BOOSTPKG% && rm %BOOSTPKG%" || EXIT /B
48