build/properties.xml
branchRCL_3
changeset 77 7cee158cb8cd
parent 60 6c158198356e
child 78 71ad690e91f5
child 83 26b2b12093af
equal deleted inserted replaced
71:d5e927d5853b 77:7cee158cb8cd
    10 # Initial Contributors:
    10 # Initial Contributors:
    11 # Nokia Corporation - initial contribution.
    11 # Nokia Corporation - initial contribution.
    12 #
    12 #
    13 # Contributors:
    13 # Contributors:
    14 #
    14 #
    15 # Description: 
    15 # Description:
    16 #
    16 #
    17 -->
    17 -->
    18 
    18 
    19 <project name="Properties">
    19 <project name="Properties">
    20 
    20 
    56 
    56 
    57   <!--The cldc/cdc class file locations, external if not found in default places -->
    57   <!--The cldc/cdc class file locations, external if not found in default places -->
    58   <property name="bootclasspath.cldc" location="${epocroot}epoc32/jrt/classes.cldc.zip"/>
    58   <property name="bootclasspath.cldc" location="${epocroot}epoc32/jrt/classes.cldc.zip"/>
    59   <property name="bootclasspath.cdc"  location="${epocroot}epoc32/jrt/classes.cdc.zip"/>
    59   <property name="bootclasspath.cdc"  location="${epocroot}epoc32/jrt/classes.cdc.zip"/>
    60   <property name="bootclasspath.fp"   location="${epocroot}epoc32/jrt/classes.fp.zip"/>
    60   <property name="bootclasspath.fp"   location="${epocroot}epoc32/jrt/classes.fp.zip"/>
    61   
    61 
    62   <!--NOTE!!! Properties defined below can be used only inside a target-->
    62   <!--NOTE!!! Properties defined below can be used only inside a target-->
    63 
    63 
    64 
    64 
    65   <!--Set the properties with S60 specific values-->
    65   <!--Set the properties with S60 specific values-->
    66   <target name="set.s60.properties" if="target.s60">
    66   <target name="set.s60.properties" if="target.s60">
    69                value="udeb"
    69                value="udeb"
    70                else="urel">
    70                else="urel">
    71       <equals arg1="${target.cfg}" arg2="debug"/>
    71       <equals arg1="${target.cfg}" arg2="debug"/>
    72 	</condition>
    72 	</condition>
    73 
    73 
    74     <!--Location of eswt.jar. This is not needed in S60 Avkon, 
    74     <!--Location of eswt.jar. This is not needed in S60 Avkon,
    75         but needed in S60 Qt. -->
    75         but needed in S60 Qt. -->
    76     <property name="eswt.jar" value=":${java.src.root}/javauis/bin/eswt.jar"/>
    76     <property name="eswt.jar" value=":${java.src.root}/javauis/bin/eswt.jar"/>
    77 
    77 
    78     <!--The root for the java compile time outputs-->
    78     <!--The root for the java compile time outputs-->
    79     <property name="compile.result.root" 
    79     <property name="compile.result.root"
    80               location="${epocroot}epoc32/build/jrt/javabuild"/>
    80               location="${epocroot}epoc32/build/jrt/javabuild"/>
    81     
    81 
    82     <!--The root file where the jarfiles are put that are used to build against-->
    82     <!--The root file where the jarfiles are put that are used to build against-->
    83     <property name="jar.destination.root" 
    83     <property name="jar.destination.root"
    84               location="${epocroot}epoc32/release/${target.platform}/${real.cfg.name}"/>
    84               location="${epocroot}epoc32/release/${target.platform}/${real.cfg.name}"/>
    85     
    85 
    86     <!--JAVA_HOME for JAPT & JAR2JXE -->
    86     <!--JAVA_HOME for JAPT & JAR2JXE -->
    87 
    87 
    88     <!-- Set executable ending for Java platform tools -->
    88     <!-- Set executable ending for Java platform tools -->
    89 	<condition property="j9.java.home" 
    89 	<condition property="j9.java.home"
    90                value="${epocroot}epoc32/tools/java/japtjxe.windows"
    90                value="${epocroot}epoc32/tools/java/japtjxe.windows"
    91                else="${epocroot}epoc32/tools/java/japtjxe.linux">
    91                else="${epocroot}epoc32/tools/java/japtjxe.linux">
    92       <os family="windows"/>
    92       <os family="windows"/>
    93     </condition>
    93     </condition>
    94     
    94 
    95     <!--The utility file containing platform specific fetures-->
    95     <!--The utility file containing platform specific fetures-->
    96     <property name="dyn.platform.utilities.xml.file" value="utilities.s60.xml"/>
    96     <condition property="dyn.platform.utilities.xml.file"
       
    97                value="utilities.linux.xml"
       
    98                else="utilities.s60.xml">
       
    99       <isset property="no.rommizing" />
       
   100     </condition>
    97 
   101 
    98     <!--The default directory for cldc based s60 java code-->
   102     <!--The default directory for cldc based s60 java code-->
    99     <property name="javasrc.platform.specific" value="../javasrc.s60"/>
   103     <property name="javasrc.platform.specific" value="../javasrc.s60"/>
   100 
   104 
   101     <!--The default directory for cdc based s60 java code-->
   105     <!--The default directory for cdc based s60 java code-->
   102     <property name="javasrc.platform.specific.cdc" value="../javasrc.s60.cdc"/>
   106     <property name="javasrc.platform.specific.cdc" value="../javasrc.s60.cdc"/>
   103 
   107 
   104     <!--The java resource root -->
   108     <!--The java resource root -->
   105     <property name="java.res.root" 
   109     <property name="java.res.root"
   106       location="${epocroot}epoc32/release/${target.platform}/${real.cfg.name}/z/resource/java"/>
   110       location="${epocroot}epoc32/release/${target.platform}/${real.cfg.name}/z/resource/java"/>
   107 
   111 
   108     <!--The java captain datacage -->
   112     <!--The java captain datacage -->
   109     <property name="java.captain.datacage" 
   113     <property name="java.captain.datacage"
   110       location="${epocroot}epoc32/release/${target.platform}/${real.cfg.name}/z/private/200211dc"/>
   114       location="${epocroot}epoc32/release/${target.platform}/${real.cfg.name}/z/private/200211dc"/>
   111 
   115 
   112     <!--The extension directory of the VM. -->
   116     <!--The extension directory of the VM. -->
   113     <property name="vm.extension.directory" 
   117     <property name="vm.extension.directory"
   114       location="${java.res.root}/jvm/lib/common"/>
   118       location="${java.res.root}/jvm/lib/common"/>
   115 
   119 
   116     <!--The directory for entitys to be set to bootclass path. This is the location 
   120     <!--The directory for entitys to be set to bootclass path. This is the location
   117         where the jar and/or odc files goes to -->
   121         where the jar and/or odc files goes to -->
   118     <property name="bcp.dest.directory" 
   122     <property name="bcp.dest.directory"
   119       location="${java.res.root}/jvm/lib/jrt"/>
   123       location="${java.res.root}/jvm/lib/jrt"/>
   120 
   124 
   121   </target>
   125   </target>
   122 
   126 
   123 
   127 
   124   <!--Set the properties with linux specific values-->
   128   <!--Set the properties with linux specific values-->
   125   <target name="set.linux.properties" if="target.linux">
   129   <target name="set.linux.properties" if="target.linux">
   126     <!--The root for the java compile time outputs-->
   130     <!--The root for the java compile time outputs-->
   127     <property name="compile.result.root" 
   131     <property name="compile.result.root"
   128               location="${env.JAVA_BIN_ROOT}/javabuild"/>
   132               location="${env.JAVA_BIN_ROOT}/javabuild"/>
   129     
   133 
   130     <!--Location of eswt.jar. This is needed in compile time in Linux-->
   134     <!--Location of eswt.jar. This is needed in compile time in Linux-->
   131     <property name="eswt.jar" value=":${java.src.root}/javauis/bin/eswt.jar"/>
   135     <property name="eswt.jar" value=":${java.src.root}/javauis/bin/eswt.jar"/>
   132 
   136 
   133     <!--The root file where the interface jarfiles are put -->
   137     <!--The root file where the interface jarfiles are put -->
   134     <property name="jar.destination.root" 
   138     <property name="jar.destination.root"
   135               location="${compile.result.root}/jars/${target.platform}/${target.cfg}"/>
   139               location="${compile.result.root}/jars/${target.platform}/${target.cfg}"/>
   136 
   140 
   137     <!--The utility file containing platform specific fetures-->
   141     <!--The utility file containing platform specific fetures-->
   138     <property name="dyn.platform.utilities.xml.file" value="utilities.linux.xml"/>
   142     <property name="dyn.platform.utilities.xml.file" value="utilities.linux.xml"/>
   139 
   143 
   142 
   146 
   143     <!--The default directory for cdc based linux java code-->
   147     <!--The default directory for cdc based linux java code-->
   144     <property name="javasrc.platform.specific.cdc" value="../javasrc.linux.cdc"/>
   148     <property name="javasrc.platform.specific.cdc" value="../javasrc.linux.cdc"/>
   145 
   149 
   146     <!--The java resource root -->
   150     <!--The java resource root -->
   147     <property name="java.res.root" 
   151     <property name="java.res.root"
   148       location="${env.JAVA_BIN_ROOT}"/>
   152       location="${env.JAVA_BIN_ROOT}"/>
   149 
   153 
   150     <!--The java captain datacage -->
   154     <!--The java captain datacage -->
   151     <property name="java.captain.datacage" 
   155     <property name="java.captain.datacage"
   152       location="${env.JAVA_BIN_ROOT}"/>
   156       location="${env.JAVA_BIN_ROOT}"/>
   153 
   157 
   154     <!--The extension directory of the VM. -->
   158     <!--The extension directory of the VM. -->
   155     <property name="vm.extension.directory" location="${env.JAVA_BIN_ROOT}/jsr/classes/common"/>
   159     <property name="vm.extension.directory" location="${env.JAVA_BIN_ROOT}/jsr/classes/common"/>
   156 
   160 
   157     <!--The directory for entitys to be set to bootclass path. This is the location 
   161     <!--The directory for entitys to be set to bootclass path. This is the location
   158         where the jar and/or odc files goes to -->
   162         where the jar and/or odc files goes to -->
   159     <property name="bcp.dest.directory" 
   163     <property name="bcp.dest.directory"
   160       location="${vm.extension.directory}"/>
   164       location="${vm.extension.directory}"/>
   161 
   165 
   162   </target>
   166   </target>
   163 
   167 
   164   <!-- Set target.s60 or target.linux -->
   168   <!-- Set target.s60 or target.linux -->
   165   <target name="set.target" depends="explicit.target.type, implicit.target.type">
   169   <target name="set.target" depends="explicit.target.type, implicit.target.type">
   166 	<condition property="target.s60">
   170 	<condition property="target.s60">
   167       <equals arg1="${target.type}" arg2="s60"/>
   171       <equals arg1="${target.type}" arg2="s60"/>
   168 	</condition>
   172 	</condition>
   169 	<condition property="target.linux">	
   173 	<condition property="target.linux">
   170       <equals arg1="${target.type}" arg2="linux"/>
   174       <equals arg1="${target.type}" arg2="linux"/>
   171     </condition>
   175     </condition>
   172   </target>
   176   </target>
   173 
   177 
   174   <!-- Get implicit target.type (s60 or linux) -->
   178   <!-- Get implicit target.type (s60 or linux) -->
   181   	</condition>
   185   	</condition>
   182   </target>
   186   </target>
   183 
   187 
   184   <!-- Get explicit target type from variable "target.buildenv" -->
   188   <!-- Get explicit target type from variable "target.buildenv" -->
   185   <target name="explicit.target.type" if="env.BUILDENV">
   189   <target name="explicit.target.type" if="env.BUILDENV">
   186 	<condition property="target.type" value="s60">  
   190 	<condition property="target.type" value="s60">
   187 	  <equals arg1="${env.BUILDENV}" arg2="symbian"/>
   191 	  <equals arg1="${env.BUILDENV}" arg2="symbian"/>
   188 	</condition>
   192 	</condition>
   189 	<condition property="target.type" value="linux">  
   193 	<condition property="target.type" value="linux">
   190 	  <equals arg1="${env.BUILDENV}" arg2="linux"/>
   194 	  <equals arg1="${env.BUILDENV}" arg2="linux"/>
   191 	</condition>
   195 	</condition>
   192 
   196 
   193   </target>
   197   </target>
   194 
   198 
   241     <property name="java.src.second.paths" value="../javasrc.cdc"/>
   245     <property name="java.src.second.paths" value="../javasrc.cdc"/>
   242   </target>
   246   </target>
   243 
   247 
   244   <!--Target for making component specific initalizations depending on
   248   <!--Target for making component specific initalizations depending on
   245       the values of dynamic properties (e.g. Target platform).
   249       the values of dynamic properties (e.g. Target platform).
   246       The default implementation of this target is empty and the component 
   250       The default implementation of this target is empty and the component
   247       should override this if it provides public APIs -->
   251       should override this if it provides public APIs -->
   248   <target name="init.component.properties">
   252   <target name="init.component.properties">
   249   </target>
   253   </target>
   250 
   254 
   251 
   255 
   253   <target name="init.properties" depends="set.target,
   257   <target name="init.properties" depends="set.target,
   254                                           define.target.platform,
   258                                           define.target.platform,
   255                                           define.target.cfg,
   259                                           define.target.cfg,
   256                                           set.s60.properties,
   260                                           set.s60.properties,
   257                                           set.linux.properties,
   261                                           set.linux.properties,
   258                                           define.bootclasspath, 
   262                                           define.bootclasspath,
   259                                           init.component.properties,
   263                                           init.component.properties,
   260                                           define.javasrc.path,
   264                                           define.javasrc.path,
   261                                           define.jar.filename,
   265                                           define.jar.filename,
   262                                           define.native.dll.name,
   266                                           define.native.dll.name,
   263                                           define.odc.file.name,
   267                                           define.odc.file.name,
   273     <!--The directory where the component specific classes (1) are put to -->
   277     <!--The directory where the component specific classes (1) are put to -->
   274     <property name="classes.first.dir" location="${classes.dir}/first"/>
   278     <property name="classes.first.dir" location="${classes.dir}/first"/>
   275 
   279 
   276     <!--The directory where the component specific classes (2) are put to -->
   280     <!--The directory where the component specific classes (2) are put to -->
   277     <property name="classes.second.dir" location="${classes.dir}/second"/>
   281     <property name="classes.second.dir" location="${classes.dir}/second"/>
   278     
   282 
   279     <!--The directory where the component specific classes are collected to -->
   283     <!--The directory where the component specific classes are collected to -->
   280     <property name="classes.collection.dir" location="${classes.dir}/collection"/>
   284     <property name="classes.collection.dir" location="${classes.dir}/collection"/>
   281 
   285 
   282     <!--The directory where the temporary javah header files are put to -->
   286     <!--The directory where the temporary javah header files are put to -->
   283     <property name="temp.javah.dir" location="${component.root.dir}/temp.javah"/>
   287     <property name="temp.javah.dir" location="${component.root.dir}/temp.javah"/>
   302     <property name="resource.jar" location="${bcp.dest.directory}/resources.jar"/>
   306     <property name="resource.jar" location="${bcp.dest.directory}/resources.jar"/>
   303 
   307 
   304     <!--The jar file containing all the cldc based class files and cldc classes itself
   308     <!--The jar file containing all the cldc based class files and cldc classes itself
   305         This is for signature testing -->
   309         This is for signature testing -->
   306     <property name="signature.jar" location="${jar.destination.root}/java_signature_test.jar"/>
   310     <property name="signature.jar" location="${jar.destination.root}/java_signature_test.jar"/>
   307     
   311 
   308     <!--Property for setting the javadebug for java compilation-->
   312     <!--Property for setting the javadebug for java compilation-->
   309 	<condition property="javac.debug.on"
   313 	<condition property="javac.debug.on"
   310                value="true"
   314                value="true"
   311                else="false">
   315                else="false">
   312       <equals arg1="${target.cfg}" arg2="debug"/>
   316       <equals arg1="${target.cfg}" arg2="debug"/>
   313 	</condition>
   317 	</condition>
   314     
   318 
   315     <!--Does the directory containing platform specific cldc based code exist -->
   319     <!--Does the directory containing platform specific cldc based code exist -->
   316     <available file="${javasrc.platform.specific}" property="javasrc.platform.specific.present"/>
   320     <available file="${javasrc.platform.specific}" property="javasrc.platform.specific.present"/>
   317 
   321 
   318     <!--Does the directory containing platform specific cdc based code exist -->
   322     <!--Does the directory containing platform specific cdc based code exist -->
   319     <available file="${javasrc.platform.specific.cdc}" property="javasrc.platform.specific.cdc.present"/>
   323     <available file="${javasrc.platform.specific.cdc}" property="javasrc.platform.specific.cdc.present"/>