×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    57

    Question Including mmp files in bld.inf as per SDK

    Hi Guys,

    I have created a symbian project and kept the code base same for 2nd edi and 3rd edi. also loading mmp files as per macro __EKA2__ in bld.inf files.
    My question is now I'm porting the same code and adding support to S60 5th edi. as well I need few changes than 3rd edition. Is there a way that I could include another mmp file in bld.inf which will be loaded if 5th edition is selected for compiling code.

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    India
    Posts
    1,173

    Re: Including mmp files in bld.inf as per SDK

    You will not require to make another .mmp file for 5th edition building process. You can make use of macros in .mmp and .bld file as well.

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    57

    Re: Including mmp files in bld.inf as per SDK

    You mean to say the mmp file will be same for 3rd edi. and 5th edition as both of them have EKA2 kernel and I'm using this to differentiate in 2nd edition and 3rd edition mmp file.

    My Current bld.inf is as follows,

    PRJ_PLATFORMS
    #if defined(EKA2) // S60 3rd Ed onward
    WINSCW ARMV5 GCCE
    #else
    WINSCW ARMI
    #endif

    PRJ_MMPFILES
    #if defined(EKA2) // S60 3rd Ed onward
    App.mmp
    #else
    App_2x.mmp
    #endif

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    India
    Posts
    1,173

    Re: Including mmp files in bld.inf as per SDK

    To differentiate in bld.inf file, you can use:
    #ifdef SYMBIAN_C32_SERCOMMS_V2 //for 5th edition
    // your required code
    #else
    #ifdef SYMBIAN_FLEXIBLE_ALARM //for 3rd FP1 edition
    // your required code
    #else
    #ifdef SYMBIAN_APPARC_APPINFO_CACHE //for 3rd FP2 edition
    // your required code

    Same you can find for 2nd edition SDK as well.

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    57

    Re: Including mmp files in bld.inf as per SDK

    Thanks for quick reply,

    I'll check this.

  6. #6
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Including mmp files in bld.inf as per SDK

    Instead of using multiple .mmp file for different platform (for same project) you can keep common .mmp file and use macro in it. The easiest way to get current platform in .mmp file is to define some marco in some header file and place them in epoc32\include.

  7. #7
    Registered User
    Join Date
    Sep 2008
    Posts
    57

    Re: Including mmp files in bld.inf as per SDK

    I'm sorry Savaj, but I couldn't get your point, will you elaborate more on this.

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: Including mmp files in bld.inf as per SDK

    He means a simple hack that you put your own "my_platform_id.h" into each epoc32\include, with different #define-s inside. Then you can #include it already in the .mmp file and use #ifdef-s.

  9. #9
    jp4symbian
    Guest

    Re: Including mmp files in bld.inf as per SDK

    Hi savaj,

    Can you please put some sample code representing what you have explained below, the way pooja_1650 has given.
    Also wanted to know if maintaining the same mmp file would mean using the same UID for all the versions?
    .
    Currently I am having my product source code as 3 different code bases; for 3rd ed, 5th & Symbian^3 & hence 3 different UIDs for each version build. I wish to maintain the same source code & differentiate the platform specific methods/parameters using macros.
    Please guide.

    Quote Originally Posted by savaj View Post
    Instead of using multiple .mmp file for different platform (for same project) you can keep common .mmp file and use macro in it. The easiest way to get current platform in .mmp file is to define some marco in some header file and place them in epoc32\include.

  10. #10
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,987

    Re: Including mmp files in bld.inf as per SDK

    Yes , if you keep the source code same for all the versions then same UID would be used. Also you can use the code given in #4 inside the bld.inf file for differentiating between various mmp files.

    Also to differentiate between the source code/API's for different platforms in the cpp files, you can use the following:

    #ifdef __S60_50__
    #include <5thedheader.h>
    #else
    #ifdef __SERIES60_3X__
    #include <3rdEdheader.h>
    #endif

    & for differentiating the different exe's(for different platform versions) inside the pkg file , following link can be referred:

    http://www.developer.nokia.com/Commu...rms_in_one_sis

    So after making the source code same for all the versions with the help of macros, you just need to build the project for each of the SDK versions, i.e build it for S603d Ed, 5th Ed etc.
    Last edited by vineet.jain; 2011-12-16 at 06:54.

  11. #11
    jp4symbian
    Guest

    Re: Including mmp files in bld.inf as per SDK

    Thanks for the prompt response, Vineet.

    From this I understand that I can use a single mmp file for 3rd, 5th & Symbian^3 versions.
    Now in the case where I use macros in bld.inf file, for different mmp files, even in that case UID could be same or has to be different for each mmp file?

    Also let me know how do I identify the Symbian^3 platform.

  12. #12
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,987

    Re: Including mmp files in bld.inf as per SDK

    MMP file would be single for all the versions, so there's no point of different UID's for different mmp files.

    Also for differentiaitng the symbian^3 , i do not know exactly , but if you know two platform id's then there's no need to check for 3rd one, simply use 'else' for Symbian^3.

    #ifdef __S60_50__
    #include <5thedheader.h>
    #else
    #ifdef __SERIES60_3X__
    #include <3rdEdheader.h>
    #else
    #include <Symbian^3header.h>
    #endif

    if you want to recheck with the plaform macros the see the file e32plat.pm of the respective SDK(for e.g. : C:\Nokia\devices\Nokia_Symbian3_SDK_v0.9_2\epoc32\tools)

  13. #13
    jp4symbian
    Guest

    Re: Including mmp files in bld.inf as per SDK

    Thanks much, that was really helpful.

  14. #14
    jp4symbian
    Guest

    Re: Including mmp files in bld.inf as per SDK

    Do these macros work in the bld.inf file - __S60_50__ , __SERIES60_3X__ ?
    They dont seem to work for me.

  15. #15
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: Including mmp files in bld.inf as per SDK

    Vineet wrote about the .mmp file. These identifiers do not work for the bld.inf.

Similar Threads

  1. Replies: 1
    Last Post: 2008-02-02, 14:42
  2. Including C++ files outside the project tree
    By nkonstas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2007-05-25, 00:07
  3. Including ASP files in WML
    By Nokia_Archived in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-14, 17:29

Posting Permissions

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