Improve DEFINES crossplatform compatibility in Symbian builds.
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Mon, 16 May 2011 12:30:04 +0000 (15:30 +0300)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>
Mon, 16 May 2011 13:54:15 +0000 (16:54 +0300)
commit5f0de35a576cae9333c41dbdd43c8489b20e878a
tree374e74f0f97506b81cc6053799c8dd0d498eeb6e
parent674d85693171c308487080f33a4f1ff87ec9d4c4
Improve DEFINES crossplatform compatibility in Symbian builds.

DEFINES statements that define strings needed separate statements for
symbian-sbsv2 builds and Makefile based plaforms, as there is one extra
layer of escaping needed in Makefile builds. Improved compatibility by
making qmake remove one layer of escaping before writing the .mmp MACROs
based on DEFINES.

Note: Symbian-abld builds still do not support string DEFINES as the
      toolchain simply can't handle them in .mmp files, no matter how
      they are escaped.

Note2: Symbian-sbsv2 support for escaped DEFINES is not perfect either,
       as bld.inf files do not like doubly escaped characters in
       extension rules (e.g. double-quotation mark as part of a string).
       This makes it impossible to pass such DEFINES to extra compilers.

Task-number: QTBUG-19232
Reviewed-by: Oswald Buddenhagen
qmake/generators/symbian/symmake.cpp
qmake/generators/symbian/symmake_sbsv2.cpp