diff options
author | MoroccanMalinois <MoroccanMalinois@protonmail.com> | 2018-09-10 10:12:43 -0400 |
---|---|---|
committer | MoroccanMalinois <MoroccanMalinois@protonmail.com> | 2018-09-10 10:12:43 -0400 |
commit | 89202ce4626e781db9c1ed93885ddf6f9b2ac40c (patch) | |
tree | afc4c87dab0a9309303cfc9cc9a36765e4caeb92 /utils/build_scripts/android32.Dockerfile | |
parent | Docker android: use common prefix (diff) | |
download | monero-89202ce4626e781db9c1ed93885ddf6f9b2ac40c.tar.xz |
Docker android: add libsodium
Diffstat (limited to '')
-rw-r--r-- | utils/build_scripts/android32.Dockerfile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/build_scripts/android32.Dockerfile b/utils/build_scripts/android32.Dockerfile index 7ad1363bb..2738d8d57 100644 --- a/utils/build_scripts/android32.Dockerfile +++ b/utils/build_scripts/android32.Dockerfile @@ -121,6 +121,18 @@ RUN git clone https://github.com/zeromq/cppzmq.git -b ${CPPZMQ_VERSION} \ && test `git rev-parse HEAD` = ${CPPZMQ_HASH} || exit 1 \ && cp *.hpp ${PREFIX}/include +# Sodium +ARG SODIUM_VERSION=1.0.16 +ARG SODIUM_HASH=675149b9b8b66ff44152553fb3ebf9858128363d +RUN set -ex \ + && git clone https://github.com/jedisct1/libsodium.git -b ${SODIUM_VERSION} \ + && cd libsodium \ + && test `git rev-parse HEAD` = ${SODIUM_HASH} || exit 1 \ + && ./autogen.sh \ + && CC=clang CXX=clang++ ./configure --prefix=${PREFIX} --host=arm-linux-androideabi --enable-static --disable-shared \ + && make -j${NPROC} \ + && make install + ADD . /src RUN cd /src \ && CMAKE_INCLUDE_PATH="${PREFIX}/include" \ |