diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-03-14 11:27:38 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-03-18 15:34:13 +0000 |
commit | e5b26997500a56f42be920a509821358f60aaa53 (patch) | |
tree | 976776a10eb0db6c49348d4e099ac02be33d4fe0 /util | |
parent | 64147fcb3380244c0dcf744dc84f31ec917cc608 (diff) |
Do define generation after feature evaluation
Instead of generating defines guarded by feature ifdefs,
record the define information (condition, name, value, etc),
and generate the final define statement only if the feature
condition evaluated to true.
This removes the need to generate feature defines
(QT_FEATURE_foo) for features that have neither public nor
private outputs in the configure.json file.
Also note that all qt_feature_definition() calls
(which correspond to type:"define" outputs in json files)
now generate defines only in the public header, which seems
to be consistent with how qmake evaluates json files.
Change-Id: I5210b405d5735dd9df5f7a55d1ea9547bb7b1159
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions