OLD | NEW |
1 <project name="net" default="dist" basedir="."> | 1 <project name="net" default="dist" basedir="."> |
2 <description> | 2 <description> |
3 Building net/ java source code with ant. | 3 Building net/ 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 17 matching lines...) Expand all Loading... |
28 <target name="init"> | 28 <target name="init"> |
29 <!-- Create the time stamp --> | 29 <!-- Create the time stamp --> |
30 <tstamp/> | 30 <tstamp/> |
31 <!-- Create the build directory structure used by compile --> | 31 <!-- Create the build directory structure used by compile --> |
32 <mkdir dir="${out.dir}"/> | 32 <mkdir dir="${out.dir}"/> |
33 <mkdir dir="${dest.dir}"/> | 33 <mkdir dir="${dest.dir}"/> |
34 </target> | 34 </target> |
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 <javac srcdir="${src}" destdir="${dest.dir}"> | 38 <javac srcdir="${src}" destdir="${dest.dir}" debug="true"> |
39 <classpath> | 39 <classpath> |
40 <path location="${location.base}/android.jar"/> | 40 <path location="${location.base}/android.jar"/> |
41 <path location="${out.dir}/chromium_base.jar"/> | 41 <path location="${out.dir}/chromium_base.jar"/> |
42 </classpath> | 42 </classpath> |
43 </javac> | 43 </javac> |
44 </target> | 44 </target> |
45 | 45 |
46 <target name="dist" depends="compile" | 46 <target name="dist" depends="compile" |
47 description="generate the distribution" > | 47 description="generate the distribution" > |
48 <!-- Create the distribution directory --> | 48 <!-- Create the distribution directory --> |
49 <mkdir dir="${dist}/lib"/> | 49 <mkdir dir="${dist}/lib"/> |
50 | 50 |
51 <jar jarfile="${out.dir}/chromium_net.jar" basedir="${dest.dir}"/> | 51 <jar jarfile="${out.dir}/chromium_net.jar" basedir="${dest.dir}"/> |
52 </target> | 52 </target> |
53 | 53 |
54 <target name="clean" | 54 <target name="clean" |
55 description="clean up" > | 55 description="clean up" > |
56 <delete dir="${dest.dir}"/> | 56 <delete dir="${dest.dir}"/> |
57 <delete dir="${dist}"/> | 57 <delete dir="${dist}"/> |
58 </target> | 58 </target> |
59 </project> | 59 </project> |
OLD | NEW |