mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-12-04 00:38:09 +00:00
199 lines
5.6 KiB
Docker
199 lines
5.6 KiB
Docker
FROM ubuntu:24.04
|
|
|
|
ARG THREADS=1
|
|
ARG QT_VERSION=v6.8.5-lts-lgpl
|
|
ARG QT_COMMIT=a5f4a849af9903bc8a9dd3c0d7f79e5924f70e45
|
|
|
|
ENV SOURCE_DATE_EPOCH=1397818193
|
|
ENV QT_HOST_BUILD=/opt/qt-host
|
|
ENV QT_HOST_PREFIX=${QT_HOST_BUILD}/qtbase
|
|
ENV LD_LIBRARY_PATH=${QT_HOST_PREFIX}/lib:${QT_HOST_PREFIX}
|
|
ENV QT_TARGET_PREFIX=/depends/x86_64-w64-mingw32
|
|
ENV PATH=${QT_HOST_PREFIX}/bin:${QT_HOST_PREFIX}/libexec:${PATH}
|
|
|
|
RUN apt update && \
|
|
DEBIAN_FRONTEND=noninteractive apt install -y \
|
|
autoconf \
|
|
automake \
|
|
autopoint \
|
|
bison \
|
|
build-essential \
|
|
ca-certificates \
|
|
cmake \
|
|
curl \
|
|
flex \
|
|
g++-mingw-w64 \
|
|
gettext \
|
|
git \
|
|
gperf \
|
|
libdbus-1-3 \
|
|
libfontconfig1-dev \
|
|
libglib2.0-0 \
|
|
libgl1-mesa-dev \
|
|
libgssapi-krb5-2 \
|
|
libtool \
|
|
libxkbcommon0 \
|
|
ninja-build \
|
|
perl \
|
|
pkg-config \
|
|
python3 \
|
|
python-is-python3 \
|
|
xz-utils && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN update-alternatives --set x86_64-w64-mingw32-g++ "$(which x86_64-w64-mingw32-g++-posix)" && \
|
|
update-alternatives --set x86_64-w64-mingw32-gcc "$(which x86_64-w64-mingw32-gcc-posix)"
|
|
|
|
RUN git clone -b v0.18.5.4 --depth 1 https://github.com/monero-project/monero && \
|
|
cd monero && \
|
|
git reset --hard 85f036ba7019cd36f08e8a38a27c37ea7b522618 && \
|
|
cp -a contrib/depends / && \
|
|
cd .. && \
|
|
rm -rf monero
|
|
|
|
RUN make -j"$THREADS" -C /depends HOST=x86_64-w64-mingw32
|
|
|
|
ARG QT_UNITY_BUILD=ON
|
|
|
|
RUN git clone https://github.com/qt/qt5.git -b "${QT_VERSION}" --depth 1 qt-sources && \
|
|
git -C qt-sources reset --hard "${QT_COMMIT}" && \
|
|
mkdir -p "${QT_HOST_BUILD}" && \
|
|
cd "${QT_HOST_BUILD}" && \
|
|
/qt-sources/configure -init-submodules \
|
|
-submodules qtbase,qtdeclarative,qtshadertools,qttools \
|
|
-skip qtactiveqt \
|
|
-skip qtlanguageserver \
|
|
-skip qtquicktimeline \
|
|
-developer-build \
|
|
-no-warnings-are-errors \
|
|
-opensource \
|
|
-confirm-license \
|
|
-release \
|
|
-no-feature-testlib \
|
|
-no-feature-widgets \
|
|
-no-feature-qml-debug \
|
|
-no-feature-assistant \
|
|
-no-feature-clang \
|
|
-no-feature-clangcpp \
|
|
-no-feature-designer \
|
|
-no-feature-distancefieldgenerator \
|
|
-no-feature-pixeltool \
|
|
-no-feature-qdbus \
|
|
-no-feature-qdoc \
|
|
-no-feature-qev \
|
|
-no-feature-qtattributionsscanner \
|
|
-no-feature-qtdiag \
|
|
-no-feature-qtplugininfo \
|
|
-nomake examples \
|
|
-nomake tests \
|
|
-- -DQT_UNITY_BUILD="${QT_UNITY_BUILD}" && \
|
|
cmake --build . --parallel "$THREADS" --target host_tools && \
|
|
mkdir /qt-target-build && \
|
|
cd /qt-target-build && \
|
|
/qt-sources/configure -init-submodules \
|
|
-submodules qtbase,qtdeclarative,qtshadertools,qtsvg,qttools \
|
|
-skip qtactiveqt \
|
|
-skip qtlanguageserver \
|
|
-skip qtquicktimeline \
|
|
-prefix "${QT_TARGET_PREFIX}" \
|
|
-qt-host-path "${QT_HOST_PREFIX}" \
|
|
-xplatform win32-g++ \
|
|
-device-option CROSS_COMPILE=/usr/bin/x86_64-w64-mingw32- \
|
|
-opensource \
|
|
-confirm-license \
|
|
-release \
|
|
-static \
|
|
-static-runtime \
|
|
-opengl dynamic \
|
|
-no-avx \
|
|
-no-openssl \
|
|
-no-feature-sql \
|
|
-no-feature-http \
|
|
-no-feature-ssl \
|
|
-no-feature-dtls \
|
|
-no-feature-ocsp \
|
|
-no-feature-networkproxy \
|
|
-no-feature-socks5 \
|
|
-no-feature-networkdiskcache \
|
|
-no-feature-brotli \
|
|
-no-feature-dnslookup \
|
|
-no-feature-topleveldomain \
|
|
-no-feature-udpsocket \
|
|
-no-feature-system-proxies \
|
|
-no-feature-sctp \
|
|
-no-feature-schannel \
|
|
-no-feature-qml-worker-script \
|
|
-no-feature-testlib \
|
|
-no-feature-quick-particles \
|
|
-no-feature-qml-xmllistmodel \
|
|
-no-feature-qml-debug \
|
|
-no-feature-quickcontrols2-imagine \
|
|
-no-feature-quickcontrols2-universal \
|
|
-no-feature-quickcontrols2-fluentwinui3 \
|
|
-no-feature-printsupport \
|
|
-no-feature-pdf \
|
|
-no-feature-vulkan \
|
|
-no-feature-sessionmanager \
|
|
-no-feature-assistant \
|
|
-no-feature-designer \
|
|
-no-feature-qdoc \
|
|
-no-feature-clang \
|
|
-no-feature-clangcpp \
|
|
-no-feature-distancefieldgenerator \
|
|
-no-feature-pixeltool \
|
|
-no-feature-qdbus \
|
|
-no-feature-qev \
|
|
-no-feature-qtattributionsscanner \
|
|
-no-feature-qtdiag \
|
|
-no-feature-qtplugininfo \
|
|
-qt-freetype \
|
|
-qt-harfbuzz \
|
|
-qt-libjpeg \
|
|
-qt-libpng \
|
|
-qt-pcre \
|
|
-qt-zlib \
|
|
-nomake examples \
|
|
-nomake tests \
|
|
-- \
|
|
-DQT_UNITY_BUILD="${QT_UNITY_BUILD}" \
|
|
-DCMAKE_TOOLCHAIN_FILE=/depends/x86_64-w64-mingw32/share/toolchain.cmake && \
|
|
cmake --build . --parallel "$THREADS" && \
|
|
cmake --install . && \
|
|
cd / && \
|
|
rm -rf qt-target-build qt-sources
|
|
|
|
RUN git clone -b libgpg-error-1.38 --depth 1 https://github.com/gpg/libgpg-error && \
|
|
cd libgpg-error && \
|
|
git reset --hard 71d278824c5fe61865f7927a2ed1aa3115f9e439 && \
|
|
./autogen.sh && \
|
|
./configure \
|
|
--disable-shared \
|
|
--enable-static \
|
|
--disable-doc \
|
|
--disable-tests \
|
|
--host=x86_64-w64-mingw32 \
|
|
--prefix=/depends/x86_64-w64-mingw32 && \
|
|
make -j"$THREADS" && \
|
|
make -j"$THREADS" install && \
|
|
cd .. && \
|
|
rm -rf libgpg-error
|
|
|
|
RUN git clone -b libgcrypt-1.8.5 --depth 1 https://github.com/gpg/libgcrypt && \
|
|
cd libgcrypt && \
|
|
git reset --hard 56606331bc2a80536db9fc11ad53695126007298 && \
|
|
./autogen.sh && \
|
|
./configure \
|
|
--disable-shared \
|
|
--enable-static \
|
|
--disable-doc \
|
|
--host=x86_64-w64-mingw32 \
|
|
--prefix=/depends/x86_64-w64-mingw32 \
|
|
--with-gpg-error-prefix=/depends/x86_64-w64-mingw32 && \
|
|
make -j"$THREADS" && \
|
|
make -j"$THREADS" install && \
|
|
cd .. && \
|
|
rm -rf libgcrypt
|
|
|
|
COPY docker.gitconfig /etc/monero-gui.gitconfig
|
|
RUN git config --system --add include.path /etc/monero-gui.gitconfig
|