Skip to content

Commit

Permalink
chore: port to Qt 6
Browse files Browse the repository at this point in the history
支持 Qt 6

Log:
  • Loading branch information
BLumia authored and deepin-bot[bot] committed Nov 18, 2024
1 parent 967a01b commit f7c1edd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON) # ensure adapter class can include launcheri1compat.h

find_package(Qt5 REQUIRED COMPONENTS Core LinguistTools)
find_package(Dtk REQUIRED COMPONENTS Core Gui)
find_package(QCoro5 COMPONENTS Core REQUIRED)
find_package(Qt6 REQUIRED COMPONENTS Core LinguistTools)
find_package(Dtk6 REQUIRED COMPONENTS Core Gui)
find_package(QCoro6 COMPONENTS Core REQUIRED)
find_package(AppStreamQt REQUIRED)
find_package(PackageKitQt5 REQUIRED)
find_package(PackageKitQt6 REQUIRED)

set(BIN_NAME dde-application-wizard-daemon-compat)

Expand Down Expand Up @@ -65,10 +65,10 @@ PRIVATE
)

target_link_libraries(${BIN_NAME} PRIVATE
Dtk::Core
Dtk::Gui
Dtk6::Core
Dtk6::Gui
QCoro::Core
PK::packagekitqt5
PK::packagekitqt6
)

install(TARGETS ${BIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
Expand Down
16 changes: 8 additions & 8 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ Build-Depends:
debhelper-compat (= 13),
cmake,
pkg-config,
qtbase5-dev,
qttools5-dev,
qttools5-dev-tools,
qt6-base-dev,
qt6-tools-dev,
qt6-tools-dev-tools,
libdtkcommon-dev,
libdtkcore-dev,
libdtkwidget-dev,
libdtkgui-dev,
libdtk6core-dev,
libdtk6widget-dev,
libdtk6gui-dev,
libappstreamqt-dev,
libpackagekitqt5-dev,
qcoro-qt5-dev,
libpackagekitqt6-dev,
qcoro-qt6-dev,
# v-- to get systemduserunitdir from its pkg-config data
systemd
Standards-Version: 4.6.0
Expand Down

0 comments on commit f7c1edd

Please sign in to comment.