OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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="chromium-jars" default="dist"> | 6 <project name="chromium-jars" default="dist"> |
7 <!-- | 7 <!-- |
8 Common ant build file for for chromium_*.jars. | 8 Common ant build file for for chromium_*.jars. |
9 For creating a new chromium_*.jar : | 9 For creating a new chromium_*.jar : |
10 1. Use build/java.gypi action. | 10 1. Use build/java.gypi action. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 <target name="compile" depends="init" description="Compiles source."> | 63 <target name="compile" depends="init" description="Compiles source."> |
64 <fail message="Error: javac.custom.classpath is not set. Please set it to | 64 <fail message="Error: javac.custom.classpath is not set. Please set it to |
65 classpath for javac."> | 65 classpath for javac."> |
66 <condition> | 66 <condition> |
67 <not><isreference refid="javac.custom.classpath"/></not> | 67 <not><isreference refid="javac.custom.classpath"/></not> |
68 </condition> | 68 </condition> |
69 </fail> | 69 </fail> |
70 | 70 |
71 <javac | 71 <javac |
72 srcdir="${javac.srcdir}" | 72 srcdir="${javac.srcdir}" |
73 destdir="${dest.dir}" | 73 destdir="${dest.dir}" |
74 classpathref="javac.custom.classpath" | 74 classpathref="javac.custom.classpath" |
75 debug="true" | 75 debug="true" |
76 includeantruntime="false" | 76 includeantruntime="false" |
77 includes="${JAVAC_INCLUDES}" | 77 includes="${JAVAC_INCLUDES}"> |
78 /> | 78 <compilerarg value="-Xlint:unchecked"/> |
| 79 </javac> |
79 </target> | 80 </target> |
80 | 81 |
81 <target name="dist" depends="compile" | 82 <target name="dist" depends="compile" |
82 description="Generate chromium_${PACKAGE_NAME}.jar."> | 83 description="Generate chromium_${PACKAGE_NAME}.jar."> |
83 <!-- Create the distribution directory. We exclude R.class and R$*.class | 84 <!-- Create the distribution directory. We exclude R.class and R$*.class |
84 files since new versions of these files with the correct resource -> ID | 85 files since new versions of these files with the correct resource -> ID |
85 mapping will be provided when we build each individual apk. --> | 86 mapping will be provided when we build each individual apk. --> |
86 <jar | 87 <jar |
87 jarfile="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar" | 88 jarfile="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar" |
88 excludes="**/R.class **/R$*.class" | 89 excludes="**/R.class **/R$*.class" |
89 basedir="${dest.dir}" | 90 basedir="${dest.dir}" |
90 /> | 91 /> |
91 | 92 |
92 <!-- If Gyp thinks this output is stale but Ant doesn't, the modification | 93 <!-- If Gyp thinks this output is stale but Ant doesn't, the modification |
93 time should still be updated. Otherwise, this target will continue to | 94 time should still be updated. Otherwise, this target will continue to |
94 be rebuilt in future builds. | 95 be rebuilt in future builds. |
95 --> | 96 --> |
96 <touch file="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar"/> | 97 <touch file="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar"/> |
97 </target> | 98 </target> |
98 | 99 |
99 <target name="clean" description="clean up"> | 100 <target name="clean" description="clean up"> |
100 <!-- Delete the appropriate directory trees --> | 101 <!-- Delete the appropriate directory trees --> |
101 <delete dir="${dest.dir}"/> | 102 <delete dir="${dest.dir}"/> |
102 </target> | 103 </target> |
103 </project> | 104 </project> |
OLD | NEW |