| 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 <!-- | 7 <!-- |
| 3 DO NOT EDIT THIS FILE. This file is no longer used to build | 8 EDIT DARTC.XML FIRST. This file is no longer used to build |
| 4 dartc proper. It is only here to avoid breaking dartium.gyp | 9 dartc proper. It is only here to avoid breaking dartium.gyp |
| 5 short term. Change dartc.xml instead. | 10 short term. Change dartc.xml to get everything working, |
| 11 then update this file to match. |
| 6 --> | 12 --> |
| 7 | 13 |
| 8 <import file="sources.xml"/> | 14 <import file="sources.xml"/> |
| 9 <import file="test_sources.xml"/> | 15 <import file="test_sources.xml"/> |
| 10 <import file="corelib_sources.xml"/> | 16 <import file="corelib_sources.xml"/> |
| 11 <import file="compiler_corelib_sources.xml"/> | 17 <import file="compiler_corelib_sources.xml"/> |
| 12 | 18 |
| 13 <!-- | 19 <!-- |
| 14 The file build.properties does not exist. If provided, properties can be cus
tomized. | 20 The file build.properties does not exist. If provided, properties can be cus
tomized. |
| 15 --> | 21 --> |
| 16 <property file="build.properties" /> | 22 <property file="build.properties" /> |
| 17 | 23 |
| 18 <!-- | 24 <!-- |
| 19 Configuration properties. | 25 Configuration properties. |
| 20 --> | 26 --> |
| 21 <property name="build.dir" value="out"/> | 27 <property name="build.dir" value="out"/> |
| 22 | 28 |
| 23 <property name="build.classes.dir" value="${build.dir}/classes"/> | 29 <property name="build.classes.dir" value="${build.dir}/classes"/> |
| 24 | 30 |
| 25 <property name="build.test.classes.dir" value="${build.dir}/test/classes"/> | 31 <property name="build.test.classes.dir" value="${build.dir}/test/classes"/> |
| 26 | 32 |
| 27 <property name="dartc.jar" value="${build.dir}/dartc.jar"/> | 33 <property name="dartc.jar" value="${build.dir}/dartc.jar"/> |
| 28 | 34 |
| 29 <property name="dist.dir" value="${build.dir}/dist"/> | 35 <property name="dist.dir" value="${build.dir}/dist"/> |
| 30 | 36 |
| 31 <property name="test.report.dir" value="${build.dir}/test"/> | 37 <property name="test.report.dir" value="${build.dir}/test"/> |
| 32 | 38 |
| 33 <property name="third_party.dir" value="../third_party"/> | 39 <property name="third_party.dir" value="../third_party"/> |
| 34 | 40 |
| 35 <property name="d8" location="${third_party.dir}/v8/d8"/> | |
| 36 | |
| 37 <property name="test_py" location="../tools/test.py"/> | 41 <property name="test_py" location="../tools/test.py"/> |
| 38 | 42 |
| 39 <!-- | 43 <!-- |
| 40 Define buildtime and runtime classpaths. | 44 Define buildtime and runtime classpaths. |
| 41 --> | 45 --> |
| 42 <path id="classpath.compile"> | 46 <path id="classpath.compile"> |
| 43 <pathelement location="${third_party.dir}/args4j/2.0.12/args4j-2.0.12.jar"/> | 47 <pathelement location="${third_party.dir}/args4j/2.0.12/args4j-2.0.12.jar"/> |
| 44 <pathelement location="${third_party.dir}/guava/r09/guava-r09.jar"/> | 48 <pathelement location="${third_party.dir}/guava/r09/guava-r09.jar"/> |
| 45 <pathelement location="${third_party.dir}/json/r2_20080312/json.jar"/> | 49 <pathelement location="${third_party.dir}/json/r2_20080312/json.jar"/> |
| 46 <pathelement location="${third_party.dir}/rhino/1_7R3/js.jar"/> | 50 <pathelement location="${third_party.dir}/rhino/1_7R3/js.jar"/> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/> | 145 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/> |
| 142 </pathconvert> | 146 </pathconvert> |
| 143 | 147 |
| 144 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc"> | 148 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc"> |
| 145 <filterset> | 149 <filterset> |
| 146 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath
.runtime.unix}"/> | 150 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath
.runtime.unix}"/> |
| 147 </filterset> | 151 </filterset> |
| 148 </copy> | 152 </copy> |
| 149 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/> | 153 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/> |
| 150 | 154 |
| 151 <copy file="scripts/dartc_test.sh" tofile="${dist.dir}/bin/dartc_test"> | |
| 152 <filterset> | |
| 153 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath
.runtime.unix}"/> | |
| 154 <filter token="D8_EXEC" value="${d8}"/> | |
| 155 </filterset> | |
| 156 </copy> | |
| 157 <chmod file="${dist.dir}/bin/dartc_test" perm="a+rx"/> | |
| 158 | |
| 159 <!-- | 155 <!-- |
| 160 TODO: The following files are not strictly due to dist, move them out. | 156 TODO: The following files are not strictly due to dist, move them out. |
| 161 --> | 157 --> |
| 162 <copy todir="${build.dir}"> | 158 <copy todir="${build.dir}"> |
| 163 <fileset dir="scripts"> | 159 <fileset dir="scripts"> |
| 164 <include name="dartc_run.sh"/> | 160 <include name="dartc_run.sh"/> |
| 165 <include name="dartc_size.sh"/> | |
| 166 <include name="dartc_metrics.sh"/> | 161 <include name="dartc_metrics.sh"/> |
| 167 </fileset> | 162 </fileset> |
| 168 <filterset> | 163 <filterset> |
| 169 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath
.runtime.unix}"/> | 164 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath
.runtime.unix}"/> |
| 170 </filterset> | 165 </filterset> |
| 171 </copy> | 166 </copy> |
| 172 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/> | 167 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/> |
| 173 <chmod file="${build.dir}/dartc_size.sh" perm="a+rx"/> | |
| 174 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/> | 168 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/> |
| 175 | 169 |
| 176 <!-- | 170 <!-- |
| 177 Copy of all of the dartc dependencies to the lib folder. | 171 Copy of all of the dartc dependencies to the lib folder. |
| 178 --> | 172 --> |
| 179 <copy todir="${dist.dir}/lib"> | 173 <copy todir="${dist.dir}/lib"> |
| 180 <path refid="classpath.runtime"/> | 174 <path refid="classpath.runtime"/> |
| 181 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> | 175 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> |
| 182 </copy> | 176 </copy> |
| 183 </target> | 177 </target> |
| 184 | 178 |
| 185 <target name="clean" description="Deletes the build output directory."> | 179 <target name="clean" description="Deletes the build output directory."> |
| 186 <delete dir="${build.dir}"/> | 180 <delete dir="${build.dir}"/> |
| 187 <delete dir="${dist.dir}"/> | 181 <delete dir="${dist.dir}"/> |
| 188 </target> | 182 </target> |
| 189 | 183 |
| 190 <target name="tests.jar" depends="compile-tests"> | 184 <target name="tests.jar" depends="compile-tests"> |
| 191 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> | 185 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> |
| 192 </target> | 186 </target> |
| 193 </project> | 187 </project> |
| OLD | NEW |