Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: compiler/dartc.xml

Issue 9860009: Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated 'configs' to be 'config' directory, updated addLib() to throw exception Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"/> 9 <import file="corelib_sources.xml"/>
10 <import file="compiler_corelib_sources.xml"/> 10 <import file="compiler_corelib_sources.xml"/>
11 <import file="domlib_sources.xml"/> 11 <import file="domlib_sources.xml"/>
12 <import file="htmllib_sources.xml"/> 12 <import file="htmllib_sources.xml"/>
13 <import file="jsonlib_sources.xml"/> 13 <import file="jsonlib_sources.xml"/>
14 <import file="isolatelib_sources.xml"/> 14 <import file="isolatelib_sources.xml"/>
15 15
16 <!-- 16 <!--
17 The file build.properties does not exist. If provided, properties can be cus tomized. 17 The file build.properties does not exist. If provided, properties can be cus tomized.
18 --> 18 -->
19 <property file="build.properties" /> 19 <property file="build.properties" />
20 20
21 <!-- 21 <!--
22 Configuration properties. 22 Configuration properties.
23 --> 23 -->
24 <property name="build.dir" value="out"/> 24 <property name="build.dir" value="out"/>
25 25
26 <property name="build.classes.dir" value="${build.dir}/classes"/> 26 <property name="build.classes.dir" value="${build.dir}/classes"/>
27 27
28 <property name="corelib.source.dir" value="${build.dir}/corelib"/>
29
30 <property name="domlib.source.dir" value="${build.dir}/../client/dom/"/>
31
32 <property name="htmllib.source.dir" value="${build.dir}/../client/html/"/>
33
34 <property name="jsonlib.source.dir" value="${build.dir}/../lib/json/"/>
35
36 <property name="isolatelib.source.dir" value="${build.dir}/../lib/isolate/"/>
37
38 <property name="build.test.classes.dir" value="${build.dir}/test/classes"/> 28 <property name="build.test.classes.dir" value="${build.dir}/test/classes"/>
39 29
40 <property name="dartc.jar" value="${build.dir}/dartc.jar"/> 30 <property name="dartc.jar" value="${build.dir}/dartc.jar"/>
41 31
42 <property name="corelib.jar" value="${build.dir}/corelib.jar"/>
43
44 <property name="domlib.jar" value="${build.dir}/domlib.jar"/>
45
46 <property name="htmllib.jar" value="${build.dir}/htmllib.jar"/>
47
48 <property name="jsonlib.jar" value="${build.dir}/jsonlib.jar"/>
49
50 <property name="isolatelib.jar" value="${build.dir}/isolatelib.jar"/>
51
52 <property name="dist.dir" value="${build.dir}/dist"/> 32 <property name="dist.dir" value="${build.dir}/dist"/>
53 33
54 <property name="test.report.dir" value="${build.dir}/test"/> 34 <property name="test.report.dir" value="${build.dir}/test"/>
55 35
56 <property name="third_party.dir" value="../third_party"/> 36 <property name="third_party.dir" value="../third_party"/>
57 37
58 <property name="test_py" location="../tools/test.py"/> 38 <property name="test_py" location="../tools/test.py"/>
59 39
60 <!-- 40 <!--
61 Define buildtime and runtime classpaths. 41 Define buildtime and runtime classpaths.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 --> 84 -->
105 <copy todir="${build.classes.dir}"> 85 <copy todir="${build.classes.dir}">
106 <filelist refid="java_resources"/> 86 <filelist refid="java_resources"/>
107 </copy> 87 </copy>
108 </target> 88 </target>
109 89
110 <!-- 90 <!--
111 We rely on GYP to call these targets when the dartc dependencies change, hen ce this 91 We rely on GYP to call these targets when the dartc dependencies change, hen ce this
112 ant file cannot be used standalone. 92 ant file cannot be used standalone.
113 --> 93 -->
114 <target name="corelib.jar" description="Packages the corelib resources into on e jar file." >
115 <delete file="${corelib.jar}"/>
116 <mkdir dir="${corelib.source.dir}"/>
117 <copy todir="${corelib.source.dir}/com/google/dart/corelib/src">
118 <filelist refid="corelib_resources"/>
119 </copy>
120 <copy todir="${corelib.source.dir}/com/google/dart/corelib">
121 <filelist refid="compiler_corelib_resources"/>
122 </copy>
123 <jar destfile="${corelib.jar}" basedir="${corelib.source.dir}"/>
124 <touch file="${build.dir}/corelib.jar.stamp"/>
125 </target>
126
127 <target name="domlib.jar" description="Packages the dom library resources into one jar file." >
128 <delete dir="${build.dir}/api/dart/dom"/>
129 <delete file="${domlib.jar}"/>
130 <mkdir dir="${domlib.source.dir}"/>
131 <copy todir="${domlib.source.dir}/dom">
132 <filelist refid="domlib_resources"/>
133 </copy>
134 <jar destfile="${domlib.jar}" basedir="${domlib.source.dir}"/>
135 <touch file="${build.dir}/domlib.jar.stamp"/>
136 </target>
137
138 <target name="htmllib.jar" description="Packages the html library resources in to one jar file." >
139 <delete dir="${build.dir}/api/dart/html"/>
140 <delete file="${htmllib.jar}"/>
141 <mkdir dir="${htmllib.source.dir}"/>
142 <copy todir="${htmllib.source.dir}/html" preservelastmodified="true">
143 <filelist refid="htmllib_resources"/>
144 </copy>
145 <jar destfile="${htmllib.jar}" basedir="${htmllib.source.dir}"/>
146 <touch file="${build.dir}/htmllib.jar.stamp"/>
147 </target>
148
149 <target name="jsonlib.jar" description="Packages the json library resources in to one jar file." >
150 <delete dir="${build.dir}/api/dart/json"/>
151 <delete file="${jsonlib.jar}"/>
152 <mkdir dir="${jsonlib.source.dir}"/>
153 <copy todir="${jsonlib.source.dir}/json">
154 <filelist refid="jsonlib_resources"/>
155 </copy>
156 <jar destfile="${jsonlib.jar}" basedir="${jsonlib.source.dir}"/>
157 <touch file="${build.dir}/jsonlib.jar.stamp"/>
158 </target>
159
160 <target name="isolatelib.jar" description="Packages the isolate library resour ces into one jar file." >
161 <delete dir="${build.dir}/api/dart/isolate"/>
162 <delete file="${isolatelib.jar}"/>
163 <mkdir dir="${isolatelib.source.dir}"/>
164 <copy todir="${isolatelib.source.dir}/isolate">
165 <filelist refid="isolatelib_resources"/>
166 </copy>
167 <jar destfile="${isolatelib.jar}" basedir="${isolatelib.source.dir}"/>
168 <touch file="${build.dir}/isolatelib.jar.stamp"/>
169 </target>
170
171
172 <target name="compile-tests" depends="compile" description="Compiles all of th e java tests and copies the resources to the test classes directory." > 94 <target name="compile-tests" depends="compile" description="Compiles all of th e java tests and copies the resources to the test classes directory." >
173 <mkdir dir="${build.test.classes.dir}"/> 95 <mkdir dir="${build.test.classes.dir}"/>
174 <javac destdir="${build.test.classes.dir}" 96 <javac destdir="${build.test.classes.dir}"
175 sourcepath="" 97 sourcepath=""
176 srcdir="javatests" 98 srcdir="javatests"
177 includes="${javatests_sources}" 99 includes="${javatests_sources}"
178 excludes="com/google/dart/compiler/vm/**" 100 excludes="com/google/dart/compiler/vm/**"
179 fork="true" 101 fork="true"
180 debug="true"> 102 debug="true">
181 <classpath refid="classpath.compile.tests"/> 103 <classpath refid="classpath.compile.tests"/>
182 </javac> 104 </javac>
183 <!-- 105 <!--
184 Copy the non-java resources. 106 Copy the non-java resources.
185 --> 107 -->
186 <copy todir="${build.test.classes.dir}"> 108 <copy todir="${build.test.classes.dir}">
187 <filelist refid="javatests_resources"/> 109 <filelist refid="javatests_resources"/>
188 </copy> 110 </copy>
189 </target> 111 </target>
190 112
191 <target name="dartc.jar" depends="compile" description="Creates a jar for dart c without bundling the dependencies."> 113 <target name="dartc.jar" depends="compile" description="Creates a jar for dart c without bundling the dependencies.">
192 <jar destfile="${dartc.jar}" basedir="${build.classes.dir}" manifest="dartc. mf"/> 114 <jar destfile="${dartc.jar}" basedir="${build.classes.dir}" manifest="dartc. mf"/>
193 </target> 115 </target>
194 116
195 <target name="syslib" depends="corelib.jar,domlib.jar,htmllib.jar,jsonlib.jar, isolatelib.jar" description="Stub for system library task">
196 <!--
197 Copy the system library jars to the lib folder.
198 -->
199 <copy file="${corelib.jar}" todir="${dist.dir}/lib"/>
200 <copy file="${domlib.jar}" todir="${dist.dir}/lib"/>
201 <copy file="${htmllib.jar}" todir="${dist.dir}/lib"/>
202 <copy file="${jsonlib.jar}" todir="${dist.dir}/lib"/>
203 <copy file="${isolatelib.jar}" todir="${dist.dir}/lib"/>
204
205 <touch file="${build.dir}/syslib.stamp"/>
206 </target>
207
208 <target name="syslib_clean" description="Clean out the system libraries">
209 <delete file="${build.dir}/syslib.stamp"/>
210 </target>
211
212 <target name="dist" depends="dartc.jar" description="Creates a directory that contains a standalone distribution for dartc."> 117 <target name="dist" depends="dartc.jar" description="Creates a directory that contains a standalone distribution for dartc.">
213 <!-- 118 <!--
214 Ensure the necessary subdirectories exist. 119 Ensure the necessary subdirectories exist.
215 --> 120 -->
216 <mkdir dir="${dist.dir}/bin"/> 121 <mkdir dir="${dist.dir}/bin"/>
217 <mkdir dir="${dist.dir}/lib"/> 122 <mkdir dir="${dist.dir}/lib"/>
218 123
219 <!-- 124 <!--
220 Copy the dart jar to the lib folder. 125 Copy the dart jar to the lib folder.
221 --> 126 -->
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 166
262 <target name="clean" description="Deletes the build output directory."> 167 <target name="clean" description="Deletes the build output directory.">
263 <delete dir="${build.dir}"/> 168 <delete dir="${build.dir}"/>
264 <delete dir="${dist.dir}"/> 169 <delete dir="${dist.dir}"/>
265 </target> 170 </target>
266 171
267 <target name="tests.jar" depends="compile-tests"> 172 <target name="tests.jar" depends="compile-tests">
268 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> 173 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/>
269 </target> 174 </target>
270 </project> 175 </project>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698