- Update patches: 001-cppcheck-2.2-change-language-files-path.patch 002-cppcheck-2.2-change-cfg-path.patch - Add patch: 003-cppcheck-2.2-online-help.patch Allows building of online-help.qhc and fixes: Helpfile 'online-help.qhc' was not found
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
diff -ur a/gui/gui.pro b/gui/gui.pro
|
|
--- a/gui/gui.pro 2020-10-03 11:05:53.000000000 +0200
|
|
+++ b/gui/gui.pro 2020-10-17 15:49:15.523989000 +0200
|
|
@@ -13,10 +13,10 @@
|
|
QT += help
|
|
|
|
# Build online help
|
|
-#onlinehelp.target = online-help.qhc
|
|
-#onlinehelp.commands = qhelpgenerator $$PWD/help/online-help.qhp -o online-help.qch ; qhelpgenerator $$PWD/help/online-help.qhcp -o online-help.qhc
|
|
-#QMAKE_EXTRA_TARGETS += onlinehelp
|
|
-#PRE_TARGETDEPS += online-help.qhc
|
|
+onlinehelp.target = online-help.qhc
|
|
+onlinehelp.commands = qhelpgenerator $$PWD/help/online-help.qhcp -o $$PWD/help/online-help.qhc
|
|
+QMAKE_EXTRA_TARGETS += onlinehelp
|
|
+PRE_TARGETDEPS += online-help.qhc
|
|
|
|
contains(LINKCORE, [yY][eE][sS]) {
|
|
LIBS += -l../bin/cppcheck-core
|
|
diff -ur a/gui/helpdialog.cpp b/gui/helpdialog.cpp
|
|
--- a/gui/helpdialog.cpp 2020-10-03 11:05:53.000000000 +0200
|
|
+++ b/gui/helpdialog.cpp 2020-10-17 11:08:41.117532800 +0200
|
|
@@ -32,6 +32,7 @@
|
|
paths << (datadir + "/help")
|
|
<< datadir
|
|
<< (QApplication::applicationDirPath() + "/help")
|
|
+ << (QApplication::applicationDirPath() + "/../share/cppcheck/help")
|
|
<< QApplication::applicationDirPath();
|
|
for (QString p: paths) {
|
|
QString filename = p + "/online-help.qhc";
|