blob: 72712b20e01be7820588fb34ef84bfd84767e975 [file] [log] [blame]
James E. King III860a5f12018-03-06 14:23:23 -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 CYGWIN
17:: Installs third party packages we need for a cmake build
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
28::
James E. King III3ec40312019-01-31 18:35:51 -050029:: Upgrades cygwin to the latest, if you want...
30::
31:: appveyor DownloadFile "https://cygwin.com/setup-x86_64.exe"
32:: setup-x86_64.exe --quiet-mode --wait --upgrade-also --packages="gcc-g++"
33
34::
James E. King III860a5f12018-03-06 14:23:23 -050035:: Install apt-cyg for package management
36::
37
38%BASH% -lc "wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg && install apt-cyg /bin && rm -f apt-cyg" || EXIT /B
39%BASH% -lc "apt-cyg update" || EXIT /B
James E. King IIIf3ec2772019-01-12 11:52:04 -050040%BASH% -lc "apt-cyg install bison cmake flex gcc-g++ libboost-devel libevent-devel make openssl-devel xz zlib-devel"
41
42::
43:: We need a newer version of cmake, the one cygwin provides is too old
44:: to recognize the version of boost. Luckily there is a pre-release
45:: one available, however cygwin's own setup program has no command line
46:: option to allow access to test packages!
47::
48
49%BASH% -lc "apt-cyg remove cmake"
50%BASH% -lc "cd / && wget http://mirror.clarkson.edu/cygwin/x86_64/release/cmake/cmake-3.13.1-1.tar.xz && tar xJf cmake-3.13.1-1.tar.xz && hash -r && cmake --version"