buildframework/helium/sf/doc/src/build.rst
author Zheng Shen <zheng.shen@nokia.com>
Tue, 20 Jul 2010 15:02:28 +0800
changeset 617 3a747a240983
parent 587 85df38eb4012
permissions -rw-r--r--
ROM Tools 12.2.0.4 Postlinker 2.2.5 Revert package_definition.xml to changeset 360bd6b35136

===============
Building Helium
===============

Prerequisite
------------

Before using bld commands please make sure your *JAVA_HOME* environment variable is pointing to the required JDK.  
All the following operation must be run from the builder folder available on the root of helium source tree.


How to build Helium?
--------------------

The following sequence of command is showing you how to get Helium built and packaged up:

::
   
   > cd builder
   > bld build
   ....
   > bld -Dconfig=sf get-deps
   ...
   > cd ..
   > hlm version
   ... This should show the helium version ...
   > cd builder
   > bld -Dconfig=sf create-releasable


Building
--------

Run the following command on the route of your delivery `bld` or `bld -Dcomponent=<component_name>` to build only one component.
   
Cleaning
--------

To cleanup the generated files under each component just run `bld clean`
Removing the build temp folder run `bld clean`.
   
Testing
-------

To run all the testing (junit + antunit):

::
   
   > bld test


JUnit testing:
::
   
   > bld junit

AntUnit testing:
::
   
   > bld unittest


Using components inside Helium structure
----------------------------------------

Once you have been buidling and testing components you can then use them under Helium.
In order to get all Helium dependencies copied just run:
::
   
   > bld -Dconfig=<config> get-deps

Creating a deliverable package
------------------------------

In order to create a simplified delivery of Helium which contains only deliverable, run the following command:
::
   
   > bld -Dconfig=<config> create-releasable

   
How to get the list of target supported by the builder?
-------------------------------------------------------

::
   
   > bld -p