blob: 79b6ef06bc088cb593e8d54bbba8894b33f9ef95 [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::
29:: Install apt-cyg for package management
30::
31
32%BASH% -lc "wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg && install apt-cyg /bin && rm -f apt-cyg" || EXIT /B
33%BASH% -lc "apt-cyg update" || EXIT /B
James E. King IIIf3ec2772019-01-12 11:52:04 -050034%BASH% -lc "apt-cyg install bison cmake flex gcc-g++ libboost-devel libevent-devel make openssl-devel xz zlib-devel"
35
36::
37:: We need a newer version of cmake, the one cygwin provides is too old
38:: to recognize the version of boost. Luckily there is a pre-release
39:: one available, however cygwin's own setup program has no command line
40:: option to allow access to test packages!
41::
42
43%BASH% -lc "apt-cyg remove cmake"
44%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"