aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-12-22 09:19:09 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-22 13:02:39 +1300
commitc8c6035d79b492608509588925fe838df305a110 (patch)
treebd577fc0da8abaa84dd14da52ccbfc97afb36da9 /scripts
parente46fea155d311bfeada7e3c58c421d9534b7663d (diff)
downloadsubsurface-c8c6035d79b492608509588925fe838df305a110.tar.gz
Android: add Dockerfile for build environment
We'll use that on Travis, but anyone can use that on their system. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/docker/android-build-container/Dockerfile32
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/docker/android-build-container/Dockerfile b/scripts/docker/android-build-container/Dockerfile
new file mode 100644
index 000000000..b03a0a05a
--- /dev/null
+++ b/scripts/docker/android-build-container/Dockerfile
@@ -0,0 +1,32 @@
+From ubuntu:18.04
+
+RUN apt-get update && \
+ apt-get upgrade -y && \
+ apt-get install -y \
+ autoconf \
+ automake \
+ git \
+ libtool-bin \
+ make \
+ cmake \
+ wget \
+ unzip \
+ python \
+ bzip2 \
+ pkg-config \
+ libx11-xcb1 \
+ libgl1-mesa-glx \
+ libglib2.0-0 \
+ openjdk-8-jdk
+
+RUN mkdir -p /android
+ADD qt-opensource-linux-x64-5.11.1.run /android/
+ADD android-ndk-r14b-linux-x86_64.zip /android/
+ADD android-build-wrapper.sh variables.sh qt-installer-noninteractive.qs /android/
+
+RUN cd /android && bash -x /android/android-build-wrapper.sh -prep-only && \
+ rm -f qt-opensource-linux-x64-5.11.1.run android-ndk-r14b-linux-x86_64.zip && \
+ rm -rf android-sdk-linux/emulator Qt/Docs Qt/Tools Qt/Examples && \
+ rm -rf $( find android-ndk*/platforms -name arch-mips -o -name arch-x86 ) && \
+ ls -l && \
+ du -sh *