blob: 124d5d4f6dda550bc85488b3731ee81d298ae436 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
FROM devnexen/android-ndk:r20 AS android-ndk
ARG ANDROID_ARCH
ARG ANDROID_TOOLCHAIN_SUF
ARG ANDROID_ARCH_SUF
ARG ANDROID_SDK_VER
RUN apt-get update && apt-get install -y --no-install-recommends python
RUN mkdir -p /botan/android
WORKDIR /botan
COPY configure.py configure.py
COPY src src
COPY doc doc
COPY license.txt license.txt
COPY news.rst news.rst
ENV PATH=$PATH:/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/
RUN ./configure.py --prefix=android/arm --os=android --cpu=${ANDROID_ARCH} --cc=clang --cc-bin=${ANDROID_ARCH}${ANDROID_ARCH_SUF}-linux-android${ANDROID_TOOLCHAIN_SUF}${ANDROID_SDK_VER}-clang++ --ar-command=${ANDROID_ARCH}${ANDROID_ARCH_SUF}-linux-android${ANDROID_TOOLCHAIN_SUF}-ar
RUN make -j`getconf _NPROCESSORS_ONLN`
RUN make install
|