buildframework/helium/sf/doc/src/build.rst
author Ross Qin <ross.qin@nokia.com>
Thu, 28 Oct 2010 11:39:28 +0800
changeset 669 ac2dc5c059f3
parent 587 85df38eb4012
permissions -rw-r--r--
merge with team repo
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
===============
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     2
Building Helium
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     3
===============
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     4
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
Prerequisite
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     6
------------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     7
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     8
Before using bld commands please make sure your *JAVA_HOME* environment variable is pointing to the required JDK.  
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     9
All the following operation must be run from the builder folder available on the root of helium source tree.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    10
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    11
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    12
How to build Helium?
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    13
--------------------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    14
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    15
The following sequence of command is showing you how to get Helium built and packaged up:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    16
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    17
::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    18
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    19
   > cd builder
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    20
   > bld build
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    21
   ....
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    22
   > bld -Dconfig=sf get-deps
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    23
   ...
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
   > cd ..
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
   > hlm version
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
   ... This should show the helium version ...
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
   > cd builder
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
   > bld -Dconfig=sf create-releasable
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
Building
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
--------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
Run the following command on the route of your delivery `bld` or `bld -Dcomponent=<component_name>` to build only one component.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
Cleaning
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
--------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
To cleanup the generated files under each component just run `bld clean`
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
Removing the build temp folder run `bld clean`.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
Testing
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
-------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
To run all the testing (junit + antunit):
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
   > bld test
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
JUnit testing:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
   > bld junit
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
AntUnit testing:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
   > bld unittest
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
Using components inside Helium structure
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
----------------------------------------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
Once you have been buidling and testing components you can then use them under Helium.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
In order to get all Helium dependencies copied just run:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
   > bld -Dconfig=<config> get-deps
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
Creating a deliverable package
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
------------------------------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
In order to create a simplified delivery of Helium which contains only deliverable, run the following command:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
   > bld -Dconfig=<config> create-releasable
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
How to get the list of target supported by the builder?
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
-------------------------------------------------------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
   > bld -p
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87