James E. King III | 860a5f1 | 2018-03-06 14:23:23 -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 | :: |
| 16 | :: Appveyor install script for CYGWIN |
| 17 | :: Installs third party packages we need for a cmake build |
| 18 | :: |
| 19 | |
| 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 | :: |
James E. King III | 3ec4031 | 2019-01-31 18:35:51 -0500 | [diff] [blame] | 29 | :: 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 III | 860a5f1 | 2018-03-06 14:23:23 -0500 | [diff] [blame] | 35 | :: 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 III | f3ec277 | 2019-01-12 11:52:04 -0500 | [diff] [blame] | 40 | %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" |
Jens Geyer | 348de16 | 2021-04-09 23:14:16 +0200 | [diff] [blame] | 50 | %BASH% -lc "cd / && wget http://mirror.clarkson.edu/cygwin/x86_64/release/cmake/cmake-3.20.0-1.tar.xz && tar xJf cmake-3.20.0-1.tar.xz && hash -r && cmake --version" |