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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 destdir="${dest.dir}" | 78 destdir="${dest.dir}" |
79 classpathref="javac.custom.classpath" | 79 classpathref="javac.custom.classpath" |
80 debug="true" | 80 debug="true" |
81 includeantruntime="false" | 81 includeantruntime="false" |
82 includes="${JAVAC_INCLUDES}" | 82 includes="${JAVAC_INCLUDES}" |
83 /> | 83 /> |
84 </target> | 84 </target> |
85 | 85 |
86 <target name="dist" depends="compile" | 86 <target name="dist" depends="compile" |
87 description="Generate chromium_${PACKAGE_NAME}.jar."> | 87 description="Generate chromium_${PACKAGE_NAME}.jar."> |
88 <!-- Create the distribution directory --> | 88 <!-- Create the distribution directory. We exclude R.class and R$*.class |
| 89 files since new versions of these files with the correct resource -> ID |
| 90 mapping will be provided when we build each individual apk. --> |
89 <jar | 91 <jar |
90 jarfile="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar" | 92 jarfile="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar" |
| 93 excludes="**/R.class **/R$*.class" |
91 basedir="${dest.dir}" | 94 basedir="${dest.dir}" |
92 /> | 95 /> |
93 | 96 |
94 <!-- If Gyp thinks this output is stale but Ant doesn't, the modification | 97 <!-- If Gyp thinks this output is stale but Ant doesn't, the modification |
95 time should still be updated. Otherwise, this target will continue to | 98 time should still be updated. Otherwise, this target will continue to |
96 be rebuilt in future builds. | 99 be rebuilt in future builds. |
97 --> | 100 --> |
98 <touch file="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar"/> | 101 <touch file="${lib.java.dir}/chromium_${PACKAGE_NAME}.jar"/> |
99 </target> | 102 </target> |
100 | 103 |
101 <target name="clean" description="clean up"> | 104 <target name="clean" description="clean up"> |
102 <!-- Delete the appropriate directory trees --> | 105 <!-- Delete the appropriate directory trees --> |
103 <delete dir="${dest.dir}"/> | 106 <delete dir="${dest.dir}"/> |
104 </target> | 107 </target> |
105 </project> | 108 </project> |
OLD | NEW |