sf-platform/build.xml
changeset 66 ddfb6b8da4b4
parent 65 0099c046d4f3
child 67 69c57a9ccb7d
equal deleted inserted replaced
65:0099c046d4f3 66:ddfb6b8da4b4
    15    -->
    15    -->
    16 
    16 
    17   <!-- workaround until GenXML can merge v2.0.0 fragments -->
    17   <!-- workaround until GenXML can merge v2.0.0 fragments -->
    18   <target name="create-canonical-sysdef-file">
    18   <target name="create-canonical-sysdef-file">
    19 
    19 
    20        <if>
    20     <runtarget target="preprocess-sysdef-files"/>
    21           <!-- TODO use scripting to match this -->
    21     <echo message="Exporting preprocessed System Definition"/>
    22           <equals arg1="${sf.spec.sysdef.version}" arg2="1.4.0" />
    22     <if><istrue value="${sf.spec.splitbuild}"/>
    23           <then>
    23        <then>
    24             <echo message="Using System Definition v1.4.0 "/>
    24        <if><istrue value="${sf.spec.os.skipbuild}" />
    25             <runtarget target="compile.create-canonical-sysdef-file"/>
    25             <then><echo message="Skipping OS sysdef creation"/></then>
    26           </then>
    26        <else>
    27           <else>
       
    28             <runtarget target="preprocess-sysdef-files"/>
       
    29             <echo message="Exporting preprocessed System Definition"/>
       
    30 
       
    31             <!-- TODO use better method to export or wait for GenXML fix?-->
    27             <!-- TODO use better method to export or wait for GenXML fix?-->
    32             <copy file="${build.output.dir}\build\input\0000000000000001_system_definition.xml"
    28             <copy file="${build.output.dir}\build\input\*_system_model_os.xml"
    33                   tofile="${canonical.sysdef.file}" failonerror="true" verbose="true"/>
    29             tofile="${canonical.sysdef.file}" failonerror="false" verbose="true"/>
    34           </else>
    30        </else>
    35         </if>
    31        </if>
       
    32 
       
    33        <if><istrue value="${sf.spec.s60.skipbuild}" />
       
    34             <then><echo message="Skipping S60 sysdef creation"/></then>
       
    35        <else>
       
    36             <!-- TODO use better method to export or wait for GenXML fix?-->
       
    37             <copy file="${build.output.dir}\build\input\*_system_model_s60.xml"
       
    38             tofile="${canonical.sysdef.file}" failonerror="false" verbose="true"/>
       
    39 	   </else>
       
    40 	   </if>
       
    41 	   </then>
       
    42 	   <else>
       
    43 	        <!-- TODO use better method to export or wait for GenXML fix?-->
       
    44             <copy file="${build.output.dir}\build\input\*_system_model_os.xml"
       
    45             tofile="${canonical.sysdef.file}" failonerror="false" verbose="true"/>
       
    46 
       
    47 	        <!-- TODO targets for single sysdef build -->
       
    48 	        <runtarget target="sf-os-compile"/>
       
    49 	   </else>
       
    50 
    36 
    51 
    37   </target>
    52   </target>
    38 
    53 
    39   <!--
    54   <!--
    40     == Name: PREPROCESS-SYSDEF-FILES
    55     == Name: PREPROCESS-SYSDEF-FILES
    74 
    89 
    75     <target name="generate-layers">
    90     <target name="generate-layers">
    76        <echo message="canno-file:${canonical.sysdef.file}"/>
    91        <echo message="canno-file:${canonical.sysdef.file}"/>
    77        <echo message="raptor-filters:raptor_${sysdef.configuration}"/>
    92        <echo message="raptor-filters:raptor_${sysdef.configuration}"/>
    78 
    93 
    79 	   <!-- split builds currently generate layer sysdef from original -->
    94        <!-- All we want is a sysdef with the config name appended, so just copy it -->
    80 	   <if><istrue value="${sf.spec.splitbuild}"/>
    95        <echo message="INFO: Skip GenXML and copy sysdef to sysdef+config name"/>
    81        <then>
    96        <copy file="${canonical.sysdef.file}" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
    82            <hlm:compileGenxmlFilterMacro xmlns:hlm="http://www.nokia.com/helium" input="${canonical.sysdef.file}" filter="raptor_${sysdef.configuration}" output="${build.output.dir}/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
       
    83 	   </then>
       
    84 	   <else>
       
    85 	       <!-- but all we want is a sysdef with the config name appended, so just copy it -->
       
    86            <echo message="INFO: skip genxml and copy sysdef to sysdef+config name"/>
       
    87            <copy file="${canonical.sysdef.file}" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
       
    88        </else>
       
    89     </if>
       
    90 
    97 
    91 	<copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml">
    98 	<copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml">
    92 		<filterchain>
    99 		<filterchain>
    93 			<linecontainsregexp negate="true">
   100 			<linecontainsregexp negate="true">
    94 			  <regexp pattern="^\s*$"/>
   101 			  <regexp pattern="^\s*$"/>