| OLD | NEW |
| 1 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 | 2 |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 <project name="Content" default="dist" basedir="."> | 6 <project name="Content" default="dist" basedir="."> |
| 7 <description> | 7 <description> |
| 8 building content java source code with ant | 8 building content java source code with ant |
| 9 </description> | 9 </description> |
| 10 <!-- set global properties for this build --> | 10 <!-- set global properties for this build --> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 <!-- Create the classes output directory --> | 34 <!-- Create the classes output directory --> |
| 35 <mkdir dir="${classes.dir}"/> | 35 <mkdir dir="${classes.dir}"/> |
| 36 | 36 |
| 37 <!-- Compile the java code from ${src} into ${classes.dir} --> | 37 <!-- Compile the java code from ${src} into ${classes.dir} --> |
| 38 <!-- Gyp target should have compiled aidl files into java source files in | 38 <!-- Gyp target should have compiled aidl files into java source files in |
| 39 lib.jar (see content.gyp:common_aidl). --> | 39 lib.jar (see content.gyp:common_aidl). --> |
| 40 <javac srcdir="${src}:${out.dir}" destdir="${classes.dir}" debug="true" incl
udeantruntime="false"> | 40 <javac srcdir="${src}:${out.dir}" destdir="${classes.dir}" debug="true" incl
udeantruntime="false"> |
| 41 <classpath> | 41 <classpath> |
| 42 <pathelement path="${location.base}/android.jar" /> | 42 <pathelement path="${location.base}/android.jar" /> |
| 43 <pathelement path="${jar.dir}/chromium_base.jar" /> | 43 <pathelement path="${jar.dir}/chromium_base.jar" /> |
| 44 <pathelement path="${jar.dir}/chromium_net.jar" /> |
| 44 </classpath> | 45 </classpath> |
| 45 </javac> | 46 </javac> |
| 46 </target> | 47 </target> |
| 47 | 48 |
| 48 <target name="dist" depends="compile" | 49 <target name="dist" depends="compile" |
| 49 description="generate the distribution" > | 50 description="generate the distribution" > |
| 50 <!-- Create the distribution directory --> | 51 <!-- Create the distribution directory --> |
| 51 <mkdir dir="${jar.dir}"/> | 52 <mkdir dir="${jar.dir}"/> |
| 52 | 53 |
| 53 <!-- Put everything in ${classes.dir} into the chromium_content.jar file --> | 54 <!-- Put everything in ${classes.dir} into the chromium_content.jar file --> |
| 54 <jar jarfile="${jar.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${classes.di
r}"/> | 55 <jar jarfile="${jar.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${classes.di
r}"/> |
| 55 </target> | 56 </target> |
| 56 | 57 |
| 57 <target name="clean" description="clean up" > | 58 <target name="clean" description="clean up" > |
| 58 <!-- Delete the generated content --> | 59 <!-- Delete the generated content --> |
| 59 <delete dir="${classes.dir}"/> | 60 <delete dir="${classes.dir}"/> |
| 60 <delete file="${jar.dir}/chromium_${PACKAGE_NAME}.jar"/> | 61 <delete file="${jar.dir}/chromium_${PACKAGE_NAME}.jar"/> |
| 61 </target> | 62 </target> |
| 62 </project> | 63 </project> |
| OLD | NEW |