aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/Dockerfile.android
blob: b55abf63b927f5bb257c13670993d35ad119d72e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM debian:stretch AS debian
ARG ANDORID_SDK_VER
ARG ANDROID_ARCH
ARG ANDROID_TOOLCHAIN_SUF
RUN apt-get update && apt-get -y --no-install-recommends install make
RUN mkdir -p /botan/android
WORKDIR /botan
COPY --from=bitriseio/android-ndk /opt/android-ndk android-ndk
COPY configure.py configure.py
COPY src src
COPY doc doc
COPY license.txt license.txt
COPY news.rst news.rst
ENV PATH=$PATH:android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/
RUN ./configure.py --prefix=android/arm --os=android --cpu=${ANDROID_ARCH} --cc=clang --cc-bin=armv7a-linux-android${ANDROID_TOOLCHAIN_SUF}${SDK}-clang++ --ar-command=arm-linux-android${ANDROID_TOOLCHAIN_SUF}-ar
RUN make -j`getconf _NPROCESSORS_ONLN`
RUN make install