[Interest] QML preprocessing
godboutj at amotus.ca
Wed Apr 24 20:27:09 CEST 2019
Maybe you can overload the functor directly into the code and import the file only if in debug mode (optional module):
That could also be helpful to split the log into multiple receiver.
From: Interest <interest-bounces at qt-project.org> On Behalf Of Alexander Ivash
Sent: April 24, 2019 12:56 PM
To: interestqt-project.org <interest at qt-project.org>
Subject: [Interest] QML preprocessing
I understand that this topic was raised a lot of times and that this is not QML-way. But, what options do I have in case of requirements to eliminate all the logging for release builds?
Is there any hidden magic in qmake, like 'QMAKE_SUBSTITUTES' but more flexible to substitute all the 'console.debug....' with '// console.debug' right before adding qml into resources?
p.s. Yea, I'm aware of selectors, but would like to avoid having both component-with-logging.qml and component-with-no-logging.qml
Interest mailing list
Interest at qt-project.org
More information about the Interest