| OLD | NEW |
| 1 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 <!-- |
| 2 | 2 Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 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 --> | |
| 11 <property name="src" location="src"/> | |
| 12 <property name="build" location="build"/> | |
| 13 <property name="dist" location="dist"/> | |
| 14 <property name="out.dir" location="${PRODUCT_DIR}/lib.java"/> | |
| 15 <property name="dest.dir" location="${PRODUCT_DIR}/java/media"/> | |
| 16 | 10 |
| 17 <target name="init"> | 11 <import file="../../../../build/android/ant/chromium-jars.xml"/> |
| 18 <!-- Create the time stamp --> | |
| 19 <tstamp/> | |
| 20 <!-- Create the build directory structure used by compile --> | |
| 21 <mkdir dir="${out.dir}"/> | |
| 22 <mkdir dir="${dest.dir}"/> | |
| 23 </target> | |
| 24 | 12 |
| 25 <target name="compile" depends="init" | 13 <path id="javac.custom.classpath"> |
| 26 description="compile the source " > | 14 <pathelement location="${ANDROID_SDK}/android.jar"/> |
| 27 <!-- Compile the java code from ${src} into ${dest.dir} --> | 15 <pathelement location="${lib.dir}/chromium_base.jar"/> |
| 28 <javac srcdir="${src}" destdir="${dest.dir}" debug="true" includeantruntime=
"false"> | 16 </path> |
| 29 <classpath> | |
| 30 <pathelement path="${ANDROID_SDK}/android.jar" /> | |
| 31 <pathelement path="${out.dir}/chromium_base.jar" /> | |
| 32 </classpath> | |
| 33 </javac> | |
| 34 </target> | |
| 35 | |
| 36 <target name="dist" depends="compile" | |
| 37 description="generate the distribution" > | |
| 38 <!-- Create the distribution directory --> | |
| 39 <mkdir dir="${out.dir}"/> | |
| 40 | |
| 41 <!-- Put everything in ${build} into the chromium_media.jar file --> | |
| 42 <jar jarfile="${out.dir}/chromium_media.jar" basedir="${dest.dir}"/> | |
| 43 </target> | |
| 44 | |
| 45 <target name="clean" | |
| 46 description="clean up" > | |
| 47 <!-- Delete the appropriate directory trees --> | |
| 48 <delete dir="${dest.dir}"/> | |
| 49 <delete dir="${dist}"/> | |
| 50 </target> | |
| 51 </project> | 17 </project> |
| OLD | NEW |