Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
8f1810d1
Commit
8f1810d1
authored
Dec 16, 2015
by
Benjamin Henrion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a Dockerfile to build libzmq for android
parent
a9bad3bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
Dockerfile
builds/android/Dockerfile
+22
-0
build.sh
builds/android/build.sh
+1
-1
No files found.
builds/android/Dockerfile
0 → 100644
View file @
8f1810d1
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
builds/android/build.sh
View file @
8f1810d1
...
...
@@ -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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment