-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Build our own Qt 6.8.1 in the appimage build.
- Loading branch information
Showing
15 changed files
with
396 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# Copyright © 2024 The TokTok team | ||
|
||
set -euxo pipefail | ||
|
||
readonly SCRIPT_DIR="$(dirname "$(realpath "$0")")" | ||
|
||
source "$SCRIPT_DIR/build_utils.sh" | ||
|
||
parse_arch --dep "qtbase" --supported "linux" "$@" | ||
|
||
"$SCRIPT_DIR/download/download_qtbase.sh" | ||
|
||
export CXXFLAGS="-DQT_MESSAGELOGCONTEXT" | ||
export OBJCXXFLAGS="$CXXFLAGS" | ||
|
||
mkdir qtbase/_build && pushd qtbase/_build | ||
../configure -prefix "$DEP_PREFIX/qt" \ | ||
-appstore-compliant \ | ||
-release \ | ||
"-$LIB_TYPE" \ | ||
-force-asserts \ | ||
-qt-doubleconversion \ | ||
-qt-harfbuzz \ | ||
-qt-libjpeg \ | ||
-qt-libpng \ | ||
-qt-pcre \ | ||
-qt-zlib \ | ||
-feature-wayland \ | ||
-feature-zstd \ | ||
-no-feature-androiddeployqt \ | ||
-no-feature-brotli \ | ||
-no-feature-macdeployqt \ | ||
-no-feature-printsupport \ | ||
-no-feature-qmake \ | ||
-no-feature-sql \ | ||
-no-glib \ | ||
-no-opengl \ | ||
-fontconfig \ | ||
-dbus-linked \ | ||
-openssl-linked \ | ||
-opensource -confirm-license \ | ||
-pch \ | ||
-xcb \ | ||
-- \ | ||
-DTEST_xcb_syslibs=TRUE \ | ||
-Wno-dev | ||
cat config.summary | ||
cmake --build . | ||
cmake --install . | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# Copyright © 2024 The TokTok team | ||
|
||
set -euxo pipefail | ||
|
||
readonly SCRIPT_DIR="$(dirname "$(realpath "$0")")" | ||
|
||
source "$SCRIPT_DIR/build_utils.sh" | ||
|
||
parse_arch --dep "qtimageformats" --supported "linux" "$@" | ||
|
||
"$SCRIPT_DIR/download/download_qtimageformats.sh" | ||
|
||
export CXXFLAGS="-DQT_MESSAGELOGCONTEXT" | ||
export OBJCXXFLAGS="$CXXFLAGS" | ||
|
||
mkdir qtimageformats/_build && pushd qtimageformats/_build | ||
"$DEP_PREFIX/qt/bin/qt-configure-module" .. \ | ||
-- \ | ||
-Wno-dev | ||
cmake --build . | ||
cmake --install . | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# Copyright © 2024 The TokTok team | ||
|
||
set -euxo pipefail | ||
|
||
readonly SCRIPT_DIR="$(dirname "$(realpath "$0")")" | ||
|
||
source "$SCRIPT_DIR/build_utils.sh" | ||
|
||
parse_arch --dep "qtsvg" --supported "linux" "$@" | ||
|
||
"$SCRIPT_DIR/download/download_qtsvg.sh" | ||
|
||
export CXXFLAGS="-DQT_MESSAGELOGCONTEXT" | ||
export OBJCXXFLAGS="$CXXFLAGS" | ||
|
||
mkdir qtsvg/_build && pushd qtsvg/_build | ||
"$DEP_PREFIX/qt/bin/qt-configure-module" .. \ | ||
-- \ | ||
-Wno-dev | ||
cmake --build . | ||
cmake --install . | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# Copyright © 2024 The TokTok team | ||
|
||
set -euxo pipefail | ||
|
||
readonly SCRIPT_DIR="$(dirname "$(realpath "$0")")" | ||
|
||
source "$SCRIPT_DIR/build_utils.sh" | ||
|
||
parse_arch --dep "qttools" --supported "linux" "$@" | ||
|
||
"$SCRIPT_DIR/download/download_qttools.sh" | ||
|
||
export CXXFLAGS="-DQT_MESSAGELOGCONTEXT" | ||
export OBJCXXFLAGS="$CXXFLAGS" | ||
|
||
mkdir qttools/_build && pushd qttools/_build | ||
"$DEP_PREFIX/qt/bin/qt-configure-module" .. \ | ||
-no-feature-assistant \ | ||
-no-feature-designer \ | ||
-no-feature-kmap2qmap \ | ||
-no-feature-pixeltool \ | ||
-no-feature-qdbus \ | ||
-no-feature-qdoc \ | ||
-no-feature-qev \ | ||
-no-feature-qtattributionsscanner \ | ||
-no-feature-qtdiag \ | ||
-no-feature-qtplugininfo \ | ||
-- \ | ||
-Wno-dev | ||
cmake --build . | ||
cmake --install . | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# Copyright © 2024 The TokTok team | ||
|
||
set -euxo pipefail | ||
|
||
readonly SCRIPT_DIR="$(dirname "$(realpath "$0")")" | ||
|
||
source "$SCRIPT_DIR/build_utils.sh" | ||
|
||
parse_arch --dep "qtwayland" --supported "linux" "$@" | ||
|
||
"$SCRIPT_DIR/download/download_qtwayland.sh" | ||
|
||
export CXXFLAGS="-DQT_MESSAGELOGCONTEXT" | ||
export OBJCXXFLAGS="$CXXFLAGS" | ||
|
||
mkdir qtwayland/_build && pushd qtwayland/_build | ||
"$DEP_PREFIX/qt/bin/qt-configure-module" .. \ | ||
-- \ | ||
-Wno-dev | ||
cmake --build . | ||
cmake --install . | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.