-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable build with Qt6, and it compats Qt5. Log: Enable Qt6 building.
- Loading branch information
1 parent
24bc50e
commit e7d9048
Showing
52 changed files
with
437 additions
and
199 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
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,39 @@ | ||
function(TRANSLATION_GENERATE QMS) | ||
find_package(Qt${QT_VERSION_MAJOR}LinguistTools QUIET) | ||
|
||
if (NOT Qt${QT_VERSION_MAJOR}_LRELEASE_EXECUTABLE) | ||
set(QT_LRELEASE "/lib/qt${QT_VERSION_MAJOR}/bin/lrelease") | ||
message(STATUS "NOT found lrelease, set QT_LRELEASE = ${QT_LRELEASE}") | ||
else() | ||
set(QT_LRELEASE "${Qt${QT_VERSION_MAJOR}_LRELEASE_EXECUTABLE}") | ||
endif() | ||
|
||
if(NOT ARGN) | ||
message(SEND_ERROR "Error: TRANSLATION_GENERATE() called without any .ts path") | ||
return() | ||
endif() | ||
|
||
# # 获取 translations 目录下的所有 .ts 文件 | ||
# file(GLOB_RECURSE TS_FILES "${ARGN}/*.ts") | ||
# 获取指定目录下的所有 .ts 文件,不包括子目录 | ||
file(GLOB TS_FILES "${ARGN}/*.ts") | ||
|
||
set(${QMS}) | ||
foreach(TSFIL ${TS_FILES}) | ||
get_filename_component(FIL_WE ${TSFIL} NAME_WE) | ||
# get_filename_component(TS_DIR ${TSFIL} DIRECTORY) | ||
set(QMFIL ${CMAKE_CURRENT_BINARY_DIR}/${FIL_WE}.qm) | ||
list(APPEND ${QMS} ${QMFIL}) | ||
add_custom_command( | ||
OUTPUT ${QMFIL} | ||
# COMMAND ${Qt5_LUPDATE_EXECUTABLE} ${CMAKE_SOURCE_DIR} -ts ${TSFIL} | ||
COMMAND ${QT_LRELEASE} ${TSFIL} -qm ${QMFIL} | ||
DEPENDS ${TSFIL} | ||
COMMENT "Running ${QT_LRELEASE} on ${TSFIL}" | ||
VERBATIM | ||
) | ||
endforeach() | ||
|
||
set_source_files_properties(${${QMS}} PROPERTIES GENERATED TRUE) | ||
set(${QMS} ${${QMS}} PARENT_SCOPE) | ||
endfunction() |
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
deepin-deb-installer (6.5.4) unstable; urgency=medium | ||
|
||
* feat: Enable support Qt6 build. | ||
|
||
-- re2zero <[email protected]> Fri, 3 Jan 2025 16:27:05 +0800 | ||
|
||
deepin-deb-installer (6.5.3) unstable; urgency=medium | ||
|
||
* fix: assume yes in immutable install(Bug: 291783)(Influence: immutable) | ||
|
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 |
---|---|---|
|
@@ -2,15 +2,30 @@ Source: deepin-deb-installer | |
Section: utils | ||
Priority: optional | ||
Maintainer: Deepin Packages Builder <[email protected]> | ||
Build-Depends: debhelper (>= 9), pkg-config, cmake, libqt5widgets5, libqt5concurrent5, libqapt-dev, libdtkwidget-dev, qtbase5-dev, qttools5-dev-tools, qttools5-dev, qtchooser, libgtest-dev, deepin-gettext-tools, libpolkit-qt5-1-dev | ||
Build-Depends: | ||
debhelper (>= 9), | ||
pkg-config, | ||
cmake, | ||
qt6-5compat-dev | hello, | ||
qt6-base-dev | qtbase5-dev, | ||
qt6-tools-dev-tools | qttools5-dev-tools, | ||
qt6-tools-dev | qttools5-dev, | ||
qt6-svg-dev | libqt5svg5-dev, | ||
libdtk6widget-dev | libdtkwidget-dev, | ||
libdtk6gui-dev | libdtkgui-dev, | ||
libdtk6core-dev | libdtkcore-dev, | ||
libqapt-qt6-dev | libqapt-dev, | ||
libpolkit-qt6-1-dev | libpolkit-qt5-1-dev, | ||
libgtest-dev, | ||
deepin-gettext-tools, | ||
Standards-Version: 4.3.0 | ||
Homepage: https://www.deepin.com/ | ||
|
||
Package: deepin-deb-installer | ||
Architecture: any | ||
Depends: ${shlibs:Depends}, ${misc:Depends}, | ||
libqapt3-runtime, | ||
libqapt3, | ||
libqapt3-qt6-runtime | libqapt-runtime, | ||
libqapt3-qt6 | libqapt3, | ||
# deepin-app-store-runtime is available in the community edition. | ||
deepin-elf-verify | deepin-app-store-runtime, | ||
deepin-elf-sign-tool | deepin-app-store-runtime | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
#define COMPATIBLEBACKEND_H | ||
|
||
#include <QObject> | ||
#include <QHash> | ||
|
||
#include "compatible_defines.h" | ||
|
||
|
Oops, something went wrong.