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

Side by Side Diff: base/android/java/base.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 | « no previous file | build/android/ant/chromium-jars.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 <!--
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
4 found in the LICENSE file.
5 -->
1 <project name="Base" default="dist" basedir="."> 6 <project name="Base" default="dist" basedir=".">
2 <description> 7 <description>
3 building base java source code with ant 8 building base java source code with ant
4 </description> 9 </description>
5 <!-- Set global properties for this build --> 10 <import file="../../../build/android/ant/chromium-jars.xml" />
6 <property name="src" location="src"/>
7 <property name="dist" location="dist"/>
8 <property name="out.dir" location="${PRODUCT_DIR}/lib.java"/>
9 <!-- TODO(jrg): establish a standard for the intermediate java
10 directories. Settle on a standard once ant/jar build files
11 like this are androidified -->
12 <property name="dest.dir" location="${PRODUCT_DIR}/java/base"/>
13 11
14 <target name="init"> 12 <path id="javac.custom.classpath">
15 <!-- Create the time stamp --> 13 <pathelement location="${ANDROID_SDK}/android.jar" />
16 <tstamp/> 14 </path>
17 <!-- Create the build directory structure used by compile -->
18 <mkdir dir="${out.dir}"/>
19 <mkdir dir="${dest.dir}"/>
20 </target>
21
22 <target name="compile" depends="init"
23 description="compile the source " >
24 <!-- Compile the java code from ${src} into ${build} -->
25 <!-- TODO(jrg): adapting this to a proper android antfile will
26 remove warnings like this:
27 base.xml:23: warning: 'includeantruntime' was not set,
28 defaulting to build.sysclasspath=last;
29 set to false for repeatable builds
30 -->
31 <javac srcdir="${src}" destdir="${dest.dir}" debug="true" includeantruntime= "false">
32 <classpath>
33 <path location="${ANDROID_SDK}/android.jar"/>
34 </classpath>
35 </javac>
36 </target>
37
38 <target name="dist" depends="compile"
39 description="generate the distribution" >
40 <!-- Create the distribution directory -->
41 <mkdir dir="${out.dir}"/>
42
43 <jar jarfile="${out.dir}/chromium_base.jar" basedir="${dest.dir}"/>
44 </target>
45
46 <target name="clean"
47 description="clean up" >
48 <!-- Delete the appropriate directory trees -->
49 <delete dir="${dest.dir}"/>
50 <delete dir="${dist}"/>
51 </target>
52 </project> 15 </project>
OLDNEW
« no previous file with comments | « no previous file | build/android/ant/chromium-jars.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698