From bb2aae5caeebe25b2c963152c5dc13f5c1c9778e Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Tue, 1 Sep 2026 11:49:14 +0800 Subject: [PATCH] fix(build): add missing sources and includes to qmake pri files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New eyeprotection module and RestoreTipWidget were added to CMakeLists but missing from qmake pri files, causing build and link failure. Also add XpsTextExtractor to the xps_support conditional block. 新增护眼模块与RestoreTipWidget时只更新了CMakeLists.txt, qmake工程缺失对应源文件与头文件搜索路径,导致编译链接失败。 同时补全xps_support条件编译块中遗漏的XpsTextExtractor。 Log: 修复qmake工程缺失新模块文件导致的构建失败 Influence: qmake构建恢复正常,可正确编译护眼模块、RestoreTipWidget 及XPS文本提取器。 --- reader/document/document.pri | 2 ++ reader/eyeprotection/eyeprotection.pri | 9 +++++++++ reader/src.pri | 2 ++ reader/widgets/widgets.pri | 2 ++ 4 files changed, 15 insertions(+) create mode 100644 reader/eyeprotection/eyeprotection.pri diff --git a/reader/document/document.pri b/reader/document/document.pri index 45a2f1beb..9b2041461 100644 --- a/reader/document/document.pri +++ b/reader/document/document.pri @@ -6,7 +6,9 @@ HEADERS += \ # XPS支持文件(条件包含) xps_support { HEADERS += $$PWD/XpsDocumentAdapter.h + HEADERS += $$PWD/XpsTextExtractor.h SOURCES += $$PWD/XpsDocumentAdapter.cpp + SOURCES += $$PWD/XpsTextExtractor.cpp } SOURCES += \ diff --git a/reader/eyeprotection/eyeprotection.pri b/reader/eyeprotection/eyeprotection.pri new file mode 100644 index 000000000..afaf007e0 --- /dev/null +++ b/reader/eyeprotection/eyeprotection.pri @@ -0,0 +1,9 @@ +HEADERS += \ + $$PWD/EyeProtectionManager.h \ + $$PWD/EyeProtectionAction.h + +SOURCES += \ + $$PWD/EyeProtectionManager.cpp \ + $$PWD/EyeProtectionAction.cpp + +INCLUDEPATH += $$PWD diff --git a/reader/src.pri b/reader/src.pri index d5980310c..303d577cd 100644 --- a/reader/src.pri +++ b/reader/src.pri @@ -4,6 +4,7 @@ INCLUDEPATH += $$PWD/widgets INCLUDEPATH += $$PWD/sidebar INCLUDEPATH += $$PWD/browser INCLUDEPATH += $$PWD/document +INCLUDEPATH += $$PWD/eyeprotection include ($$PWD/app/app.pri) include ($$PWD/browser/browser.pri) @@ -11,6 +12,7 @@ include ($$PWD/sidebar/sidebar.pri) include ($$PWD/widgets/widgets.pri) include ($$PWD/document/document.pri) include ($$PWD/uiframe/uiframe.pri) +include ($$PWD/eyeprotection/eyeprotection.pri) SOURCES += \ $$PWD/Application.cpp \ diff --git a/reader/widgets/widgets.pri b/reader/widgets/widgets.pri index 0ecca48f0..6a4f0c479 100644 --- a/reader/widgets/widgets.pri +++ b/reader/widgets/widgets.pri @@ -14,6 +14,7 @@ HEADERS += \ $$PWD/BaseWidget.h \ $$PWD/TipsWidget.h \ $$PWD/WordWrapLabel.h \ + $$PWD/RestoreTipWidget.h \ $$PWD/RoundColorWidget.h \ $$PWD/TransparentTextEdit.h \ $$PWD/TextEditWidget.h \ @@ -37,6 +38,7 @@ SOURCES += \ $$PWD/BaseWidget.cpp \ $$PWD/TipsWidget.cpp \ $$PWD/WordWrapLabel.cpp \ + $$PWD/RestoreTipWidget.cpp \ $$PWD/RoundColorWidget.cpp \ $$PWD/TransparentTextEdit.cpp \ $$PWD/TextEditWidget.cpp \