OLD | NEW |
1 <project default="dist"> | 1 <project default="dist"> |
2 <import file="sources.xml"/> | 2 <import file="sources.xml"/> |
3 <import file="test_sources.xml"/> | 3 <import file="test_sources.xml"/> |
4 <import file="corelib_sources.xml"/> | 4 <import file="corelib_sources.xml"/> |
5 <import file="compiler_corelib_sources.xml"/> | 5 <import file="compiler_corelib_sources.xml"/> |
6 <import file="domlib_sources.xml"/> | 6 <import file="domlib_sources.xml"/> |
7 <import file="htmllib_sources.xml"/> | 7 <import file="htmllib_sources.xml"/> |
8 <import file="jsonlib_sources.xml"/> | 8 <import file="jsonlib_sources.xml"/> |
9 | 9 |
10 <!-- | 10 <!-- |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 <property name="dist.dir" value="${build.dir}/dist"/> | 42 <property name="dist.dir" value="${build.dir}/dist"/> |
43 | 43 |
44 <property name="test.report.dir" value="${build.dir}/test"/> | 44 <property name="test.report.dir" value="${build.dir}/test"/> |
45 | 45 |
46 <property name="third_party.dir" value="../third_party"/> | 46 <property name="third_party.dir" value="../third_party"/> |
47 | 47 |
48 <property name="d8" value="$DARTC_HOME/bin/d8.$OS"/> | 48 <property name="d8" value="$DARTC_HOME/bin/d8.$OS"/> |
49 | 49 |
50 <property name="test_py" location="../tools/test.py"/> | 50 <property name="test_py" location="../tools/test.py"/> |
51 | 51 |
52 <property name="closure_compiler.jar" value="${build.dir}/../closure_out/compi
ler.jar"/> | |
53 | |
54 <!-- | 52 <!-- |
55 Define buildtime and runtime classpaths. | 53 Define buildtime and runtime classpaths. |
56 --> | 54 --> |
57 <path id="classpath.compile"> | 55 <path id="classpath.compile"> |
58 <pathelement location="${third_party.dir}/args4j/2.0.12/args4j-2.0.12.jar"/> | 56 <pathelement location="${third_party.dir}/args4j/2.0.12/args4j-2.0.12.jar"/> |
59 <pathelement location="${closure_compiler.jar}" /> | |
60 <pathelement location="${third_party.dir}/guava/r09/guava-r09.jar"/> | 57 <pathelement location="${third_party.dir}/guava/r09/guava-r09.jar"/> |
61 <pathelement location="${third_party.dir}/json/r2_20080312/json.jar"/> | 58 <pathelement location="${third_party.dir}/json/r2_20080312/json.jar"/> |
62 <pathelement location="${third_party.dir}/rhino/1_7R3/js.jar"/> | 59 <pathelement location="${third_party.dir}/rhino/1_7R3/js.jar"/> |
63 </path> | 60 </path> |
64 | 61 |
65 <path id="classpath.runtime"> | 62 <path id="classpath.runtime"> |
66 <path refid="classpath.compile"/> | 63 <path refid="classpath.compile"/> |
67 </path> | 64 </path> |
68 | 65 |
69 <path id="classpath.compile.tests"> | 66 <path id="classpath.compile.tests"> |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 --> | 195 --> |
199 <mkdir dir="${dist.dir}/bin"/> | 196 <mkdir dir="${dist.dir}/bin"/> |
200 <mkdir dir="${dist.dir}/lib"/> | 197 <mkdir dir="${dist.dir}/lib"/> |
201 | 198 |
202 <!-- | 199 <!-- |
203 Copy the dart jar to the lib folder. | 200 Copy the dart jar to the lib folder. |
204 --> | 201 --> |
205 <copy file="${dartc.jar}" todir="${dist.dir}/lib"/> | 202 <copy file="${dartc.jar}" todir="${dist.dir}/lib"/> |
206 | 203 |
207 <!-- | 204 <!-- |
208 Copy the closure-compiler jar to the lib folder. | |
209 --> | |
210 <copy file="${closure_compiler.jar}" tofile="${dist.dir}/lib/closure-compile
r.jar"/> | |
211 | |
212 <!-- | |
213 Re-root the classpaths from third_party into the lib folder of the distro. | 205 Re-root the classpaths from third_party into the lib folder of the distro. |
214 --> | 206 --> |
215 <pathconvert property="dartc.classpath.runtime.unix" targetos="unix" refid="
classpath.runtime"> | 207 <pathconvert property="dartc.classpath.runtime.unix" targetos="unix" refid="
classpath.runtime"> |
216 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/> | 208 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/> |
217 </pathconvert> | 209 </pathconvert> |
218 | 210 |
219 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc"> | 211 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc"> |
220 <filterset> | 212 <filterset> |
221 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:$DARTC_LIBS/corel
ib.jar:$DARTC_LIBS/domlib.jar:$DARTC_LIBS/htmllib.jar:$DARTC_LIBS/jsonlib.jar:$D
ARTC_LIBS/closure-compiler.jar:${dartc.classpath.runtime.unix}"/> | 213 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:$DARTC_LIBS/corel
ib.jar:$DARTC_LIBS/domlib.jar:$DARTC_LIBS/htmllib.jar:$DARTC_LIBS/jsonlib.jar:${
dartc.classpath.runtime.unix}"/> |
222 </filterset> | 214 </filterset> |
223 </copy> | 215 </copy> |
224 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/> | 216 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/> |
225 | 217 |
226 <copy file="scripts/dartc_test.sh" tofile="${dist.dir}/bin/dartc_test"> | 218 <copy file="scripts/dartc_test.sh" tofile="${dist.dir}/bin/dartc_test"> |
227 <filterset> | 219 <filterset> |
228 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:$DARTC_LIBS/corel
ib.jar:$DARTC_LIBS/domlib.jar:$DARTC_LIBS/htmllib.jar:$DARTC_LIBS/jsonlib.jar:$D
ARTC_LIBS/closure-compiler.jar:${dartc.classpath.runtime.unix}"/> | 220 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:$DARTC_LIBS/corel
ib.jar:$DARTC_LIBS/domlib.jar:$DARTC_LIBS/htmllib.jar:$DARTC_LIBS/jsonlib.jar:${
dartc.classpath.runtime.unix}"/> |
229 <filter token="D8_EXEC" value="${d8}"/> | 221 <filter token="D8_EXEC" value="${d8}"/> |
230 </filterset> | 222 </filterset> |
231 </copy> | 223 </copy> |
232 <chmod file="${dist.dir}/bin/dartc_test" perm="a+rx"/> | 224 <chmod file="${dist.dir}/bin/dartc_test" perm="a+rx"/> |
233 | 225 |
234 <!-- | 226 <!-- |
235 TODO: The following files are not strictly due to dist, move them out. | 227 TODO: The following files are not strictly due to dist, move them out. |
236 --> | 228 --> |
237 <copy todir="${build.dir}"> | 229 <copy todir="${build.dir}"> |
238 <fileset dir="scripts"> | 230 <fileset dir="scripts"> |
239 <include name="dartc_run.sh"/> | 231 <include name="dartc_run.sh"/> |
240 <include name="dartc_size.sh"/> | 232 <include name="dartc_size.sh"/> |
241 <include name="dartc_metrics.sh"/> | 233 <include name="dartc_metrics.sh"/> |
242 </fileset> | 234 </fileset> |
243 <filterset> | 235 <filterset> |
244 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:$DARTC_LIBS/corel
ib.jar:$DARTC_LIBS/domlib.jar:$DARTC_LIBS/htmllib.jar:$DARTC_LIBS/jsonlib.jar:$D
ARTC_LIBS/closure-compiler.jar:${dartc.classpath.runtime.unix}"/> | 236 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:$DARTC_LIBS/corel
ib.jar:$DARTC_LIBS/domlib.jar:$DARTC_LIBS/htmllib.jar:$DARTC_LIBS/jsonlib.jar:${
dartc.classpath.runtime.unix}"/> |
245 </filterset> | 237 </filterset> |
246 </copy> | 238 </copy> |
247 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/> | 239 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/> |
248 <chmod file="${build.dir}/dartc_size.sh" perm="a+rx"/> | 240 <chmod file="${build.dir}/dartc_size.sh" perm="a+rx"/> |
249 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/> | 241 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/> |
250 | 242 |
251 <!-- | 243 <!-- |
252 Copy of all of the dartc dependencies to the lib folder. | 244 Copy of all of the dartc dependencies to the lib folder. |
253 --> | 245 --> |
254 <copy todir="${dist.dir}/lib"> | 246 <copy todir="${dist.dir}/lib"> |
255 <path refid="classpath.runtime"/> | 247 <path refid="classpath.runtime"/> |
256 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> | 248 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> |
257 </copy> | 249 </copy> |
258 </target> | 250 </target> |
259 | 251 |
260 <target name="clean" description="Deletes the build output directory."> | 252 <target name="clean" description="Deletes the build output directory."> |
261 <delete dir="${build.dir}"/> | 253 <delete dir="${build.dir}"/> |
262 <delete dir="${dist.dir}"/> | 254 <delete dir="${dist.dir}"/> |
263 </target> | 255 </target> |
264 | 256 |
265 <target name="tests.jar" depends="compile-tests"> | 257 <target name="tests.jar" depends="compile-tests"> |
266 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> | 258 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> |
267 </target> | 259 </target> |
268 </project> | 260 </project> |
OLD | NEW |