blob: d06e0308c077976a1acfdaef08ca00cf879afea2 [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::
James E. King III860a5f12018-03-06 14:23:23 -050016:: Appveyor install script for MINGW on MSYS2
17:: Installs third party packages we need for a cmake build
James E. King, III07f59972017-03-10 06:18:33 -050018::
19
James E. King III860a5f12018-03-06 14:23:23 -050020@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
zeshuai007b6c886c2020-10-24 10:01:35 +080028SET BOOSTPKG=mingw-w64-x86_64-boost-1.71.0-1-any.pkg.tar.xz
29SET IGNORE=--ignore mingw-w64-x86_64-boost
30
James E. King III860a5f12018-03-06 14:23:23 -050031SET PACKAGES=^
32 --needed -S bison flex make ^
James E. King III53f08592018-10-04 13:56:30 -040033 mingw-w64-%MINGWPLAT%-boost ^
James E. King III860a5f12018-03-06 14:23:23 -050034 mingw-w64-%MINGWPLAT%-cmake ^
35 mingw-w64-%MINGWPLAT%-libevent ^
36 mingw-w64-%MINGWPLAT%-openssl ^
37 mingw-w64-%MINGWPLAT%-toolchain ^
38 mingw-w64-%MINGWPLAT%-zlib
39
40::mingw-w64-%MINGWPLAT%-qt5 : WAY too large (1GB download!) - tested in cygwin builds anyway
41
James E. King IIIa85d5322019-06-17 04:06:41 -040042:: the following uninstall and system upgrade was causing issues; appveyor's is relatively new
James E. King III860a5f12018-03-06 14:23:23 -050043:: Remove old packages that no longer exist to avoid an error
James E. King IIIa85d5322019-06-17 04:06:41 -040044:: %BASH% -lc "pacman --noconfirm --remove libcatgets catgets || true" || EXIT /B
45
46:: Remove incompatible packages 8.2.0-3 and 7.3.0-2 (mingw packaging bugs if you ask me!)
47:: %BASH% -lc "pacman --noconfirm --remove mingw-w64-x86_64-gcc-ada mingw-w64-x86_64-gcc-objc || true" || EXIT /B
48:: %BASH% -lc "pacman --noconfirm --remove mingw-w64-x86_64-gcc-ada mingw-w64-x86_64-gcc-objc || true" || EXIT /B
James E. King III860a5f12018-03-06 14:23:23 -050049
50:: Upgrade things
James E. King IIIa85d5322019-06-17 04:06:41 -040051:: %BASH% -lc "pacman --noconfirm -Syu %IGNORE%" || EXIT /B
52:: %BASH% -lc "pacman --noconfirm -Su %IGNORE%" || EXIT /B
53::
zeshuai007c8dab1f2020-10-26 10:50:28 +080054%BASH% -lc "pacman -Scc" || EXIT /B
55%BASH% -lc "pacman -Syyu" || EXIT /B
James E. King IIIa85d5322019-06-17 04:06:41 -040056%BASH% -lc "pacman --noconfirm %PACKAGES%" || EXIT /B