OLD | NEW |
1 <project name="Base" default="dist" basedir="."> | 1 <project name="Base" default="dist" basedir="."> |
2 <description> | 2 <description> |
3 building base java source code with ant | 3 building base java source code with ant |
4 </description> | 4 </description> |
5 <!-- Set global properties for this build --> | 5 <!-- Set global properties for this build --> |
6 <property environment="env"/> | 6 <property environment="env"/> |
7 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> | 7 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> |
8 <!-- TODO(jrg): The apk-runner's version is hardcoded to SDK version 14. These | 8 <!-- TODO(jrg): The apk-runner's version is hardcoded to SDK version 14. These |
9 two should be unified. --> | 9 two should be unified. --> |
10 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> | 10 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 <target name="compile" depends="init" | 36 <target name="compile" depends="init" |
37 description="compile the source " > | 37 description="compile the source " > |
38 <!-- Compile the java code from ${src} into ${build} --> | 38 <!-- Compile the java code from ${src} into ${build} --> |
39 <!-- TODO(jrg): adapting this to a proper android antfile will | 39 <!-- TODO(jrg): adapting this to a proper android antfile will |
40 remove warnings like this: | 40 remove warnings like this: |
41 base.xml:23: warning: 'includeantruntime' was not set, | 41 base.xml:23: warning: 'includeantruntime' was not set, |
42 defaulting to build.sysclasspath=last; | 42 defaulting to build.sysclasspath=last; |
43 set to false for repeatable builds | 43 set to false for repeatable builds |
44 --> | 44 --> |
45 <javac srcdir="${src}" destdir="${dest.dir}"> | 45 <javac srcdir="${src}" destdir="${dest.dir}" debug="true"> |
46 <classpath> | 46 <classpath> |
47 <path location="${location.base}/android.jar"/> | 47 <path location="${location.base}/android.jar"/> |
48 </classpath> | 48 </classpath> |
49 </javac> | 49 </javac> |
50 </target> | 50 </target> |
51 | 51 |
52 <target name="dist" depends="compile" | 52 <target name="dist" depends="compile" |
53 description="generate the distribution" > | 53 description="generate the distribution" > |
54 <!-- Create the distribution directory --> | 54 <!-- Create the distribution directory --> |
55 <mkdir dir="${out.dir}"/> | 55 <mkdir dir="${out.dir}"/> |
56 | 56 |
57 <jar jarfile="${out.dir}/chromium_base.jar" basedir="${dest.dir}"/> | 57 <jar jarfile="${out.dir}/chromium_base.jar" basedir="${dest.dir}"/> |
58 </target> | 58 </target> |
59 | 59 |
60 <target name="clean" | 60 <target name="clean" |
61 description="clean up" > | 61 description="clean up" > |
62 <!-- Delete the appropriate directory trees --> | 62 <!-- Delete the appropriate directory trees --> |
63 <delete dir="${dest.dir}"/> | 63 <delete dir="${dest.dir}"/> |
64 <delete dir="${dist}"/> | 64 <delete dir="${dist}"/> |
65 </target> | 65 </target> |
66 </project> | 66 </project> |
OLD | NEW |