sf-package/build.xml
changeset 265 5c33f37d47a4
parent 261 257557b39754
child 267 779cc88ed845
equal deleted inserted replaced
264:882d389a6f06 265:5c33f37d47a4
    29   <target name="sf-package-compile">
    29   <target name="sf-package-compile">
    30     
    30     
    31     <hlm:sbsMakeOptions engine="gmake" id="sbs.fullbuild.options"/>
    31     <hlm:sbsMakeOptions engine="gmake" id="sbs.fullbuild.options"/>
    32     <hlm:sbsMakeOptions engine="gmake" id="sbs.toolsbuild.options"/>
    32     <hlm:sbsMakeOptions engine="gmake" id="sbs.toolsbuild.options"/>
    33     
    33     
    34     <!-- CLEAN -->
    34     <!-- BUILD tools2 CLEAN -->
    35     <hlm:argSet id="sbs.main.clean.sbs.var">
    35     <hlm:argSet id="sbs.tools2.clean.var">
    36       <hlm:arg name="config" value="${sf.spec.sbs.config}" />
    36       <hlm:arg name="config" value="tools2" />
    37       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
    37       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}"/>
    38       <hlm:arg name="command" value="CLEAN" />
    38       <hlm:arg name="command" value="CLEAN"/>
    39     </hlm:argSet>
    39     </hlm:argSet>
    40     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    40     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    41       <param name="build.system" value="${sf.spec.build.system}" />
    41       <param name="build.system" value="${sf.spec.build.system}" />
    42       <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
       
    43       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
    42       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
    44       <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
    43       <reference refid="sbs.tools2.clean.var" torefid="sbs.var" />
    45       <reference refid="sbs.main.clean.sbs.var" torefid="sbs.var" />
    44       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
    46       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
       
    47       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
    45       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
    48     </antcall>
    46     </antcall>
    49     
    47     
    50     <!-- BUILD tools2 -->
    48     <!-- BUILD tools2 -->
    51     <hlm:argSet id="sbs.tools2.var">
    49     <hlm:argSet id="sbs.tools2.var">
    52       <hlm:arg name="config" value="tools2_rel" />
    50       <hlm:arg name="config" value="tools2.whatlog" />
    53       <hlm:arg name="singlejob" value="false" />
       
    54       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
    51       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
    55     </hlm:argSet>
    52     </hlm:argSet>
    56     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    53     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    57       <param name="build.system" value="${sf.spec.build.system}" />
    54       <param name="build.system" value="${sf.spec.build.system}" />
    58       <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
       
    59       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
    55       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
    60       <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
       
    61       <reference refid="sbs.tools2.var" torefid="sbs.var" />
    56       <reference refid="sbs.tools2.var" torefid="sbs.var" />
       
    57       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
    58       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
    59     </antcall>
       
    60     
       
    61     <!-- BUILD tools CLEAN -->
       
    62     <hlm:argSet id="sbs.tools.clean.var">
       
    63       <hlm:arg name="config" value="tools"/>
       
    64       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
    65       <hlm:arg name="command" value="CLEAN"/>
       
    66     </hlm:argSet>
       
    67     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
    68       <param name="build.system" value="${sf.spec.build.system}" />
       
    69       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
    70       <reference refid="sbs.tools.clean.var" torefid="sbs.var" />
    62       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
    71       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
    63       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
    72       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
    64     </antcall>
    73     </antcall>
    65     
    74     
    66     <!-- BUILD tools -->
    75     <!-- BUILD tools -->
    67     <hlm:argSet id="sbs.tools.var">
    76     <hlm:argSet id="sbs.tools.var">
    68       <hlm:arg name="config" value="tools_rel" />
    77       <hlm:arg name="config" value="tools.whatlog"/>
    69       <hlm:arg name="singlejob" value="true" />
       
    70       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
    78       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
    71     </hlm:argSet>
    79     </hlm:argSet>
    72     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    80     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    73       <param name="build.system" value="${sf.spec.build.system}" />
    81       <param name="build.system" value="${sf.spec.build.system}" />
    74       <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
       
    75       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
    82       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
    76       <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
       
    77       <reference refid="sbs.tools.var" torefid="sbs.var" />
    83       <reference refid="sbs.tools.var" torefid="sbs.var" />
    78       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
    84       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
    79       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
    85       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
    80     </antcall>
    86     </antcall>
    81     
    87     
    82     <!-- BUILD -->
    88     <!-- BUILD winscw CLEAN -->
    83     <hlm:argSet id="sbs.main.sbs.var">
    89     <hlm:argSet id="sbs.winscw.clean.var">
    84       <hlm:arg name="config" value="${sf.spec.sbs.config}.whatlog" />
    90       <hlm:arg name="config" value="winscw" />
       
    91       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
    92       <hlm:arg name="command" value="CLEAN"/>
       
    93     </hlm:argSet>
       
    94     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
    95       <param name="build.system" value="${sf.spec.build.system}" />
       
    96       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
    97       <reference refid="sbs.winscw.clean.var" torefid="sbs.var" />
       
    98       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
       
    99       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
   100     </antcall>
       
   101     
       
   102     <!-- BUILD winscw -->
       
   103     <hlm:argSet id="sbs.winscw.var">
       
   104       <hlm:arg name="config" value="winscw.whatlog" />
    85       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   105       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
    86     </hlm:argSet>
   106     </hlm:argSet>
    87     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   107     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    88       <param name="build.system" value="${sf.spec.build.system}" />
   108       <param name="build.system" value="${sf.spec.build.system}" />
    89       <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
       
    90       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
   109       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
    91       <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
   110       <reference refid="sbs.winscw.var" torefid="sbs.var" />
    92       <reference refid="sbs.main.sbs.var" torefid="sbs.var" />
   111       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
       
   112       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
   113     </antcall>
       
   114     
       
   115     <!-- BUILD armv5 CLEAN -->
       
   116     <hlm:argSet id="sbs.armv5.clean.var">
       
   117       <hlm:arg name="config" value="armv5" />
       
   118       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
   119       <hlm:arg name="command" value="CLEAN"/>
       
   120     </hlm:argSet>
       
   121     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
   122       <param name="build.system" value="${sf.spec.build.system}" />
       
   123       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
   124       <reference refid="sbs.armv5.clean.var" torefid="sbs.var" />
       
   125       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
       
   126       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
   127     </antcall>
       
   128     
       
   129     <!-- BUILD armv5 -->
       
   130     <hlm:argSet id="sbs.armv5.var">
       
   131       <hlm:arg name="config" value="armv5.whatlog" />
       
   132       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
   133     </hlm:argSet>
       
   134     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
   135       <param name="build.system" value="${sf.spec.build.system}" />
       
   136       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
   137       <reference refid="sbs.armv5.var" torefid="sbs.var" />
    93       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   138       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
    94       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
   139       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
    95     </antcall>
   140     </antcall>
    96     
   141     
    97     <!-- CHECK -->
   142     <!-- CHECK -->
    98     <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log">
   143     <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log">
    99       <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c ${sf.spec.sbs.config} -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/>
   144       <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c tools -c tools2 -c winscw -c armv5 -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/>
   100       <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
   145       <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
   101     </exec>
   146     </exec>
   102     
   147     
   103   </target>
   148   </target>
   104   
   149