Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Side by Side Diff: media/base/android/java/media.xml

Issue 10821105: Android: remove ant environment dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/android/javatests/content_javatests.xml ('k') | net/android/java/net.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 -->
11 <property environment="env"/>
12 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/>
13 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/>
14 <property name="src" location="src"/> 11 <property name="src" location="src"/>
15 <property name="build" location="build"/> 12 <property name="build" location="build"/>
16 <property name="dist" location="dist"/> 13 <property name="dist" location="dist"/>
17 <property name="out.dir" location="${PRODUCT_DIR}/lib.java"/> 14 <property name="out.dir" location="${PRODUCT_DIR}/lib.java"/>
18 <property name="dest.dir" location="${PRODUCT_DIR}/java/media"/> 15 <property name="dest.dir" location="${PRODUCT_DIR}/java/media"/>
19 16
20 <condition property="location.base"
21 value="${sdk.dir}"
22 else="${sdk.dir}/platforms/android-${sdk.version}">
23 <isset property="env.ANDROID_BUILD_TOP"/>
24 </condition>
25
26 <target name="init"> 17 <target name="init">
27 <!-- Create the time stamp --> 18 <!-- Create the time stamp -->
28 <tstamp/> 19 <tstamp/>
29 <!-- Create the build directory structure used by compile --> 20 <!-- Create the build directory structure used by compile -->
30 <mkdir dir="${out.dir}"/> 21 <mkdir dir="${out.dir}"/>
31 <mkdir dir="${dest.dir}"/> 22 <mkdir dir="${dest.dir}"/>
32 </target> 23 </target>
33 24
34 <target name="compile" depends="init" 25 <target name="compile" depends="init"
35 description="compile the source " > 26 description="compile the source " >
36 <!-- Compile the java code from ${src} into ${dest.dir} --> 27 <!-- Compile the java code from ${src} into ${dest.dir} -->
37 <javac srcdir="${src}" destdir="${dest.dir}" debug="true" includeantruntime= "false"> 28 <javac srcdir="${src}" destdir="${dest.dir}" debug="true" includeantruntime= "false">
38 <classpath> 29 <classpath>
39 <pathelement path="${location.base}/android.jar" /> 30 <pathelement path="${ANDROID_SDK}/android.jar" />
40 <pathelement path="${out.dir}/chromium_base.jar" /> 31 <pathelement path="${out.dir}/chromium_base.jar" />
41 </classpath> 32 </classpath>
42 </javac> 33 </javac>
43 </target> 34 </target>
44 35
45 <target name="dist" depends="compile" 36 <target name="dist" depends="compile"
46 description="generate the distribution" > 37 description="generate the distribution" >
47 <!-- Create the distribution directory --> 38 <!-- Create the distribution directory -->
48 <mkdir dir="${out.dir}"/> 39 <mkdir dir="${out.dir}"/>
49 40
50 <!-- Put everything in ${build} into the chromium_media.jar file --> 41 <!-- Put everything in ${build} into the chromium_media.jar file -->
51 <jar jarfile="${out.dir}/chromium_media.jar" basedir="${dest.dir}"/> 42 <jar jarfile="${out.dir}/chromium_media.jar" basedir="${dest.dir}"/>
52 </target> 43 </target>
53 44
54 <target name="clean" 45 <target name="clean"
55 description="clean up" > 46 description="clean up" >
56 <!-- Delete the appropriate directory trees --> 47 <!-- Delete the appropriate directory trees -->
57 <delete dir="${dest.dir}"/> 48 <delete dir="${dest.dir}"/>
58 <delete dir="${dist}"/> 49 <delete dir="${dist}"/>
59 </target> 50 </target>
60 </project> 51 </project>
OLDNEW
« no previous file with comments | « content/public/android/javatests/content_javatests.xml ('k') | net/android/java/net.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698