mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
cf9613056c
- Split the download part into a separate script to so docker keeps that step in cache and avoid redownloading it. - With API level >= 28 libiconv is not needed anymore because it's part of Android's libc. - Generate standalone toolchains to reduce the docker image size. It's also easier because it doesn't need to pass sysroot args. - Use clang compiler because gcc is deprecated in this Android NDK and will be removed in the next release.
61 lines
1.1 KiB
Docker
61 lines
1.1 KiB
Docker
FROM fedora:27
|
|
|
|
RUN dnf -y install \
|
|
desktop-file-utils \
|
|
elfutils-libelf-devel \
|
|
findutils \
|
|
gamin-devel \
|
|
gcc \
|
|
gcc-c++ \
|
|
gettext \
|
|
git \
|
|
glibc-devel \
|
|
glibc-headers \
|
|
gtk-doc \
|
|
itstool \
|
|
lcov \
|
|
libattr-devel \
|
|
libffi-devel \
|
|
libmount-devel \
|
|
libselinux-devel \
|
|
libxslt \
|
|
make \
|
|
mingw64-gcc \
|
|
mingw64-gcc-c++ \
|
|
mingw64-gettext \
|
|
mingw64-libffi \
|
|
mingw64-zlib \
|
|
ncurses-compat-libs \
|
|
ninja-build \
|
|
pcre-devel \
|
|
python3 \
|
|
python3-pip \
|
|
python3-wheel \
|
|
systemtap-sdt-devel \
|
|
unzip \
|
|
wget \
|
|
zlib-devel \
|
|
&& dnf clean all
|
|
|
|
WORKDIR /opt
|
|
ENV ANDROID_NDK_PATH /opt/android-ndk
|
|
COPY android-download-ndk.sh .
|
|
RUN ./android-download-ndk.sh
|
|
COPY android-setup-env.sh .
|
|
RUN ./android-setup-env.sh arm64 21
|
|
RUN ./android-setup-env.sh arm64 28
|
|
RUN rm -rf $ANDROID_NDK_PATH
|
|
|
|
COPY cross_file_mingw64.txt /opt
|
|
|
|
RUN pip3 install meson==0.46.1
|
|
|
|
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
|