diff options
Diffstat (limited to 'src/tools/tracepointgen/tracepointgen.cpp')
-rw-r--r-- | src/tools/tracepointgen/tracepointgen.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/tracepointgen/tracepointgen.cpp b/src/tools/tracepointgen/tracepointgen.cpp index cdf2f1fd2f..d814c69873 100644 --- a/src/tools/tracepointgen/tracepointgen.cpp +++ b/src/tools/tracepointgen/tracepointgen.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2022 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include <qstring.h> #include <qstringlist.h> @@ -39,6 +39,11 @@ int main(int argc, char *argv[]) Parser parser(provider); for (const QString &inputFile : inputFiles) { + if (inputFile.startsWith(QLatin1Char('I'))) { + QStringList includeDirs = inputFile.right(inputFile.length() - 1).split(QLatin1Char(';')); + parser.addIncludeDirs(includeDirs); + continue; + } QFile in(inputFile); if (!in.open(QIODevice::ReadOnly | QIODevice::Text)) { panic("Cannot open '%s' for reading: %s\n", |