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="Media" default="dist" basedir="."> | 6 <project name="Media" default="dist" basedir="."> |
7 <description> | 7 <description> |
8 building media java source code with ant | 8 building media java source code with ant |
9 </description> | 9 </description> |
10 <!-- set global properties for this build --> | 10 <!-- set global properties for this build --> |
(...skipping 16 matching lines...) Expand all Loading... |
27 <!-- Create the time stamp --> | 27 <!-- Create the time stamp --> |
28 <tstamp/> | 28 <tstamp/> |
29 <!-- Create the build directory structure used by compile --> | 29 <!-- Create the build directory structure used by compile --> |
30 <mkdir dir="${out.dir}"/> | 30 <mkdir dir="${out.dir}"/> |
31 <mkdir dir="${dest.dir}"/> | 31 <mkdir dir="${dest.dir}"/> |
32 </target> | 32 </target> |
33 | 33 |
34 <target name="compile" depends="init" | 34 <target name="compile" depends="init" |
35 description="compile the source " > | 35 description="compile the source " > |
36 <!-- Compile the java code from ${src} into ${dest.dir} --> | 36 <!-- Compile the java code from ${src} into ${dest.dir} --> |
37 <javac srcdir="${src}" destdir="${dest.dir}"> | 37 <javac srcdir="${src}" destdir="${dest.dir}" debug="true"> |
38 <classpath> | 38 <classpath> |
39 <pathelement path="${location.base}/android.jar" /> | 39 <pathelement path="${location.base}/android.jar" /> |
40 <pathelement path="${out.dir}/chromium_base.jar" /> | 40 <pathelement path="${out.dir}/chromium_base.jar" /> |
41 </classpath> | 41 </classpath> |
42 </javac> | 42 </javac> |
43 </target> | 43 </target> |
44 | 44 |
45 <target name="dist" depends="compile" | 45 <target name="dist" depends="compile" |
46 description="generate the distribution" > | 46 description="generate the distribution" > |
47 <!-- Create the distribution directory --> | 47 <!-- Create the distribution directory --> |
48 <mkdir dir="${out.dir}"/> | 48 <mkdir dir="${out.dir}"/> |
49 | 49 |
50 <!-- Put everything in ${build} into the chromium_media.jar file --> | 50 <!-- Put everything in ${build} into the chromium_media.jar file --> |
51 <jar jarfile="${out.dir}/chromium_media.jar" basedir="${dest.dir}"/> | 51 <jar jarfile="${out.dir}/chromium_media.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 the appropriate directory trees --> | 56 <!-- Delete the appropriate directory trees --> |
57 <delete dir="${dest.dir}"/> | 57 <delete dir="${dest.dir}"/> |
58 <delete dir="${dist}"/> | 58 <delete dir="${dist}"/> |
59 </target> | 59 </target> |
60 </project> | 60 </project> |
OLD | NEW |