File indexing completed on 2024-05-12 05:17:33
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 build-static-qt-module qtbase \ 0033 -release -optimize-size \ 0034 -qpa offscreen \ 0035 -no-pch \ 0036 -no-icu \ 0037 -no-dbus \ 0038 -no-glib \ 0039 -no-xcb -no-opengl -no-feature-vulkan \ 0040 -no-feature-sql \ 0041 -no-widgets \ 0042 -no-feature-sha3-fast \ 0043 -no-accessibility \ 0044 -no-feature-animation -no-feature-clipboard -no-feature-colornames -no-feature-cursor -no-feature-cssparser -no-feature-draganddrop \ 0045 -no-feature-gestures -no-feature-im \ 0046 -no-feature-image_heuristic_mask -no-feature-image_text -no-feature-imageformat_bmp -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-imageformat_xpm -no-feature-imageformatplugin -no-feature-movie \ 0047 -no-feature-picture -no-feature-pdf \ 0048 -no-feature-concurrent -no-feature-future -no-feature-sharedmemory \ 0049 -no-feature-syntaxhighlighter \ 0050 -no-feature-tabletevent -no-feature-wheelevent \ 0051 -no-feature-texthtmlparser -no-feature-textodfwriter \ 0052 -no-feature-topleveldomain \ 0053 -no-feature-validator \ 0054 -no-feature-desktopservices \ 0055 -no-feature-proxymodel -no-feature-stringlistmodel \ 0056 -no-feature-testlib \ 0057 -no-fontconfig -no-harfbuzz \ 0058 -no-feature-sessionmanager \ 0059 -no-feature-textmarkdownreader -no-feature-textmarkdownwriter \ 0060 -static -confirm-license -opensource -make libs -make tools 0061 0062 build-static-qt-module qtdeclarative \ 0063 -DFEATURE_qml_debug=OFF \ 0064 -DFEATURE_qml_preview=OFF \ 0065 -DFEATURE_qml_profiler=OFF \ 0066 -DFEATURE_qml_animation=OFF \ 0067 -DFEATURE_qml_delegate_model=OFF \ 0068 -DFEATURE_qml_network=OFF \ 0069 -DFEATURE_qml_list_model=OFF \ 0070 -DFEATURE_qml_worker_script=OFF \ 0071 0072 build-static-qt-module qttools \ 0073 -DFEATURE_qtattributionsscanner=OFF \ 0074 -DFEATURE_qtplugininfo=OFF \