Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19232

Symbian toolchains do not understand string DEFINES similarly to other platforms

XMLWordPrintable

    • 5f0de35a576cae9333c41dbdd43c8489b20e878a

      Typically one would use the following line in .pro file to define a string to pass as -D parameters for compiler:

      DEFINES += VERSION_STR=\\\"1.2.3\\\"

      This will break in symbian-sbsv2, where '\' characters will be interpreted to be part of the string. This would work in symbian-sbsv2:

      DEFINES += VERSION_STR=\"1.2.3\"

      It would be nice if developer didn't have to define these string defines separately from symbian and other platforms, so qmake should detect these cases and strip the extra backslashes away.

      Unfortunately, for symbian-abld, nothing can be done, except maybe print a warning; the toolchain simply doesn't support string defines in .mmp files.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            e0348803 Miikka Heikkinen
            e0348803 Miikka Heikkinen
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes