]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/build/appveyor/CYGW-appveyor-install.bat
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / build / appveyor / CYGW-appveyor-install.bat
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 ::
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 ::
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
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"
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"