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

Side by Side Diff: build/android/ant/chromium-jars.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: Created 8 years, 5 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
OLDNEW
(Empty)
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 -->
6 <project name="chromium-jars" default="dist">
7 <!-- Common ant build file for for chromium_*.jars.
8 For creating a new chromium_*.jar :
9 1. Use build/java.gyp action. This action will set PACKAGE_NAME.
10 The jar will be created as chromium_${PACKAGE_NAME} in
11 ${PRODUCT_DIR}/lib.java.
12 2. Set javac.custom.classpath to classpath to use for javac.
13 3. Override javac.srcdir for providing custom source directory for javac.
14 -->
15
16 <import file="common.xml" />
17 <property-location name="src" location="src" />
18 <property-location name="lib.dir" location="${PRODUCT_DIR}/lib.java"
19 check-exists="false" />
20 <property-location name="dest.dir" location="${PRODUCT_DIR}/java/${PACKAGE_NAM E}"
21 check-exists="false" />
22
23 <target name="init">
24 <!-- Create the time stamp -->
25 <tstamp/>
26 <!-- Create the build directory structure used by compile -->
27 <mkdir dir="${lib.dir}" />
28 <mkdir dir="${dest.dir}" />
29 </target>
30
31 <!-- Compile target for jars. Requires javac.custom.classpath to be set.
32 Optionally javac.srcdir can be overridden to custom path for src
33 directories. -->
34 <target name="compile" depends="init"
35 description="Compiles source." >
nilesh 2012/07/25 16:57:22 looks like description will fit on the line above.
Yaron 2012/07/25 18:12:23 Done.
36 <fail message="Error: javac.custom.classpath is not set. Please set it to
37 classpath for javac.">
38 <condition>
39 <not><isreference refid="javac.custom.classpath" /></not>
40 </condition>
41 </fail>
42 <property-value name="javac.srcdir" value ="${src}" />
43 <echo>Compiling ${javac.srcdir}, classpath: ${toString:javac.custom.classpat h}</echo>
44 <javac srcdir="${javac.srcdir}" destdir="${dest.dir}" debug="true" includean truntime="false">
45 <classpath>
46 <path refid="javac.custom.classpath" />
47 </classpath>
48 </javac>
49 </target>
50
51 <target name="dist" depends="compile"
52 description="Generate chromium_${PACKAGE_NAME}.jar." >
nilesh 2012/07/25 16:57:22 I think 4 space indent for continuation will make
Yaron 2012/07/25 18:12:23 Done.
53 <!-- Create the distribution directory -->
54 <mkdir dir="${lib.dir}" />
55 <jar jarfile="${lib.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${dest.dir}" />
56 </target>
57
58 <target name="clean"
59 description="clean up" >
nilesh 2012/07/25 16:57:22 no line break needed.
Yaron 2012/07/25 18:12:23 Done.
60 <!-- Delete the appropriate directory trees -->
61 <delete dir="${dest.dir}" />
62 </target>
63 </project>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698