File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ language: java
55env :
66 global :
77 - PROTOBUF_VERSION=3.0.0-beta-1
8+ - OPENSSL_VERSION=1.0.2d
89 - LDFLAGS=-L/tmp/protobuf-${PROTOBUF_VERSION}/lib
910 - CXXFLAGS=-I/tmp/protobuf-${PROTOBUF_VERSION}/include
10- - LD_LIBRARY_PATH=/tmp/protobuf-${PROTOBUF_VERSION}/lib
11+ - LD_LIBRARY_PATH=/tmp/protobuf-${PROTOBUF_VERSION}/lib:/tmp/openssl-${OPENSSL_VERSION}/lib
1112
1213before_install :
1314 - buildscripts/make_dependencies.sh # build protoc into /tmp/protobuf-${PROTOBUF_VERSION}
@@ -32,6 +33,7 @@ notifications:
3233cache :
3334 directories :
3435 - /tmp/protobuf-${PROTOBUF_VERSION}
36+ - /tmp/openssl-${OPENSSL_VERSION}
3537 - $HOME/.m2/repository/io/netty
3638 - $HOME/.gradle/caches/modules-2
3739 - $HOME/.gradle/wrapper
Original file line number Diff line number Diff line change 11REM installer http://www.7-zip.org/a/7z1507-x64.exe
22REM 7za is in http://www.7-zip.org/a/7z1507-extra.7z
33
4- REM Prerequisite: 7za.exe in current directory or PATH
4+ REM Prerequisite:
5+ REM 7za.exe in current directory or PATH
6+ REM Install http://slproweb.com/download/Win64OpenSSL_Light-1_0_2d.exe
57
68set PROTOBUF_VER = 3.0.0-beta-1
79set CMAKE_NAME = cmake-3.3.2-win32-x86
810
911if not exist " protobuf-%PROTOBUF_VER% \cmake\Release\" (
1012 call :installProto
1113)
12- set PROTOCDIR = %cd% \protobuf-%PROTOBUF_VER% \cmake\Release\
14+
15+ echo Compile gRPC-Java with something like:
16+ echo -PtargetArch=x86_32 -PvcProtobufLibs=%cd% \protobuf-%PROTOBUF_VER% \cmake\build\Release -PvcProtobufInclude=%cd% \protobuf-%PROTOBUF_VER% \cmake\build\include
1317goto :eof
1418
1519
@@ -38,6 +42,3 @@ powershell -command "& { iwr https://cmake.org/files/v3.3/%CMAKE_NAME%.zip -OutF
38427za X cmake.zip
3943del cmake.zip
4044goto :eof
41-
42- REM Compile gRPC-Java with something like:
43- REM -PtargetArch=x86_32 -PvcProtobufLibs=%cd%\protobuf-3.0.0-beta-1\cmake\build\Release -PvcProtobufInclude=%cd%\protobuf-3.0.0-beta-1\cmake\build\include
Original file line number Diff line number Diff line change 11#! /bin/bash
22#
3- # Build protoc & netty
3+ # Build protoc & openssl
44set -ev
55
66DOWNLOAD_DIR=/tmp/source
1717 ./autogen.sh
1818 # install here so we don't need sudo
1919 ./configure --prefix=${INSTALL_DIR}
20- make -j2
20+ make -j$( nproc)
21+ make install
22+ popd
23+ fi
24+
25+ INSTALL_DIR=/tmp/openssl-${OPENSSL_VERSION}
26+
27+ if [ -f ${INSTALL_DIR} /lib/libssl.so ]; then
28+ echo " Not building openssl. Already built"
29+ else
30+ wget -O - https://www.openssl.org/source/openssl-${OPENSSL_VERSION} .tar.gz | tar xz -C $DOWNLOAD_DIR
31+ pushd $DOWNLOAD_DIR /openssl-${OPENSSL_VERSION}
32+ ./Configure linux-x86_64 shared no-ssl2 no-comp --prefix=${INSTALL_DIR}
33+ make -j$( nproc)
2134 make install
2235 popd
2336fi
You can’t perform that action at this time.
0 commit comments