buildframework/helium/build.xml
author Mike Kinghan <mikek@symbian.org>
Thu, 25 Nov 2010 13:59:07 +0000
changeset 40 68f68128601f
parent 2 39c28ec933dd
permissions -rwxr-xr-x
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package. 2) Enhance romnibus.pl so that it generate the symbol file for the built rom when invoked by Raptor 3) Make the maksym.pl tool portable for Linux as well as Windows. 4) Remove the of armasm2as.pl from the e32tools component in favour of the copy now exported from sbsv1/e32util.

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
============================================================================ 
Name        : build.xml 
Part of     : Helium 

Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved.
This component and the accompanying materials are made available
under the terms of the License "Eclipse Public License v1.0"
which accompanies this distribution, and is available
at the URL "http://www.eclipse.org/legal/epl-v10.html".

Initial Contributors:
Nokia Corporation - initial contribution.

Contributors:

Description:

============================================================================
-->
<project name="helium-build" default="help" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium"> 
    <description>
        Helium targets to build helium itself.
    </description>
    
    <import file="build-jar.ant.xml"/>
    <property name="build.drive" location="${env.TEMP}/helium/temp_drive"/>
    <mkdir dir="${build.drive}/"/> 
    
    <!-- @property helium.version
    @type string
    @scope private -->
    <property file="${helium.dir}/config/version.txt"/>
    <property name="release.label" value="${helium.version}"/>

    <!-- Override docs targets to do more for Helium. -->
    <target name="apidocs" depends="python-apidocs,java-apidocs,antdoclet,internal.docs.apidocs"/>
    <!-- Generate rst files for docs -->
    <target name="prep-textdocs" depends="overview-to-html,tools-rst-table,dependency-diagram,
        dependency-logs,release-diff,helium-user-graph,helium-prep-textdocs,internal.docs.prep-textdocs"/>
    <!-- generate all the user documentation for helium -->
    <target name="docs" depends="clean-doc-dir,database,apidocs,textdocs,add-policies-to-docs"/>
    
    <import file="helium.ant.xml"/>
    <import file="tools/startup/antserver/antserver.ant.xml"/>
         
    
    
    
    <target name="must-property-comments">
        <!--<xslt in="${data.model.file}" out="${data.model.parsed}" style="${data.model.xsl}"/>-->
        <for param="ant.file">
            <fileset dir="${helium.dir}" includes="helium.ant.xml">
            </fileset>
            <sequential>     
                <script language="jython">
import re
import java.io
import org.dom4j
import org.dom4j.io

model = org.dom4j.io.SAXReader().read(java.io.File(project.getProperty("helium.dir") + '/build/datamodel.out'))

user_props = model.selectNodes('//property[editStatus="must"]')
indent = '    '
out = open('required_properties.txt', 'w')
for prop in user_props:
#    print prop
    property_comment = indent + "&lt;!--* @property " + prop.elementTextTrim('name') + "\n"
    property_comment += indent + prop.elementTextTrim('description') + "\n"
    property_comment += indent + "@type " + prop.elementTextTrim('type') + "\n"
    property_comment += indent + "@editable required\n"
    property_comment += indent + "@scope public\n"
    property_comment += indent + "--&gt;\n\n"
    print property_comment
    out.write(property_comment)

out.close()
                </script>
            </sequential>
        </for>                               
    </target>
</project>