File indexing completed on 2024-05-19 04:43:19
0001 #!/bin/bash 0002 # SPDX-License-Identifier: BSD-2-Clause 0003 # SPDX-FileCopyrightText: 2020-2022 Volker Krause <vkrause@kde.org> 0004 set -e 0005 set -x 0006 0007 QT_VERSION=6.6.1 0008 0009 function build-static-qt-module() { 0010 local module=$1 0011 shift 0012 0013 mkdir -p $BUILD_ROOT 0014 mkdir -p $STAGING_ROOT 0015 pushd $BUILD_ROOT 0016 0017 git clone --branch v$QT_VERSION --depth 1 https://invent.kde.org/qt/qt/$module 0018 cd $module 0019 mkdir build 0020 cd build 0021 if [ $module == "qtbase" ]; then 0022 ../configure -prefix $STAGING_ROOT $@ 0023 else 0024 cmake -DCMAKE_PREFIX_PATH=$STAGING_ROOT -DCMAKE_INSTALL_PREFIX=$STAGING_ROOT .. $@ 0025 fi 0026 make -j 4 0027 make install/fast 0028 0029 popd 0030 } 0031 0032 export OPENSSL_LIBS="-L$STAGING_ROOT/lib -lssl -lcrypto -pthread -ldl" 0033 0034 build-static-qt-module qtbase \ 0035 -release -optimize-size \ 0036 -qpa offscreen \ 0037 -no-pch \ 0038 -no-icu \ 0039 -no-dbus \ 0040 -no-glib \ 0041 -no-xcb -no-opengl -no-feature-vulkan \ 0042 -no-feature-sql \ 0043 -no-widgets \ 0044 -no-gui \ 0045 -no-feature-concurrent -no-feature-future -no-feature-sharedmemory \ 0046 -no-feature-desktopservices \ 0047 -no-feature-proxymodel -no-feature-stringlistmodel \ 0048 -no-feature-testlib \ 0049 -ssl -openssl-linked -I $STAGING_ROOT/include -L $STAGING_ROOT/lib \ 0050 -static -confirm-license -opensource -make libs -make tools