aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/Dockerfile.android
blob: 4087d6bb3f67cd625e0a98c07aac2e4612b4552d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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