Skip to content

Commit 80a204c

Browse files
re2zerowyu71
authored andcommitted
build(cmake): refactor Qt version compatibility
- Separate debian/control files: * control: V25 (Qt6) with explicit qt6-base-dev, libdtk6*-dev deps * control.1: V20 (Qt5) with explicit qtbase5-dev, libdtk*-dev deps This enables seamless building on both V25 (Qt6) and V20 (Qt5) systems without version-specific conditional dependencies. Log: 分离Qt5/Qt6构建配置,支持V25/V20双版本 PMS: https://pms.uniontech.com/task-view-386321.html
1 parent e8c97c1 commit 80a204c

2 files changed

Lines changed: 53 additions & 15 deletions

File tree

debian/control

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Source: deepin-reader
32
Section: graphics
43
Priority: optional
@@ -7,15 +6,14 @@ Build-Depends:
76
cmake,
87
debhelper (>= 11),
98
pkg-config,
10-
qt6-5compat-dev [!mipsel !mips64el] | libqt5x11extras5-dev,
11-
qt6-base-dev [!mipsel !mips64el] | qtbase5-dev,
12-
qt6-tools-dev-tools [!mipsel !mips64el] | qttools5-dev-tools,
13-
qt6-tools-dev [!mipsel !mips64el] | qttools5-dev,
14-
qt6-svg-dev [!mipsel !mips64el] | libqt5svg5-dev,
15-
qt6-webengine-dev [!mipsel !mips64el] | qtwebengine5-dev,
16-
libdtk6widget-dev [!mipsel !mips64el] | libdtkwidget-dev,
17-
libdtk6gui-dev [!mipsel !mips64el] | libdtkgui-dev,
18-
libdtk6core-dev [!mipsel !mips64el] | libdtkcore-dev,
9+
qt6-base-dev,
10+
qt6-tools-dev-tools,
11+
qt6-tools-dev,
12+
qt6-svg-dev,
13+
qt6-webengine-dev,
14+
libdtk6widget-dev,
15+
libdtk6gui-dev,
16+
libdtk6core-dev,
1917
libgxps-dev,
2018
libcairo2-dev,
2119
libglib2.0-dev,
@@ -35,10 +33,10 @@ Standards-Version: 4.5.0
3533

3634
Package: deepin-reader
3735
Architecture: any
38-
Depends:
39-
${shlibs:Depends},
40-
${misc:Depends},
41-
pandoc,
42-
libqt6webenginecore6-bin [!mipsel !mips64el] | libqt5core5a,
36+
Depends:
37+
${shlibs:Depends},
38+
${misc:Depends},
39+
pandoc,
40+
libqt6webenginecore6-bin,
4341
Description: a tool for reading document files.
4442
Document Viewer is a tool for reading document files, supporting PDF, DJVU, DOCX etc.

debian/control.1

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Source: deepin-reader
2+
Section: graphics
3+
Priority: optional
4+
Maintainer: deepin <packages@deepin.com>
5+
Build-Depends:
6+
cmake,
7+
debhelper (>= 11),
8+
pkg-config,
9+
qtbase5-dev,
10+
qt5-qmake,
11+
qttools5-dev-tools,
12+
libqt5svg5-dev,
13+
libqt5x11extras5-dev,
14+
qtwebengine5-dev,
15+
libdtkwidget-dev,
16+
libdtkgui-dev,
17+
libdtkcore-dev,
18+
libspectre-dev,
19+
libdjvulibre-dev,
20+
libtiff-dev,
21+
libjpeg-dev,
22+
libicu-dev,
23+
libpng-dev,
24+
zlib1g-dev,
25+
liblcms2-dev,
26+
libopenjp2-7-dev,
27+
libfreetype6-dev,
28+
libgtest-dev,
29+
libchardet-dev,
30+
libxkbcommon-dev,
31+
Standards-Version: 4.5.0
32+
33+
Package: deepin-reader
34+
Architecture: any
35+
Depends:
36+
${shlibs:Depends},
37+
${misc:Depends},
38+
pandoc,
39+
Description: a tool for reading document files.
40+
Document Viewer is a tool for reading document files, supporting PDF, DJVU, DOCX etc.

0 commit comments

Comments
 (0)