Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions 3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ add_subdirectory(libzipplugin)

add_subdirectory(libminizipplugin)

# pzip 高性能并行压缩工具(仅 x86/ARM + Qt6 环境启用)
# clipzipplugin(仅 x86/ARM + Qt6 环境启用,依赖 src/pzip
if((CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm|x86_64|amd64") AND (QT_VERSION_MAJOR EQUAL 6))
message(STATUS "x86/ARM + Qt6 环境,启用 pzip 高性能压缩插件")
add_subdirectory(pzip)
add_subdirectory(clipzipplugin)
else()
message(STATUS "非 x86/ARM + Qt6 环境,使用默认 libzip 插件")
Expand Down
4 changes: 2 additions & 2 deletions 3rdparty/clipzipplugin/clipzipplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ QString CliPzipPlugin::getPzipPath() const

// 开发环境:尝试从应用程序目录查找
QString appDir = QCoreApplication::applicationDirPath();
QString devPath = appDir + "/../3rdparty/pzip/pzip";
QString devPath = appDir + "/../src/pzip/pzip";
if (QFileInfo::exists(devPath)) {
return devPath;
}
Expand All @@ -91,7 +91,7 @@ QString CliPzipPlugin::getPunzipPath() const

// 开发环境:尝试从应用程序目录查找
QString appDir = QCoreApplication::applicationDirPath();
QString devPath = appDir + "/../3rdparty/pzip/punzip";
QString devPath = appDir + "/../src/pzip/punzip";
if (QFileInfo::exists(devPath)) {
return devPath;
}
Expand Down
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,8 @@ install(FILES ${CMAKE_CURRENT_LIST_DIR}/com.deepin.Compressor.service
# Install DBus interface XML file
install(FILES ${CMAKE_CURRENT_LIST_DIR}/com.deepin.Compressor.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/interfaces/)

# pzip 高性能并行压缩工具(仅 x86/ARM + Qt6 环境启用)
if((CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm|x86_64|amd64") AND (QT_VERSION_MAJOR EQUAL 6))
add_subdirectory(pzip)
endif()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.