How to learn which compiler flags qmake uses for a target or a source file?
-
I'm interested in using such a variable for a single file to just add some other flags to it.
I've looked with message() into all variables I could find and they don't contain all flags from compile output. I can, of cause, copy all flags usable from the console I use to compile a single file, but it will contain irrelevant and full paths, and I want .pro file usable by other people, of cause.
I've already checked these variables:
QMAKE_CXX
QMAKE_CXXFLAGS_RELEASE
QMAKE_CXXFLAGS
QMAKE_LFLAGS_RELEASE
They all are very very far from all the flags listed in compile output.
Consequent questions:
At which exact moment those flags for the main target (the app itself) are evaluated?
Is it possible to use those flags for a custom target? I would add them to target_name.commands.