mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
25 lines
1.3 KiB
Docker
25 lines
1.3 KiB
Docker
FROM raymii/qt:5.15-android-source
|
|
|
|
RUN wget 'https://go.dev/dl/go1.23.1.linux-amd64.tar.gz' && \
|
|
tar x -C /usr/local/ -f go1.23.1.linux-amd64.tar.gz && \
|
|
rm go1.23.1.linux-amd64.tar.gz
|
|
|
|
COPY cmd/android-stub-gen/android-stub-gen.sh /usr/local/bin/android-stub-gen.sh
|
|
COPY cmd/android-mktemplate/android-mktemplate.sh /usr/local/bin/android-mktemplate.sh
|
|
|
|
ENV PATH=/usr/local/go/bin:/opt/cmake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/Qt-5.15.13/bin:/opt/android-sdk/cmdline-tools/tools/bin:/opt/android-sdk/tools:/opt/android-sdk/tools/bin:/opt/android-sdk/platform-tools
|
|
|
|
# The pkg-config definitions were all installed with platform-specific suffixes
|
|
# (i.e. need to use Qt5Widgets_arm64-v8a instead of Qt5Widgets)
|
|
# This container is targeting armv8-a, so set up simple symlinks
|
|
RUN /bin/bash -c 'cd /usr/local/Qt-5.15.13/lib/pkgconfig ; for f in *_arm64-v8a.pc ; do cp $f "$(basename -s _arm64-v8a.pc "$f").pc"; done'
|
|
|
|
ENV CC=/opt/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android30-clang
|
|
ENV CXX=/opt/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android30-clang++
|
|
ENV CGO_ENABLED=1
|
|
ENV GOOS=android
|
|
ENV GOARCH=arm64
|
|
ENV GOFLAGS=-buildvcs=false
|
|
ENV PKG_CONFIG_PATH=/usr/local/Qt-5.15.13/lib/pkgconfig
|
|
ENV CGO_CXXFLAGS="-Wno-ignored-attributes -D_Bool=bool"
|