Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to define macro in .pro file to be passed to be generated in symbian mmp file?

How to define macro in .pro file to be passed to be generated in symbian mmp file?

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 12.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    farooqmian
    wrote on last edited by
    #1

    Dear All,
    I need to define couple of macros in .pro file so these could get defined in mmp file which gets generated by QT for symbian SDK. This macro is eventually used in the C library that I am using with a hello project. I have tried using Carbide C++ 2.7 and QT Creator along with QT for symbian SDK, but have not been able to find a way to fulfill the above scenario.
    Any help in this regard is much appreciated in advance!

    1 Reply Last reply
    0
    • F Offline
      F Offline
      farooqmian
      wrote on last edited by
      #2

      For Macro with name MACRONAME and value 1, it can be done the following way!
      symbian {

      DEFINES +=MACRONAME="1"
      }

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved