mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Problem: build scripts don't need full git history
Solution: add `--depth 1` parameter to `git clone` commands
This commit is contained in:
parent
4705feb2f4
commit
33c5985eb2
@ -18,5 +18,5 @@ ENV TOOLCHAIN_HOST arm-linux-androideabi
|
||||
ENV TOOLCHAIN_PATH ${ANDROID_NDK_ROOT}/toolchains/${TOOLCHAIN_NAME}/prebuilt/linux-x86_64/bin
|
||||
ENV TOOLCHAIN_ARCH arm
|
||||
# build libzmq for android
|
||||
RUN cd ~ && git clone https://github.com/zeromq/libzmq.git
|
||||
RUN cd ~ && git clone --depth 1 https://github.com/zeromq/libzmq.git
|
||||
RUN cd ~/libzmq/builds/android && ./build.sh
|
||||
|
@ -30,7 +30,7 @@ fi
|
||||
|
||||
(android_build_verify_so "libsodium.so" &> /dev/null) || {
|
||||
rm -rf "${cache}/libsodium"
|
||||
(cd "${cache}" && git clone git://github.com/jedisct1/libsodium.git) || exit 1
|
||||
(cd "${cache}" && git clone --depth 1 git://github.com/jedisct1/libsodium.git) || exit 1
|
||||
(cd "${cache}/libsodium" && ./autogen.sh \
|
||||
&& ./configure "${ANDROID_BUILD_OPTS[@]}" --disable-soname-versions \
|
||||
&& make \
|
||||
|
@ -17,7 +17,7 @@ if [ $BUILD_TYPE == "default" ]; then
|
||||
# Build required projects first
|
||||
|
||||
# libsodium
|
||||
git clone git://github.com/jedisct1/libsodium.git
|
||||
git clone --depth 1 git://github.com/jedisct1/libsodium.git
|
||||
( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make check; make install)
|
||||
|
||||
# Build and check this project
|
||||
|
Loading…
Reference in New Issue
Block a user