OLD | NEW |
---|---|
(Empty) | |
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <project name="chrome_sdk_overrides" > | |
3 | |
4 <!-- | |
5 Redefinition of targets used by SDK tools. | |
6 Supported version: SDK tools revision 20. | |
7 | |
8 SDK tools do not allow easy way of extending classpaths | |
9 for aidl and javac. This file defines targets which can be used to | |
10 override targets used by tools. --> | |
11 | |
12 <!-- Override the -compile target. | |
13 This target requires 'javac.custom.classpath' to be set to reference | |
14 of classpath to be used for javac. Also accepts custom path for | |
15 sources: 'javac.custom.sourcepath'. --> | |
16 <target | |
17 name="-compile" | |
18 depends="-build-setup, -pre-build, -code-gen, -pre-compile" > | |
19 <do-only-if-manifest-hasCode elseText="hasCode = false. Skipping..." > | |
20 <!-- If souce path is not set, then use the default value --> | |
21 <if> | |
22 <condition> | |
23 <not> | |
24 <isreference refid="javac.custom.sourcepath" /> | |
nilesh
2012/07/25 16:57:22
This file has 4-space indent. Looks very different
Yaron
2012/07/25 18:12:23
Done.
| |
25 </not> | |
26 </condition> | |
27 <then> | |
28 <path id="javac.custom.sourcepath" > | |
29 <pathelement path="${source.absolute.dir}" /> | |
30 <pathelement path="${gen.absolute.dir}" /> | |
31 </path> | |
32 </then> | |
33 </if> | |
34 <javac | |
35 bootclasspathref="project.target.class.path" | |
36 classpathref="javac.custom.classpath" | |
37 debug="true" | |
38 destdir="${out.classes.absolute.dir}" | |
39 encoding="${java.encoding}" | |
40 extdirs="" | |
41 fork="${need.javac.fork}" | |
42 includeantruntime="false" | |
43 source="${java.source}" | |
44 target="${java.target}" | |
45 verbose="${verbose}" > | |
46 <src path="${source.absolute.dir}" /> | |
47 <src path="${gen.absolute.dir}" /> | |
48 <src> | |
49 <path refid="javac.custom.sourcepath" /> | |
50 </src> | |
51 <compilerarg line="${java.compilerargs}" /> | |
52 </javac> | |
53 <!-- TODO(shashishekhar): Add option to override emma filter. --> | |
54 <!-- if the project is instrumented, then instrument the classes --> | |
55 <if condition="${build.is.instrumented}" > | |
56 <then> | |
57 <echo level="info" > | |
58 Instrumenting classes from ${out.absolute.dir}/cla sses... | |
59 </echo> | |
60 <!-- build the default filter to remove R, Manifest, BuildCo nfig --> | |
61 <getemmafilter | |
62 appPackage="${project.app.package}" | |
63 filterOut="emma.default.filter" | |
64 libraryPackagesRefId="project.library.packages" /> | |
65 <!-- define where the .em file is going. This may have been | |
66 setup already if this is a library | |
67 --> | |
68 <property | |
69 name="emma.coverage.absolute.file" | |
70 location="${out.absolute.dir}/coverage.em" /> | |
71 <!-- It only instruments class files, not any external libs --> | |
72 | |
73 <emma enabled="true" > | |
74 <instr | |
75 instrpath="${out.absolute.dir}/classes" | |
76 metadatafile="${emma.coverage.absolute.file}" | |
77 mode="overwrite" | |
78 outdir="${out.absolute.dir}/classes" | |
79 verbosity="${verbosity}" > | |
80 <filter excludes="${emma.default.filter}" /> | |
81 <filter value="${emma.filter}" /> | |
82 </instr> | |
83 </emma> | |
84 </then> | |
85 </if> | |
86 </do-only-if-manifest-hasCode> | |
87 </target> | |
88 </project> | |
OLD | NEW |