sf_config/rombuild/sf_refhw/S60Macros.iby
author Pierre Cochart <pierre.cochart@cell-telecom.com>
Thu, 16 Sep 2010 16:07:48 +0100
branchRCL_3
changeset 125 488266b7b425
parent 66 f1f5590fcf6f
permissions -rw-r--r--
reapply fix for bug9685 as features are now defined here
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
66
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
     1
/*
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
     2
* ============================================================================
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
     3
*  Name     : S60Macros.iby
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
     4
*  Part of  : ROM Build Process
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
     5
*
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
     6
*  Description:
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
     7
*  Build ROM Information
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
     8
*
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
     9
*  Version:
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    10
*
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    11
*  Copyright (C) 2002 Nokia Corporation.
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    12
*  This material, including documentation and any related 
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    13
*  computer programs, is protected by copyright controlled by 
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    14
*  Nokia Corporation. All rights are reserved. Copying, 
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    15
*  including reproducing, storing,  adapting or translating, any 
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    16
*  or all of this material requires the prior written consent of 
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    17
*  Nokia Corporation. This material also contains confidential 
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    18
*  information which may not be disclosed to others without the 
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    19
*  prior written consent of Nokia Corporation.
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    20
*
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    21
* ============================================================================
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    22
*/
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    23
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    24
#ifndef __S60MACROS_IBY__
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    25
#define __S60MACROS_IBY__
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    26
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    27
// Scalable image
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    28
#ifdef RD_SCALABLE_UI
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    29
 #define SCALABLE_IMAGE(path,target,name) __SCALABLE_IMAGE(DATAZ_,path,target,name)
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    30
#else
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    31
 #define SCALABLE_IMAGE(path,target,name) AUTO-BITMAP=DATAZ_\ ## path ## \ ## name ## .mbm  target ## \ ## name ## .mbm
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    32
#endif
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    33
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    34
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    35
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    36
// App files
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    37
#ifndef RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    38
 #define S60_APP_EXE(NAME) file=ABI_DIR\BUILD_DIR\ ## NAME ## .app                   System\Apps\ ## NAME ## \ ## NAME ## .app
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    39
 #define S60_APP_EXE_UDEB(NAME) file=ABI_DIR\UDEB\ ## NAME ## .app                   System\Apps\ ## NAME ## \ ## NAME ## .app
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    40
#else // RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    41
 #define S60_APP_EXE(NAME) file=ABI_DIR\BUILD_DIR\ ## NAME ## .exe                   PROGRAMS_DIR\ ## NAME ## .exe
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    42
 #define S60_APP_EXE_UDEB(NAME) file=ABI_DIR\UDEB\ ## NAME ## .exe                   PROGRAMS_DIR\ ## NAME ## .exe
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    43
#endif // RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    44
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    45
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    46
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    47
// App bitmap
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    48
#ifdef RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    49
 #ifdef RD_SCALABLE_UI
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    50
  #define S60_APP_BITMAP(NAME) __SCALABLE_IMAGE(DATAZ_,APP_BITMAP_DIR,APP_BITMAP_DIR, ## NAME ## )
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    51
  #define S60_APP_BITMAP2(DIR,NAME) __SCALABLE_IMAGE(DATAZ_,APP_BITMAP_DIR,APP_BITMAP_DIR, ## NAME ## )
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    52
 #else // RD_SCALABLE_UI
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    53
  #define S60_APP_BITMAP(NAME) AUTO-BITMAP=DATAZ_\APP_BITMAP_DIR\ ## NAME ## .mbm APP_BITMAP_DIR\ ## NAME ## .mbm
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    54
  #define S60_APP_BITMAP2(DIR,NAME) AUTO-BITMAP=DATAZ_\APP_BITMAP_DIR\ ## NAME ## .mbm APP_BITMAP_DIR\ ## NAME ## .mbm
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    55
 #endif // RD_SCALABLE_UI
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    56
#else // RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    57
 #ifdef RD_SCALABLE_UI
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    58
  #define S60_APP_BITMAP(NAME) __SCALABLE_IMAGE(DATAZ_,System\Apps\ ## NAME ## ,System\Apps\ ## NAME ## , ## NAME ## )
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    59
  #define S60_APP_BITMAP2(DIR,NAME) __SCALABLE_IMAGE(DATAZ_,System\Apps\ ## DIR ## ,System\Apps\ ## DIR ## , ## NAME ## )
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    60
 #else // RD_SCALABLE_UI
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    61
  #define S60_APP_BITMAP(NAME) AUTO-BITMAP=DATAZ_\System\Apps\ ## NAME ## \ ## NAME ## .mbm System\Apps\ ## NAME ## \ ## NAME ## .mbm
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    62
  #define S60_APP_BITMAP2(DIR,NAME) AUTO-BITMAP=DATAZ_\System\Apps\ ## DIR ## \ ## NAME ## .mbm System\Apps\ ## DIR ## \ ## NAME ## .mbm
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    63
 #endif // RD_SCALABLE_UI
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    64
#endif // RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    65
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    66
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    67
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    68
// AIF icons/files
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    69
#ifdef RD_SCALABLE_UI // New app framework used
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    70
 #ifdef RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    71
  #ifdef __SCALABLE_ICONS
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    72
   #define S60_APP_AIF_ICONS(NAME) data=DATAZ_\APP_BITMAP_DIR\ ## NAME ## _AIF.MIF    APP_BITMAP_DIR\ ## NAME ## _aif.mif
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    73
  #else
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    74
   #define S60_APP_AIF_ICONS(NAME) AUTO-BITMAP=DATAZ_\APP_BITMAP_DIR\ ## NAME ## _AIF.MBM       APP_BITMAP_DIR\ ## NAME ## _aif.mbm
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    75
  #endif
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    76
 #else // RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    77
  #ifdef __SCALABLE_ICONS
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    78
   #define S60_APP_AIF_ICONS(NAME) data=ZSYSTEM\APPS\ ## NAME ## \ ## NAME ## _AIF.MIF       System\Apps\ ## NAME ## \ ## NAME ## _aif.mif
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    79
  #else
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    80
   #define S60_APP_AIF_ICONS(NAME) AUTO-BITMAP=ZSYSTEM\APPS\ ## NAME ## \ ## NAME ## _AIF.MBM       System\Apps\ ## NAME ## \ ## NAME ## _aif.mbm
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    81
  #endif
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    82
 #endif // RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    83
 #define S60_APP_AIF_RSC(NAME) data=DATAZ_\PRIVATE\10003A3F\APPS\ ## NAME ## _reg.rsc        Private\10003a3f\apps\ ## NAME ## _reg.rsc
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    84
 #define S60_UPGRADABLE_APP_REG_RSC(NAME) data=DATAZ_\PRIVATE\10003A3F\APPS\ ## NAME ## _reg.rsc        Private\10003a3f\import\apps\ ## NAME ## _reg.rsc
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    85
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    86
#else // RD_SCALABLE_UI Old app framework used
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    87
 #define S60_APP_AIF_ICONS(NAME) AIF=ZSYSTEM\APPS\ ## NAME ## \ ## NAME ## .AIF            System\Apps\ ## NAME ## \ ## NAME ## .aif
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    88
 #define S60_APP_AIF_RSC(NAME)
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    89
 #define S60_UPGRADABLE_APP_REG_RSC(NAME)
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    90
#endif
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    91
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    92
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    93
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    94
//Resource file(s)
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    95
#ifdef RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    96
 #define S60_APP_RESOURCE(NAME)  data=DATAZ_\APP_RESOURCE_DIR\ ## NAME ## .RSC   APP_RESOURCE_DIR\ ## NAME ## .rsc
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    97
 #define S60_APP_RESOURCE2(APPNAME,RESNAME) data=DATAZ_\APP_RESOURCE_DIR\ ## RESNAME ## .RSC   APP_RESOURCE_DIR\ ## RESNAME ## .rsc
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    98
 #ifndef RD_SCALABLE_UI // Old app framework used
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
    99
  #define S60_APP_CAPTION(NAME)  data=DATAZ_\APP_RESOURCE_DIR\ ## NAME ## _CAPTION.RSC   APP_RESOURCE_DIR\ ## NAME ## _caption.rsc
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   100
 #else
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   101
  #define S60_APP_CAPTION(NAME)
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   102
 #endif // RD_SCALABLE_UI
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   103
#else // RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   104
 #define S60_APP_RESOURCE(NAME)  data=ZSYSTEM\APPS\ ## NAME ## \ ## NAME ## .RSC    System\Apps\ ## NAME ## \ ## NAME ## .rsc
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   105
 #define S60_APP_RESOURCE2(APPNAME,RESNAME) data=ZSYSTEM\APPS\ ## APPNAME ## \ ## RESNAME ## .RSC    System\Apps\ ## APPNAME ## \ ## RESNAME ## .rsc
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   106
 #ifndef RD_SCALABLE_UI // Old app framework used
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   107
  #define S60_APP_CAPTION(NAME)  data=ZSYSTEM\APPS\ ## NAME ## \ ## NAME ## _CAPTION.RSC   System\Apps\ ## NAME ## \ ## NAME ## _caption.rsc
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   108
 #else
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   109
  #define S60_APP_CAPTION(NAME)
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   110
 #endif // RD_SCALABLE_UI
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   111
#endif // RD_APPS_TO_EXES
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   112
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   113
f1f5590fcf6f Bug 3083
Gareth Long <garethl@symbian.org>
parents:
diff changeset
   114
#endif //__S60MACROS_IBY__