author | Mike Kinghan <mikek@symbian.org> |
Thu, 25 Nov 2010 13:59:07 +0000 | |
changeset 40 | 68f68128601f |
permissions | -rw-r--r-- |
40
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
1 |
Product Build Variants |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
2 |
====================== |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
3 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
4 |
In order to create a build variant two files are required. A "Product Variant" HRH file |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
5 |
containing the variant-specific macros. And a configuration file (variant.cfg) that points |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
6 |
to it. |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
7 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
8 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
9 |
1. The Product Variant (.HRH) File |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
10 |
================================== |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
11 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
12 |
This file contains the macros to be defined for this product variant as #define statements. |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
13 |
eg, |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
14 |
#define EKA2 |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
15 |
#define NEW_CRYPTO |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
16 |
#undef DONT_USE_ME |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
17 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
18 |
This file is a C++ header file, so comments are allowed. |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
19 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
20 |
The product variant can go anywhere on the same drive as the epoc32 directory. |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
21 |
Suggested location is somewhere under %EPOCROOT%\epoc32. |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
22 |
e.g.: |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
23 |
\epoc32\include\variant\buildvariant.hrh |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
24 |
\epoc32\include\variant\cedar.hrh |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
25 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
26 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
27 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
28 |
2. The Configuration File (variant.cfg) |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
29 |
======================= |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
30 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
31 |
The variant.cfg file must be called |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
32 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
33 |
%EPOCROOT%\epoc32\tools\variant\variant.cfg |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
34 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
35 |
The variant folder doesn't exist by default and has to be created manually. |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
36 |
This file should contain the name and path of the product variant (.HRH) file. |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
37 |
The file can be specified as |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
38 |
a) a path relative to %EPOCROOT% |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
39 |
b) an absolute path |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
40 |
A path starting with "\EPOC32" will be adjusted for EPOCROOT. |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
41 |
|
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
42 |
Perl-type comments (#) are allowed. |
68f68128601f
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package.
Mike Kinghan <mikek@symbian.org>
parents:
diff
changeset
|
43 |