| OLD | NEW |
| 1 <!-- |
| 2 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 for details. All rights reserved. Use of this source code is governed by a |
| 4 BSD-style license that can be found in the LICENSE file. |
| 5 --> |
| 1 <project default="dist"> | 6 <project default="dist"> |
| 2 <import file="sources.xml"/> | 7 <import file="sources.xml"/> |
| 3 <import file="test_sources.xml"/> | 8 <import file="test_sources.xml"/> |
| 4 <import file="corelib_sources.xml"/> | 9 <import file="corelib_sources.xml"/> |
| 5 <import file="compiler_corelib_sources.xml"/> | 10 <import file="compiler_corelib_sources.xml"/> |
| 6 <import file="domlib_sources.xml"/> | 11 <import file="domlib_sources.xml"/> |
| 7 <import file="htmllib_sources.xml"/> | 12 <import file="htmllib_sources.xml"/> |
| 8 <import file="jsonlib_sources.xml"/> | 13 <import file="jsonlib_sources.xml"/> |
| 9 | 14 |
| 10 <!-- | 15 <!-- |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 <property name="htmllib.jar" value="${build.dir}/htmllib.jar"/> | 43 <property name="htmllib.jar" value="${build.dir}/htmllib.jar"/> |
| 39 | 44 |
| 40 <property name="jsonlib.jar" value="${build.dir}/jsonlib.jar"/> | 45 <property name="jsonlib.jar" value="${build.dir}/jsonlib.jar"/> |
| 41 | 46 |
| 42 <property name="dist.dir" value="${build.dir}/dist"/> | 47 <property name="dist.dir" value="${build.dir}/dist"/> |
| 43 | 48 |
| 44 <property name="test.report.dir" value="${build.dir}/test"/> | 49 <property name="test.report.dir" value="${build.dir}/test"/> |
| 45 | 50 |
| 46 <property name="third_party.dir" value="../third_party"/> | 51 <property name="third_party.dir" value="../third_party"/> |
| 47 | 52 |
| 48 <property name="d8" value="$DARTC_HOME/bin/d8.$OS"/> | |
| 49 | |
| 50 <property name="test_py" location="../tools/test.py"/> | 53 <property name="test_py" location="../tools/test.py"/> |
| 51 | 54 |
| 52 <!-- | 55 <!-- |
| 53 Define buildtime and runtime classpaths. | 56 Define buildtime and runtime classpaths. |
| 54 --> | 57 --> |
| 55 <path id="classpath.compile"> | 58 <path id="classpath.compile"> |
| 56 <pathelement location="${third_party.dir}/args4j/2.0.12/args4j-2.0.12.jar"/> | 59 <pathelement location="${third_party.dir}/args4j/2.0.12/args4j-2.0.12.jar"/> |
| 57 <pathelement location="${third_party.dir}/guava/r09/guava-r09.jar"/> | 60 <pathelement location="${third_party.dir}/guava/r09/guava-r09.jar"/> |
| 58 <pathelement location="${third_party.dir}/json/r2_20080312/json.jar"/> | 61 <pathelement location="${third_party.dir}/json/r2_20080312/json.jar"/> |
| 59 <pathelement location="${third_party.dir}/rhino/1_7R3/js.jar"/> | 62 <pathelement location="${third_party.dir}/rhino/1_7R3/js.jar"/> |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/> | 211 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/> |
| 209 </pathconvert> | 212 </pathconvert> |
| 210 | 213 |
| 211 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc"> | 214 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc"> |
| 212 <filterset> | 215 <filterset> |
| 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}"/> | 216 <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}"/> |
| 214 </filterset> | 217 </filterset> |
| 215 </copy> | 218 </copy> |
| 216 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/> | 219 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/> |
| 217 | 220 |
| 218 <copy file="scripts/dartc_test.sh" tofile="${dist.dir}/bin/dartc_test"> | |
| 219 <filterset> | |
| 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}"/> | |
| 221 <filter token="D8_EXEC" value="${d8}"/> | |
| 222 </filterset> | |
| 223 </copy> | |
| 224 <chmod file="${dist.dir}/bin/dartc_test" perm="a+rx"/> | |
| 225 | |
| 226 <!-- | 221 <!-- |
| 227 TODO: The following files are not strictly due to dist, move them out. | 222 TODO: The following files are not strictly due to dist, move them out. |
| 228 --> | 223 --> |
| 229 <copy todir="${build.dir}"> | 224 <copy todir="${build.dir}"> |
| 230 <fileset dir="scripts"> | 225 <fileset dir="scripts"> |
| 231 <include name="dartc_run.sh"/> | 226 <include name="dartc_run.sh"/> |
| 232 <include name="dartc_size.sh"/> | |
| 233 <include name="dartc_metrics.sh"/> | 227 <include name="dartc_metrics.sh"/> |
| 234 </fileset> | 228 </fileset> |
| 235 <filterset> | 229 <filterset> |
| 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}"/> | 230 <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}"/> |
| 237 </filterset> | 231 </filterset> |
| 238 </copy> | 232 </copy> |
| 239 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/> | 233 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/> |
| 240 <chmod file="${build.dir}/dartc_size.sh" perm="a+rx"/> | |
| 241 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/> | 234 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/> |
| 242 | 235 |
| 243 <!-- | 236 <!-- |
| 244 Copy of all of the dartc dependencies to the lib folder. | 237 Copy of all of the dartc dependencies to the lib folder. |
| 245 --> | 238 --> |
| 246 <copy todir="${dist.dir}/lib"> | 239 <copy todir="${dist.dir}/lib"> |
| 247 <path refid="classpath.runtime"/> | 240 <path refid="classpath.runtime"/> |
| 248 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> | 241 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> |
| 249 </copy> | 242 </copy> |
| 250 </target> | 243 </target> |
| 251 | 244 |
| 252 <target name="clean" description="Deletes the build output directory."> | 245 <target name="clean" description="Deletes the build output directory."> |
| 253 <delete dir="${build.dir}"/> | 246 <delete dir="${build.dir}"/> |
| 254 <delete dir="${dist.dir}"/> | 247 <delete dir="${dist.dir}"/> |
| 255 </target> | 248 </target> |
| 256 | 249 |
| 257 <target name="tests.jar" depends="compile-tests"> | 250 <target name="tests.jar" depends="compile-tests"> |
| 258 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> | 251 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> |
| 259 </target> | 252 </target> |
| 260 </project> | 253 </project> |
| OLD | NEW |