glib/.gitlab-ci/Dockerfile
Xavier Claessens f83493f83d Add Android CI
This adds to the CI a cross build for Android NDK r16 API 21 (because
thats what GStreamer currently use) for arm64.

GNU iconv must be built manually into our docker image because Android
NDK doesn't seems to ship it. The latest NDK r17 API 28 has iconv.h but
iconv_open() symbol isn't found by the linker. Looks like broken NDK.

libffi also needs to be built manually because the meson subproject
doesn't support building for Android platform. It needs a recent RC
release because latest stable release is 4 years old and fails to
build.

Fixes #1385.
2018-05-28 09:17:41 -04:00

46 lines
742 B
Docker

FROM fedora:27
RUN dnf -y install \
desktop-file-utils \
elfutils-libelf-devel \
findutils \
gcc \
gcc-c++ \
gettext \
git \
glibc-devel \
glibc-headers \
gtk-doc \
itstool \
lcov \
libattr-devel \
libffi-devel \
libmount-devel \
libselinux-devel \
libxslt \
ninja-build \
pcre-devel \
python3 \
python3-pip \
python3-wheel \
systemtap-sdt-devel \
zlib-devel \
wget \
unzip \
make \
&& dnf clean all
RUN pip3 install meson
COPY setup-android-ndk.sh .
RUN ./setup-android-ndk.sh
ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID}
RUN useradd -u $HOST_USER_ID -ms /bin/bash user
USER user
WORKDIR /home/user
ENV LANG C.UTF-8