| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 4 BSD-style license that can be found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 <project default="dist"> | 6 <project default="dist"> |
| 7 <import file="sources.xml"/> | 7 <import file="sources.xml"/> |
| 8 <import file="test_sources.xml"/> | 8 <import file="test_sources.xml"/> |
| 9 <import file="corelib_sources.xml"/> | |
| 10 <import file="compiler_corelib_sources.xml"/> | |
| 11 <import file="domlib_sources.xml"/> | |
| 12 <import file="htmllib_sources.xml"/> | |
| 13 <import file="jsonlib_sources.xml"/> | |
| 14 <import file="isolatelib_sources.xml"/> | |
| 15 | 9 |
| 16 <!-- | 10 <!-- |
| 17 The file build.properties does not exist. If provided, properties can be cus
tomized. | 11 The file build.properties does not exist. If provided, properties can be cus
tomized. |
| 18 --> | 12 --> |
| 19 <property file="build.properties" /> | 13 <property file="build.properties" /> |
| 20 | 14 |
| 21 <!-- | 15 <!-- |
| 22 Configuration properties. | 16 Configuration properties. |
| 23 --> | 17 --> |
| 24 <property name="build.dir" value="out"/> | 18 <property name="build.dir" value="out"/> |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 124 |
| 131 <!-- | 125 <!-- |
| 132 Re-root the classpaths from third_party into the lib folder of the distro. | 126 Re-root the classpaths from third_party into the lib folder of the distro. |
| 133 --> | 127 --> |
| 134 <pathconvert property="dartc.classpath.runtime.unix" targetos="unix" refid="
classpath.runtime"> | 128 <pathconvert property="dartc.classpath.runtime.unix" targetos="unix" refid="
classpath.runtime"> |
| 135 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/> | 129 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/> |
| 136 </pathconvert> | 130 </pathconvert> |
| 137 | 131 |
| 138 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc"> | 132 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc"> |
| 139 <filterset> | 133 <filterset> |
| 140 <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/isolatelib.jar:${dartc.classpath.runtime.unix}"/> | 134 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath
.runtime.unix}"/> |
| 141 </filterset> | 135 </filterset> |
| 142 </copy> | 136 </copy> |
| 143 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/> | 137 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/> |
| 144 | 138 |
| 145 <!-- | 139 <!-- |
| 146 TODO: The following files are not strictly due to dist, move them out. | 140 TODO: The following files are not strictly due to dist, move them out. |
| 147 --> | 141 --> |
| 148 <copy todir="${build.dir}"> | 142 <copy todir="${build.dir}"> |
| 149 <fileset dir="scripts"> | 143 <fileset dir="scripts"> |
| 150 <include name="dartc_run.sh"/> | 144 <include name="dartc_run.sh"/> |
| 151 <include name="dartc_metrics.sh"/> | 145 <include name="dartc_metrics.sh"/> |
| 152 </fileset> | 146 </fileset> |
| 153 <filterset> | 147 <filterset> |
| 154 <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/isolatelib.jar:${dartc.classpath.runtime.unix}"/> | 148 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath
.runtime.unix}"/> |
| 155 </filterset> | 149 </filterset> |
| 156 </copy> | 150 </copy> |
| 157 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/> | 151 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/> |
| 158 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/> | 152 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/> |
| 159 | 153 |
| 160 <!-- | 154 <!-- |
| 161 Copy of all of the dartc dependencies to the lib folder. | 155 Copy of all of the dartc dependencies to the lib folder. |
| 162 --> | 156 --> |
| 163 <copy todir="${dist.dir}/lib"> | 157 <copy todir="${dist.dir}/lib"> |
| 164 <path refid="classpath.runtime"/> | 158 <path refid="classpath.runtime"/> |
| 165 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> | 159 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> |
| 166 </copy> | 160 </copy> |
| 167 </target> | 161 </target> |
| 168 | 162 |
| 169 <target name="clean" description="Deletes the build output directory."> | 163 <target name="clean" description="Deletes the build output directory."> |
| 170 <delete dir="${build.dir}"/> | 164 <delete dir="${build.dir}"/> |
| 171 <delete dir="${dist.dir}"/> | 165 <delete dir="${dist.dir}"/> |
| 172 </target> | 166 </target> |
| 173 | 167 |
| 174 <target name="tests.jar" depends="compile-tests"> | 168 <target name="tests.jar" depends="compile-tests"> |
| 175 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> | 169 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> |
| 176 </target> | 170 </target> |
| 177 </project> | 171 </project> |
| OLD | NEW |