diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-07-13 14:47:12 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-11-21 18:59:14 +0000 |
commit | fe67c58e713a2f3df3fb84f27f3a3d5223900b42 (patch) | |
tree | 7f1975df1354891d61f2145576b8d7436ac6433c /src/qdoc/cppcodeparser.cpp | |
parent | 31b48ac93a7521e93e11658c5ab6f7d2b539a8d3 (diff) | |
download | qttools-fe67c58e713a2f3df3fb84f27f3a3d5223900b42.tar.gz |
Extract qmake parser from lupdate and lrelease
Move the qmake parser from lupdate/lrelease to the new tool lprodump
that extracts the project structure from qmake projects. Its output is a
JSON file with an array of Project objects, which are defined as
follows.
Project ::= {
string projectFile // Name of the project file.
string codec // Source code codec. Valid values are
// currently "utf-16" or "utf-8" (default).
string[] translations // List of .ts files of the project.
string[] includePaths // List of include paths.
string[] sources // List of source files.
string[] excluded // List of source files, which are
// excluded for translation.
Project[] subProjects // List of sub-projects.
}
We can pass such a project description to lupdate and lrelease via the
-project argument.
Also, introduce the tools lupdate-pro and lrelease-pro. Both tools are
replacements for the QMake mode of lupdate/lrelease and call lprodump
to generate a temporary project description which is then passed to
lupdate/lrelease.
Passing .pro/.pri files to lupdate/lrelease is deprecated as of now.
As a side-effect of this change, we enable lrelease-pro to traverse
SUBDIRS projects recursively.
Task-number: QTBUG-35997
Task-number: QTBUG-48416
Change-Id: I256e9d36169306d02817262c68cf1bc410ea82de
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
0 files changed, 0 insertions, 0 deletions