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

Side by Side Diff: build/android/ant/sdk-targets.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 | « build/android/ant/common.xml ('k') | build/apk_test.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
7 <project name="chrome_sdk_overrides" >
8 <!--
9 Redefinition of targets used by SDK tools.
10 Supported version: SDK tools revision 20.
11
12 SDK tools do not allow easy way of extending classpaths
13 for aidl and javac. This file defines targets which can be used to
14 override targets used by tools.
15 -->
16
17 <!--
18 Override the -compile target.
19 This target requires 'javac.custom.classpath' to be set to reference
20 of classpath to be used for javac. Also accepts custom path for
21 sources: 'javac.custom.sourcepath'.
22 -->
23 <target
24 name="-compile"
25 depends="-build-setup, -pre-build, -code-gen, -pre-compile">
26 <do-only-if-manifest-hasCode elseText="hasCode = false. Skipping..." >
27 <!-- If souce path is not set, then use the default value -->
28 <if>
29 <condition>
30 <not>
31 <isreference refid="javac.custom.sourcepath"/>
32 </not>
33 </condition>
34 <then>
35 <path id="javac.custom.sourcepath">
36 <pathelement path="${source.absolute.dir}"/>
37 <pathelement path="${gen.absolute.dir}"/>
38 </path>
39 </then>
40 </if>
41 <javac
42 bootclasspathref="project.target.class.path"
43 classpathref="javac.custom.classpath"
44 debug="true"
45 destdir="${out.classes.absolute.dir}"
46 encoding="${java.encoding}"
47 extdirs=""
48 fork="${need.javac.fork}"
49 includeantruntime="false"
50 source="${java.source}"
51 target="${java.target}"
52 verbose="${verbose}">
53 <src path="${source.absolute.dir}"/>
54 <src path="${gen.absolute.dir}"/>
55 <src>
56 <path refid="javac.custom.sourcepath"/>
57 </src>
58 <compilerarg line="${java.compilerargs}"/>
59 </javac>
60 <!--
61 If the project is instrumented, then instrument the classes
62 TODO(shashishekhar): Add option to override emma filter.
63 -->
64 <if condition="${build.is.instrumented}">
65 <then>
66 <echo level="info">
67 Instrumenting classes from ${out.absolute.dir}/classes...
68 </echo>
69 <!-- build the default filter to remove R, Manifest, BuildConfig -->
70 <getemmafilter
71 appPackage="${project.app.package}"
72 filterOut="emma.default.filter"
73 libraryPackagesRefId="project.library.packages"/>
74 <!--
75 Define where the .em file is output.
76 This may have been setup already if this is a library.
77 -->
78 <property name="emma.coverage.absolute.file"
79 location="${out.absolute.dir}/coverage.em"/>
80 <!-- It only instruments class files, not any external libs -->
81
82 <emma enabled="true">
83 <instr
84 instrpath="${out.absolute.dir}/classes"
85 metadatafile="${emma.coverage.absolute.file}"
86 mode="overwrite"
87 outdir="${out.absolute.dir}/classes"
88 verbosity="${verbosity}">
89 <filter excludes="${emma.default.filter}"/>
90 <filter value="${emma.filter}"/>
91 </instr>
92 </emma>
93 </then>
94 </if>
95 </do-only-if-manifest-hasCode>
96 </target>
97 </project>
OLDNEW
« no previous file with comments | « build/android/ant/common.xml ('k') | build/apk_test.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698