×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Location
    Bangalore
    Posts
    174

    Conditional compilation for S60 3rd edition devices.

    Hi friends,

    i have completed an application for S60 3rd edition devices, now what i want i have different source code for 3rd edition, 3rd edition fp1 and 3rd edition fp2. I do not want to maintain 3 different source code so i want to merge with single source code and i can do this using Conditional compilation.
    i dont know how to Define the custom macro in mmp, bld.inf file and source file to differentiate the code please help me friends.

    i want like this..

    #ifdef __3RD_FP1
    //DO THIS
    #else if __3RD_FP2
    //DO THIS
    #else
    //DO THIS
    #endif

    how can i achieve this, waiting for the reply ...

    Thanks...

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Conditional compilation for S60 3rd edition devices.

    Check epoc32\tools\e32plat.pm, line about EpocMacros in each SDK, and you will find the common and the unique macros.

  3. #3
    Regular Contributor
    Join Date
    Dec 2008
    Location
    Bangalore
    Posts
    174

    Re: Conditional compilation for S60 3rd edition devices.

    Quote Originally Posted by wizard_hu_ View Post
    Check epoc32\tools\e32plat.pm, line about EpocMacros in each SDK, and you will find the common and the unique macros.
    Can i use this macros to check the condition for .ccp and .mmp, .inf files.. ..?

    #ifdef __SERIES60_30__
    #ifdef __SERIES60_31__
    #ifdef __SERIES60_32__

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Conditional compilation for S60 3rd edition devices.

    You can simply try, #error provides a simple way to check the behavior of the preprocessor.

Similar Threads

  1. S60 3rd edition CDMA devices?
    By amar_wagholikar in forum Symbian
    Replies: 2
    Last Post: 2009-12-29, 06:11
  2. Replies: 1
    Last Post: 2009-11-02, 03:01
  3. Replies: 11
    Last Post: 2009-09-27, 14:07
  4. Replies: 2
    Last Post: 2006-06-29, 10:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×