common/build.xml
changeset 18 9f36ff790ea7
parent 13 046dbf1ae2da
child 19 3bb3e0eff093
equal deleted inserted replaced
13:046dbf1ae2da 18:9f36ff790ea7
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <project name="SF-COMMON-CONFIG">
     2 <project name="SF-COMMON-CONFIG">
     3 
     3 
     4     <property environment="env"/> <!-- make environment variables available via env -->
     4     <property environment="env"/> <!-- make environment variables available via env -->
     5 
     5     
     6     <dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/>
     6     <dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/>
     7     
     7     
     8     <!-- import common properties/spec -->
     8     <!-- import common properties -->
     9     <loadproperties srcFile="${sf.common.config.dir}/common.properties"/>
     9     <import file="${sf.common.config.dir}/common_props.ant.xml" />
    10     <import file="${sf.common.config.dir}/common_spec.ant.xml" />
    10     
       
    11     <!-- setup Helium internal properties from their equivalent in the project spec -->
       
    12     <property name="build.name" value="${sf.spec.job.name}"/>
       
    13     <property name="build.number" value="${sf.spec.job.number}"/>
       
    14     <property name="build.family" value="${sf.project.type}"/>
       
    15     <property name="core.build.version" value="${sf.spec.corebuildversion}"/>
       
    16     <property name="email.from" value="${sf.spec.email.from}"/>
       
    17     <property name="local.free.space" value="${sf.spec.job.freespace}"/>
       
    18     <property name="network.free.space" value="${sf.spec.publish.network.freespace}"/>
       
    19     <property name="network.drive" value="${sf.spec.publish.networkdrive}"/>
       
    20     <property name="publish.root.dir" value="${sf.spec.publish.publish.rootdir}"/>
       
    21     <property name="build.system" value="${sf.spec.build.system}"/>
       
    22     <property name="base_release.path" value="${sf.spec.baseline.location}"/>
       
    23     <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
    11     
    24     
    12     <!-- import all core HELIUM targets -->
    25     <!-- import all core HELIUM targets -->
    13     <import file="${helium.dir}/helium.ant.xml" />
    26     <import file="${helium.dir}/helium.ant.xml" />
       
    27     
       
    28     <!-- import common references -->
       
    29     <import file="${sf.common.config.dir}/common_refs.ant.xml" />
    14              
    30              
    15     <!-- conditional import of generated source spec if available -->
    31     <!-- conditional import of generated source spec if available -->
    16     <if><available  file="${sf.common.config.dir}/generated/source-spec.ant.xml" />
    32     <if><available  file="${sf.common.config.dir}/generated/source-spec.ant.xml" />
    17         <then>		    		
    33         <then>		    		
    18             <echo message="Generated source spec found, importing..." />
    34             <echo message="Generated source spec found, importing..." />
    61         <echo>[SF-PREBUILD]</echo>
    77         <echo>[SF-PREBUILD]</echo>
    62         
    78         
    63         <if>
    79         <if>
    64             <istrue value="${sf.spec.baseline.enable}" />
    80             <istrue value="${sf.spec.baseline.enable}" />
    65             <then>
    81             <then>
    66                 <property name="base_release.path" value="${sf.spec.baseline.location}"/>
       
    67                 <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
       
    68                 <echo>base_release.path=${base_release.path}, base_release.getenv_options=${base_release.getenv_options}</echo>
       
    69                 <runtarget target="preparation-getenv"/>
    82                 <runtarget target="preparation-getenv"/>
    70             </then>
    83             </then>
    71         </if>
    84         </if>
    72         
    85         
    73         <if>
    86         <if>
    85     <target name="sf-build-noprep" depends="sf-compile">
    98     <target name="sf-build-noprep" depends="sf-compile">
    86         <echo>[SF-BUILD-NOPREP]</echo>
    99         <echo>[SF-BUILD-NOPREP]</echo>
    87     </target>
   100     </target>
    88     
   101     
    89     <target name="sf-compile">    
   102     <target name="sf-compile">    
       
   103     
       
   104     	<!-- TODO: add here assigments to raptor-related ant references -->
       
   105  	
       
   106     	<!-- hlm:argSet id="sbs.tools.var">
       
   107 			<hlm:arg name="config" value="${sf.spec.sbs.config}" />
       
   108 			<hlm:arg name="singlejob" value="..." />
       
   109 			<hlm:arg name="enable-filter" value="..." />
       
   110 		</hlm:argSet -->
       
   111     	
    90         <!-- target name="compile-main-prebuild" -->
   112         <!-- target name="compile-main-prebuild" -->
    91         <antcall target="compile-main" inheritAll="false">
   113         <antcall target="compile-main" inheritAll="false">
    92             <param name="build.system" value="sbs" />
   114             <param name="build.system" value="${sf.spec.build.system}"/>
    93             <param name="sysdef.configurations.list" value="s60_build_clean,s60_build" />
   115             <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
    94             <!--<reference refid="sf.system.definition.files" torefid="system.definition.files" />-->
   116             <!--<reference refid="sf.system.definition.files" torefid="system.definition.files" />-->
    95         </antcall>    
   117         </antcall>    
    96     </target>
   118     </target>
    97     
   119     
    98     
       
    99     <target name="sf-get-source" depends="sf-generate-source-spec">
   120     <target name="sf-get-source" depends="sf-generate-source-spec">
   100         <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" />
   121         <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" />
   101     </target>
   122     </target>
   102     
   123 
   103     
       
   104 </project>
   124 </project>
   105 
   125 
   106 
   126