Commit c644e1a4 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all:
tar xf protobuf-3.5.1.tar.gz
cd protobuf-3.5.1 && ./autogen.sh
cd protobuf-3.5.1 && ./configure --prefix=/usr
$(MAKE) -C protobuf-3.5.1
$(MAKE) -C protobuf-3.5.1 install
rm -rf protobuf-3.5.1
javalite:
tar xf protobuf-3.0.1-javalite.tar.gz
patch -Np1 -d protobuf-3.0.1-javalite < protobuf-3.0.1-javalite-fix_gmock.patch
cd protobuf-3.0.1-javalite && ./autogen.sh
cd protobuf-3.0.1-javalite && ./configure --prefix=/usr
$(MAKE) -C protobuf-3.0.1-javalite
$(MAKE) -C protobuf-3.0.1-javalite install
rm -rf protobuf-3.0.1-javalite
diff -uNr protobuf-3.0.1-javalite/autogen.sh protobuf-3.0.1-javalite-fix_gmock/autogen.sh
--- protobuf-3.0.1-javalite/autogen.sh 2016-07-30 02:24:31.000000000 +0930
+++ protobuf-3.0.1-javalite-fix_gmock/autogen.sh 2021-03-15 15:35:50.567132054 +1030
@@ -29,12 +29,17 @@
# Check that gmock is present. Usually it is already there since the
# directory is set up as an SVN external.
-if test ! -e gmock; then
- echo "Google Mock not present. Fetching gmock-1.7.0 from the web..."
- curl $curlopts -O https://googlemock.googlecode.com/files/gmock-1.7.0.zip
- unzip -q gmock-1.7.0.zip
- rm gmock-1.7.0.zip
- mv gmock-1.7.0 gmock
+if test ! -e gmock -o && ! -e googlemock-release-1.7.0; then
+ echo "Google Mock not present. Fetching gmock-1.7.0 from the web..."
+ curl $curlopts -L -O https://github.com/google/googlemock/archive/release-1.7.0.zip
+ unzip -q release-1.7.0.zip
+ rm release-1.7.0.zip
+ mv googlemock-release-1.7.0 gmock
+
+ curl $curlopts -L -O https://github.com/google/googletest/archive/release-1.7.0.zip
+ unzip -q release-1.7.0.zip
+ rm release-1.7.0.zip
+ mv googletest-release-1.7.0 gmock/gtest
fi
set -ex
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment