-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use latest version of GRPC recipe (#5492)
- Loading branch information
Showing
1 changed file
with
7 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,15 +17,11 @@ incremental_recipe: | | |
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles | ||
--- | ||
#!/bin/bash -e | ||
|
||
pushd $SOURCEDIR | ||
git checkout "$GIT_TAG" | ||
git submodule update --init | ||
popd | ||
|
||
SONAME=so | ||
case $ARCHITECTURE in | ||
osx*) | ||
[[ ! $OPENSSL_ROOT ]] && OPENSSL_ROOT=$(brew --prefix [email protected]) | ||
SONAME=dylib | ||
[[ ! $OPENSSL_ROOT ]] && OPENSSL_ROOT=$(brew --prefix openssl@3) | ||
[[ ! $PROTOBUF_ROOT ]] && PROTOBUF_ROOT=$(brew --prefix protobuf) | ||
# to avoid issues with rpath on mac | ||
extra_cmake_variables="-DCMAKE_INSTALL_RPATH=$INSTALLROOT/lib \ | ||
|
@@ -52,23 +48,20 @@ cmake $SOURCEDIR \ | |
-DgRPC_BENCHMARK_PROVIDER=package \ | ||
-DgRPC_BUILD_GRPC_CSHARP_PLUGIN=OFF \ | ||
-DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=OFF \ | ||
-DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF \ | ||
-DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF \ | ||
-DgRPC_BUILD_GRPC_CPP_PLUGIN=ON \ | ||
-DgRPC_BUILD_CSHARP_EXT=OFF \ | ||
-DgRPC_RE2_PROVIDER=package \ | ||
${OPENSSL_ROOT:+-DOPENSSL_ROOT_DIR=$OPENSSL_ROOT} \ | ||
${OPENSSL_ROOT:+-DOpenSSL_ROOT="$OPENSSL_ROOT"} \ | ||
${OPENSSL_ROOT:+-DOPENSSL_INCLUDE_DIRS=$OPENSSL_ROOT/include} \ | ||
${OPENSSL_ROOT:+-DOPENSSL_LIBRARIES=$OPENSSL_ROOT/lib/libssl.$SONAME;$OPENSSL_ROOT/lib/libcrypto.$SONAME} \ | ||
-DgRPC_CARES_PROVIDER=package \ | ||
$extra_cmake_variables | ||
|
||
cmake --build . -- ${JOBS:+-j$JOBS} install | ||
|
||
#ModuleFile | ||
mkdir -p etc/modulefiles | ||
alibuild-generate-module > etc/modulefiles/$PKGNAME | ||
cat >> etc/modulefiles/$PKGNAME <<EoF | ||
set GRPC_ROOT \$::env(BASEDIR)/$PKGNAME/\$version | ||
prepend-path PATH \$GRPC_ROOT/bin | ||
prepend-path LD_LIBRARY_PATH \$GRPC_ROOT/lib | ||
EoF | ||
alibuild-generate-module --bin --lib > etc/modulefiles/$PKGNAME | ||
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles |