OLD | NEW |
1 <project default="dist"> | 1 <project default="dist"> |
2 <!-- | 2 <!-- |
3 DO NOT EDIT THIS FILE. This file is no longer used to build | 3 DO NOT EDIT THIS FILE. This file is no longer used to build |
4 dartc proper. It is only here to avoid breaking dartium.gyp | 4 dartc proper. It is only here to avoid breaking dartium.gyp |
5 short term. Change dartc.xml instead. | 5 short term. Change dartc.xml instead. |
6 --> | 6 --> |
7 | 7 |
8 <import file="sources.xml"/> | 8 <import file="sources.xml"/> |
9 <import file="test_sources.xml"/> | 9 <import file="test_sources.xml"/> |
10 <import file="corelib_sources.xml"/> | 10 <import file="corelib_sources.xml"/> |
(...skipping 18 matching lines...) Expand all Loading... |
29 <property name="dist.dir" value="${build.dir}/dist"/> | 29 <property name="dist.dir" value="${build.dir}/dist"/> |
30 | 30 |
31 <property name="test.report.dir" value="${build.dir}/test"/> | 31 <property name="test.report.dir" value="${build.dir}/test"/> |
32 | 32 |
33 <property name="third_party.dir" value="../third_party"/> | 33 <property name="third_party.dir" value="../third_party"/> |
34 | 34 |
35 <property name="d8" location="${third_party.dir}/v8/d8"/> | 35 <property name="d8" location="${third_party.dir}/v8/d8"/> |
36 | 36 |
37 <property name="test_py" location="../tools/test.py"/> | 37 <property name="test_py" location="../tools/test.py"/> |
38 | 38 |
39 <property name="closure_compiler.jar" value="${build.dir}/../closure_out/compi
ler.jar"/> | |
40 | |
41 <!-- | 39 <!-- |
42 Define buildtime and runtime classpaths. | 40 Define buildtime and runtime classpaths. |
43 --> | 41 --> |
44 <path id="classpath.compile"> | 42 <path id="classpath.compile"> |
45 <pathelement location="${third_party.dir}/args4j/2.0.12/args4j-2.0.12.jar"/> | 43 <pathelement location="${third_party.dir}/args4j/2.0.12/args4j-2.0.12.jar"/> |
46 <pathelement location="${closure_compiler.jar}" /> | |
47 <pathelement location="${third_party.dir}/guava/r09/guava-r09.jar"/> | 44 <pathelement location="${third_party.dir}/guava/r09/guava-r09.jar"/> |
48 <pathelement location="${third_party.dir}/json/r2_20080312/json.jar"/> | 45 <pathelement location="${third_party.dir}/json/r2_20080312/json.jar"/> |
49 <pathelement location="${third_party.dir}/rhino/1_7R3/js.jar"/> | 46 <pathelement location="${third_party.dir}/rhino/1_7R3/js.jar"/> |
50 </path> | 47 </path> |
51 | 48 |
52 <path id="classpath.runtime"> | 49 <path id="classpath.runtime"> |
53 <path refid="classpath.compile"/> | 50 <path refid="classpath.compile"/> |
54 </path> | 51 </path> |
55 | 52 |
56 <path id="classpath.compile.tests"> | 53 <path id="classpath.compile.tests"> |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 --> | 128 --> |
132 <mkdir dir="${dist.dir}/bin"/> | 129 <mkdir dir="${dist.dir}/bin"/> |
133 <mkdir dir="${dist.dir}/lib"/> | 130 <mkdir dir="${dist.dir}/lib"/> |
134 | 131 |
135 <!-- | 132 <!-- |
136 Copy the dart jar to the lib folder. | 133 Copy the dart jar to the lib folder. |
137 --> | 134 --> |
138 <copy file="${dartc.jar}" todir="${dist.dir}/lib"/> | 135 <copy file="${dartc.jar}" todir="${dist.dir}/lib"/> |
139 | 136 |
140 <!-- | 137 <!-- |
141 Copy the closure-compiler jar to the lib folder. | |
142 --> | |
143 <copy file="${closure_compiler.jar}" tofile="${dist.dir}/lib/closure-compile
r.jar"/> | |
144 | |
145 <!-- | |
146 Re-root the classpaths from third_party into the lib folder of the distro. | 138 Re-root the classpaths from third_party into the lib folder of the distro. |
147 --> | 139 --> |
148 <pathconvert property="dartc.classpath.runtime.unix" targetos="unix" refid="
classpath.runtime"> | 140 <pathconvert property="dartc.classpath.runtime.unix" targetos="unix" refid="
classpath.runtime"> |
149 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/> | 141 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/> |
150 </pathconvert> | 142 </pathconvert> |
151 | 143 |
152 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc"> | 144 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc"> |
153 <filterset> | 145 <filterset> |
154 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:$DARTC_LIBS/closu
re-compiler.jar:${dartc.classpath.runtime.unix}"/> | 146 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath
.runtime.unix}"/> |
155 </filterset> | 147 </filterset> |
156 </copy> | 148 </copy> |
157 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/> | 149 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/> |
158 | 150 |
159 <copy file="scripts/dartc_test.sh" tofile="${dist.dir}/bin/dartc_test"> | 151 <copy file="scripts/dartc_test.sh" tofile="${dist.dir}/bin/dartc_test"> |
160 <filterset> | 152 <filterset> |
161 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:$DARTC_LIBS/closu
re-compiler.jar:${dartc.classpath.runtime.unix}"/> | 153 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath
.runtime.unix}"/> |
162 <filter token="D8_EXEC" value="${d8}"/> | 154 <filter token="D8_EXEC" value="${d8}"/> |
163 </filterset> | 155 </filterset> |
164 </copy> | 156 </copy> |
165 <chmod file="${dist.dir}/bin/dartc_test" perm="a+rx"/> | 157 <chmod file="${dist.dir}/bin/dartc_test" perm="a+rx"/> |
166 | 158 |
167 <!-- | 159 <!-- |
168 TODO: The following files are not strictly due to dist, move them out. | 160 TODO: The following files are not strictly due to dist, move them out. |
169 --> | 161 --> |
170 <copy todir="${build.dir}"> | 162 <copy todir="${build.dir}"> |
171 <fileset dir="scripts"> | 163 <fileset dir="scripts"> |
172 <include name="dartc_run.sh"/> | 164 <include name="dartc_run.sh"/> |
173 <include name="dartc_size.sh"/> | 165 <include name="dartc_size.sh"/> |
174 <include name="dartc_metrics.sh"/> | 166 <include name="dartc_metrics.sh"/> |
175 </fileset> | 167 </fileset> |
176 <filterset> | 168 <filterset> |
177 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:$DARTC_LIBS/closu
re-compiler.jar:${dartc.classpath.runtime.unix}"/> | 169 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath
.runtime.unix}"/> |
178 </filterset> | 170 </filterset> |
179 </copy> | 171 </copy> |
180 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/> | 172 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/> |
181 <chmod file="${build.dir}/dartc_size.sh" perm="a+rx"/> | 173 <chmod file="${build.dir}/dartc_size.sh" perm="a+rx"/> |
182 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/> | 174 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/> |
183 | 175 |
184 <!-- | 176 <!-- |
185 Copy of all of the dartc dependencies to the lib folder. | 177 Copy of all of the dartc dependencies to the lib folder. |
186 --> | 178 --> |
187 <copy todir="${dist.dir}/lib"> | 179 <copy todir="${dist.dir}/lib"> |
188 <path refid="classpath.runtime"/> | 180 <path refid="classpath.runtime"/> |
189 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> | 181 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> |
190 </copy> | 182 </copy> |
191 </target> | 183 </target> |
192 | 184 |
193 <target name="clean" description="Deletes the build output directory."> | 185 <target name="clean" description="Deletes the build output directory."> |
194 <delete dir="${build.dir}"/> | 186 <delete dir="${build.dir}"/> |
195 <delete dir="${dist.dir}"/> | 187 <delete dir="${dist.dir}"/> |
196 </target> | 188 </target> |
197 | 189 |
198 <target name="tests.jar" depends="compile-tests"> | 190 <target name="tests.jar" depends="compile-tests"> |
199 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> | 191 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> |
200 </target> | 192 </target> |
201 </project> | 193 </project> |
OLD | NEW |