Switch to new package format

This commit is contained in:
2026-06-13 20:01:13 +03:00
parent 96561cae55
commit c39a251dc8
3 changed files with 54 additions and 5 deletions
+4 -3
View File
@@ -1,7 +1,7 @@
name: qt6-tools name: qt6-tools
description: A cross-platform application and UI framework (Development Tools, QtHelp) description: A cross-platform application and UI framework (Development Tools, QtHelp)
version: 6.11.1 version: 6.11.1
revision: 1 revision: 2
url: https://www.qt.io/ url: https://www.qt.io/
license: FDL,GPL3,LGPL3,custom license: FDL,GPL3,LGPL3,custom
maintainers: maintainers:
@@ -14,13 +14,14 @@ depends:
- qt6-base - qt6-base
- zstd - zstd
optional_depends: optional_depends:
- clang - clang:For qdoc and lupdate
- qt6-declarative - qt6-declarative:For qdistancefieldgenerator, qdoc and lupdate
make_depends: make_depends:
- clang - clang
- cmake - cmake
- git - git
- llvm - llvm
- ninja
- qt6-declarative - qt6-declarative
- vulkan-headers - vulkan-headers
downloads: downloads:
+7 -2
View File
@@ -1,4 +1,4 @@
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package # This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
@@ -6,6 +6,7 @@
# This function is used for putting downloaded files to the correct location or applying patches # This function is used for putting downloaded files to the correct location or applying patches
prepare() { prepare() {
cd "$BPM_SOURCE" cd "$BPM_SOURCE"
patch -Np1 -i "$BPM_WORKDIR"/llvm22.patch
git submodule init git submodule init
git submodule update --init --recursive git submodule update --init --recursive
} }
@@ -13,7 +14,11 @@ prepare() {
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DINSTALL_PUBLICBINDIR=usr/bin -DCMAKE_MESSAGE_LOG_LEVEL=STATUS cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DQT_INSTALL_XDG_DESKTOP_ENTRIES=ON \
-DQLITEHTML_USE_SYSTEM_LITEHTML=ON \
-DCMAKE_MESSAGE_LOG_LEVEL=STATUS
cmake --build build cmake --build build
} }
+43
View File
@@ -0,0 +1,43 @@
diff --git a/src/qdoc/cmake/QDocConfiguration.cmake b/src/qdoc/cmake/QDocConfiguration.cmake
index 72d27db9e..8a3cba463 100644
--- a/src/qdoc/cmake/QDocConfiguration.cmake
+++ b/src/qdoc/cmake/QDocConfiguration.cmake
@@ -8,7 +8,7 @@ set(QDOC_MINIMUM_CLANG_VERSION "17")
# List of explicitly supported Clang versions for QDoc
set(QDOC_SUPPORTED_CLANG_VERSIONS
- "21.1" "20.1" "19.1" "18.1" "17.0.6"
+ "22.1" "22.0" "21.1" "20.1" "19.1" "18.1" "17.0.6"
)
# Check for QDoc coverage dependencies
diff --git a/src/qdoc/qdoc/CMakeLists.txt b/src/qdoc/qdoc/CMakeLists.txt
index 90f1d7c23..84ebc3a28 100644
--- a/src/qdoc/qdoc/CMakeLists.txt
+++ b/src/qdoc/qdoc/CMakeLists.txt
@@ -191,6 +191,7 @@ qt_internal_add_tool(${target_name}
DEFINES
# To provide the ability to workaround version-specific Clang issues.
# A re-export of (LLVM|CLANG)_VERSION_MAJOR done in WrapLibClang.cmake
+ QT_NO_EMIT
LIBCLANG_VERSION_MAJOR=${QT_LIB_CLANG_VERSION_MAJOR}
)
diff --git a/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp b/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp
index 66a750a3d..3f54ddff5 100644
--- a/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp
+++ b/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp
@@ -43,7 +43,12 @@
#include <clang/Lex/Lexer.h>
#include <llvm/Support/Casting.h>
-#include "clang/AST/QualTypeNames.h"
+#if LIBCLANG_VERSION_MAJOR >= 22
+// LLVM 22 provides a compatible QualTypeNames implementation in libclang.
+# include <clang/AST/QualTypeNames.h>
+#else
+# include "clang/AST/QualTypeNames.h"
+#endif
#include "template_declaration.h"
#include <cstdio>