From 1284a320bada7afc4fe056318c8649246a90c7ce Mon Sep 17 00:00:00 2001 From: Lu Zhen Date: Thu, 24 Apr 2025 19:12:52 +0800 Subject: [PATCH] fix: build faild on mips Log: Change-Id: Ic993dce88f06fa0744d2ae0bc2ddd1b1b4ab9a8a --- debian/control | 26 ++++++++++++------------ src/plugins/core/CMakeLists.txt | 4 ++-- src/plugins/core/gui/plugindetailsview.h | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/debian/control b/debian/control index 4be9c9bdf..899140770 100644 --- a/debian/control +++ b/debian/control @@ -5,19 +5,19 @@ Maintainer: Deepin Packages Builder Build-Depends: debhelper (>=9), cmake, - qt6-qmake[!mipsel !mips64el] | qt5-qmake, - qt6-base-dev[!mipsel !mips64el] | qtbase5-dev, - qt6-tools-dev-tools[!mipsel !mips64el] | qttools5-dev-tools, - qt6-tools-dev[!mipsel !mips64el] | qttools5-dev, - qt6-webengine-dev[!mipsel !mips64el] | qtwebengine5-dev, - qt6-multimedia-dev[!mipsel !mips64el], - libdtk6widget-dev[!mipsel !mips64el] | libdtkwidget-dev, - libdtk6gui-dev[!mipsel !mips64el] | libdtkgui-dev, - libdtk6core-dev[!mipsel !mips64el] | libdtkcore-dev, - libdtk6core5-bin[!mipsel !mips64el] |libdtkcore5-bin, - libkf6syntaxhighlighting-dev[!mipsel !mips64el] | libkf5syntaxhighlighting-dev, - qt6-script-dev[!mipsel !mips64el] | qtscript5-dev, - qt6-5compat-dev[!mipsel !mips64el] | hello, + qt6-qmake | qt5-qmake, + qt6-base-dev | qtbase5-dev, + qt6-tools-dev-tools | qttools5-dev-tools, + qt6-tools-dev | qttools5-dev, + qt6-webengine-dev | qtwebengine5-dev, + qt6-multimedia-dev, + libdtk6widget-dev | libdtkwidget-dev, + libdtk6gui-dev | libdtkgui-dev, + libdtk6core-dev | libdtkcore-dev, + libdtk6core5-bin |libdtkcore5-bin, + libkf6syntaxhighlighting-dev | libkf5syntaxhighlighting-dev, + qt6-script-dev | qtscript5-dev, + qt6-5compat-dev | hello, libqt5scripttools5 | hello, lxqt-build-tools (>= 0.6.0~), libssl-dev, diff --git a/src/plugins/core/CMakeLists.txt b/src/plugins/core/CMakeLists.txt index 18106bbab..f896ca836 100644 --- a/src/plugins/core/CMakeLists.txt +++ b/src/plugins/core/CMakeLists.txt @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.18) project(core) -if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "loongarch64") - add_definitions(-DLOONGARCH64) +if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "mips64") + add_definitions(-DUNSUPPORTPLATFORM) endif() FILE(GLOB_RECURSE PROJECT_SOURCES diff --git a/src/plugins/core/gui/plugindetailsview.h b/src/plugins/core/gui/plugindetailsview.h index 265a36381..66dcb596a 100644 --- a/src/plugins/core/gui/plugindetailsview.h +++ b/src/plugins/core/gui/plugindetailsview.h @@ -24,7 +24,7 @@ class DLabel; DWIDGET_END_NAMESPACE // webengine could not used on some platform -#ifdef LOONGARCH64 +#ifdef UNSUPPORTPLATFORM #define NOT_USE_WEBENGINE #endif