mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Add a Dockerfile to build libzmq for android
This commit is contained in:
parent
a9bad3bc13
commit
8f1810d1e2
22
builds/android/Dockerfile
Normal file
22
builds/android/Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
FROM ubuntu:14.04
|
||||
MAINTAINER Benjamin Henrion <zoobab@gmail.com>
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y -q
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q --force-yes tar git curl nano wget dialog net-tools build-essential vim emacs apt-utils file uuid-dev cmake asciidoc python autoconf automake libtool pkg-config xmlto sudo gettext apt-utils
|
||||
|
||||
RUN useradd -d /home/zmq -m -s /bin/bash zmq
|
||||
RUN echo "zmq ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/zmq
|
||||
RUN chmod 0440 /etc/sudoers.d/zmq
|
||||
|
||||
USER zmq
|
||||
# install android-ndk
|
||||
RUN cd ~ && wget -q http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin -O android-ndk-r10e-linux-x86_64.bin && chmod +x android-ndk-r10e-linux-x86_64.bin
|
||||
RUN cd ~ && ./android-ndk-r10e-linux-x86_64.bin
|
||||
ENV ANDROID_NDK_ROOT /home/zmq/android-ndk-r10e
|
||||
ENV TOOLCHAIN_NAME arm-linux-androideabi-4.9
|
||||
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 ~/libzmq/builds/android && ./build.sh
|
@ -55,5 +55,5 @@ LIBTOOL_EXTRA_LDFLAGS='-avoid-version'
|
||||
##
|
||||
# Verify shared libraries in prefix
|
||||
|
||||
android_build_verify_so "libsodium.so"
|
||||
android_build_verify_so "libzmq.so" "libsodium.so"
|
||||
echo "libzmq android build succeeded"
|
||||
|
Loading…
Reference in New Issue
Block a user