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 | :: |
James E. King III | 860a5f1 | 2018-03-06 14:23:23 -0500 | [diff] [blame^] | 16 | :: Appveyor install script for MINGW on MSYS2 |
| 17 | :: Installs third party packages we need for a cmake build |
James E. King, III | 07f5997 | 2017-03-10 06:18:33 -0500 | [diff] [blame] | 18 | :: |
| 19 | |
James E. King III | 860a5f1 | 2018-03-06 14:23:23 -0500 | [diff] [blame^] | 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 | |
| 28 | :: We're going to keep boost at a version cmake understands |
| 29 | SET BOOSTVER=1.64.0-3 |
| 30 | SET BOOSTPKG=mingw-w64-%MINGWPLAT%-boost-%BOOSTVER%-any.pkg.tar.xz |
| 31 | SET IGNORE=--ignore mingw-w64-x86_64-boost --ignore mingw-w64-i686-boost |
| 32 | |
| 33 | SET PACKAGES=^ |
| 34 | --needed -S bison flex make ^ |
| 35 | mingw-w64-%MINGWPLAT%-cmake ^ |
| 36 | mingw-w64-%MINGWPLAT%-libevent ^ |
| 37 | mingw-w64-%MINGWPLAT%-openssl ^ |
| 38 | mingw-w64-%MINGWPLAT%-toolchain ^ |
| 39 | mingw-w64-%MINGWPLAT%-zlib |
| 40 | |
| 41 | ::mingw-w64-%MINGWPLAT%-qt5 : WAY too large (1GB download!) - tested in cygwin builds anyway |
| 42 | |
| 43 | :: Remove old packages that no longer exist to avoid an error |
| 44 | %BASH% -lc "pacman --noconfirm --remove libcatgets catgets || true" || EXIT /B |
| 45 | |
| 46 | :: Upgrade things |
| 47 | %BASH% -lc "pacman --noconfirm -Syu %IGNORE%" || EXIT /B |
| 48 | %BASH% -lc "pacman --noconfirm -Su %IGNORE%" || EXIT /B |
| 49 | %BASH% -lc "pacman --noconfirm %PACKAGES%" || EXIT /B |
| 50 | |
| 51 | :: Install a slightly older boost (BOOSTVER) as cmake in mingw |
| 52 | :: does not have built-in dependencies for boost 1.66.0 yet |
| 53 | :: -- this cuts down on build warning output -- |
| 54 | |
| 55 | %BASH% -lc "if [[ $(pacman --query | grep '%MINGWPLAT%-boost') ^!= *"%BOOSTVER%"* ]]; then wget http://repo.msys2.org/mingw/%MINGWPLAT%/%BOOSTPKG% && pacman --noconfirm --needed -U %BOOSTPKG% && rm %BOOSTPKG%; fi" || EXIT /B |