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

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

Issue 10830012: [Android] Add chrome_java target for building Java code in the chromium layer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@reland
Patch Set: fix java build error 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
« no previous file with comments | « content/shell/android/javatests/content_shell_test_apk.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 <!--
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>
OLDNEW
« no previous file with comments | « content/shell/android/javatests/content_shell_test_apk.xml ('k') | net/android/java/net.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698