Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added rsocket-cpp dependency to Ubuntu 16.04 build script #306

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mcrouter/scripts/order_ubuntu-16.04/14_rsocket-cpp
22 changes: 22 additions & 0 deletions mcrouter/scripts/recipes/rsocket-cpp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

source common.sh

if [[ ! -d rsocket-cpp ]]; then
git clone https://github.com/rsocket/rsocket-cpp.git
cd "$PKG_DIR/rsocket-cpp" || die "cd fail"
if [[ -f "$REPO_BASE_DIR/mcrouter/RSOCKETCPP_COMMIT" ]]; then
RSOCKETCPP_COMMIT="$(head -n 1 "$REPO_BASE_DIR/mcrouter/RSOCKETCPP_COMMIT")"
echo "RSOCKETCPP_COMMIT file found: using rsocket-cpp commit $RSOCKETCPP_COMMIT"
git checkout "$RSOCKETCPP_COMMIT"
else
echo "No RSOCKETCPP_COMMIT file, using rsocket-cpp HEAD=$(git rev-parse HEAD)"
fi
fi

cd "$PKG_DIR/rsocket-cpp/build" || die "cd fail"
rm -f ../CMakeCache.txt

cmake .. -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" -DBUILD_TESTS=OFF
make $MAKE_ARGS gmock
make $MAKE_ARGS && make install $MAKE_ARGS