Should fix https://github.com/schnitzeltony/meta-qt5-extra/issues/79 Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
From cf88c25f97e7d6a39ca8090369f1654902229399 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
|
Date: Sat, 5 Sep 2015 17:53:22 +0200
|
|
Subject: [PATCH] qdbusxml2cpp: prepare commandline string manipulation
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Upstream-Status: Inappropriate [embedded specific]
|
|
|
|
Date: Sat, 18 Jan 2020 16:35:24 +0100
|
|
Adjusted to Qt 5.14
|
|
|
|
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
|
---
|
|
src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp
|
|
index ce4232f3e8..d9003f4508 100644
|
|
--- a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp
|
|
+++ b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp
|
|
@@ -161,9 +161,12 @@ static QString moc(const QString &name)
|
|
|
|
static QTextStream &writeHeader(QTextStream &ts, bool changesWillBeLost)
|
|
{
|
|
+ QString strCmdLine = commandLine;
|
|
+ strCmdLine.replace(QStringLiteral("STRING_FULL_PATH"), QStringLiteral("STRING_PATH"));
|
|
+ strCmdLine.replace(QStringLiteral("recipe-sysroot"), QStringLiteral("recipe--sysroot"));
|
|
ts << "/*" << Qt::endl
|
|
<< " * This file was generated by " PROGRAMNAME " version " PROGRAMVERSION << Qt::endl
|
|
- << " * Command line was: " << commandLine << Qt::endl
|
|
+ << " * Command line was: " << strCmdLine << Qt::endl
|
|
<< " *" << Qt::endl
|
|
<< " * " PROGRAMNAME " is " PROGRAMCOPYRIGHT << Qt::endl
|
|
<< " *" << Qt::endl
|
|
--
|
|
2.21.0
|
|
|