How can I define macros for the .mmp file on Symbian?
How can I define macros for the .mmp file?
Is it possible to define macros on the command line so that they can be used in .mmp, .pkg, resource, and C++ files?
Macros used in C++ files can be defined using the MACRO keyword in the .mmp file. However, those macros are only used by the C++ precompiler. It is not possible to define macros in the command line to be used with bldmake and abld script.
To define global macros that can be used with .mmp, resource, and C++ files, you can create a header file.
--- macros.h ---
--- macros.h ends ---
The header file can be included in .mmp, .rss, and C++ files and macros can be used as usually:
Unfortunately .pkg files use a different syntax and header files cannot be included. See the SDK Help for "Package file format .pkg".