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

Side by Side Diff: compiler/dartc.xml

Issue 9865025: Revert "Removes dartc reliance on its own libraries, now can be targeted at any implementation's li… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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}/../lib/dom/"/>
31
32 <property name="htmllib.source.dir" value="${build.dir}/../lib/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
28 <property name="build.test.classes.dir" value="${build.dir}/test/classes"/> 38 <property name="build.test.classes.dir" value="${build.dir}/test/classes"/>
29 39
30 <property name="dartc.jar" value="${build.dir}/dartc.jar"/> 40 <property name="dartc.jar" value="${build.dir}/dartc.jar"/>
31 41
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
32 <property name="dist.dir" value="${build.dir}/dist"/> 52 <property name="dist.dir" value="${build.dir}/dist"/>
33 53
34 <property name="test.report.dir" value="${build.dir}/test"/> 54 <property name="test.report.dir" value="${build.dir}/test"/>
35 55
36 <property name="third_party.dir" value="../third_party"/> 56 <property name="third_party.dir" value="../third_party"/>
37 57
38 <property name="test_py" location="../tools/test.py"/> 58 <property name="test_py" location="../tools/test.py"/>
39 59
40 <!-- 60 <!--
41 Define buildtime and runtime classpaths. 61 Define buildtime and runtime classpaths.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 --> 104 -->
85 <copy todir="${build.classes.dir}"> 105 <copy todir="${build.classes.dir}">
86 <filelist refid="java_resources"/> 106 <filelist refid="java_resources"/>
87 </copy> 107 </copy>
88 </target> 108 </target>
89 109
90 <!-- 110 <!--
91 We rely on GYP to call these targets when the dartc dependencies change, hen ce this 111 We rely on GYP to call these targets when the dartc dependencies change, hen ce this
92 ant file cannot be used standalone. 112 ant file cannot be used standalone.
93 --> 113 -->
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
94 <target name="compile-tests" depends="compile" description="Compiles all of th e java tests and copies the resources to the test classes directory." > 172 <target name="compile-tests" depends="compile" description="Compiles all of th e java tests and copies the resources to the test classes directory." >
95 <mkdir dir="${build.test.classes.dir}"/> 173 <mkdir dir="${build.test.classes.dir}"/>
96 <javac destdir="${build.test.classes.dir}" 174 <javac destdir="${build.test.classes.dir}"
97 sourcepath="" 175 sourcepath=""
98 srcdir="javatests" 176 srcdir="javatests"
99 includes="${javatests_sources}" 177 includes="${javatests_sources}"
100 excludes="com/google/dart/compiler/vm/**" 178 excludes="com/google/dart/compiler/vm/**"
101 fork="true" 179 fork="true"
102 debug="true"> 180 debug="true">
103 <classpath refid="classpath.compile.tests"/> 181 <classpath refid="classpath.compile.tests"/>
104 </javac> 182 </javac>
105 <!-- 183 <!--
106 Copy the non-java resources. 184 Copy the non-java resources.
107 --> 185 -->
108 <copy todir="${build.test.classes.dir}"> 186 <copy todir="${build.test.classes.dir}">
109 <filelist refid="javatests_resources"/> 187 <filelist refid="javatests_resources"/>
110 </copy> 188 </copy>
111 </target> 189 </target>
112 190
113 <target name="dartc.jar" depends="compile" description="Creates a jar for dart c without bundling the dependencies."> 191 <target name="dartc.jar" depends="compile" description="Creates a jar for dart c without bundling the dependencies.">
114 <jar destfile="${dartc.jar}" basedir="${build.classes.dir}" manifest="dartc. mf"/> 192 <jar destfile="${dartc.jar}" basedir="${build.classes.dir}" manifest="dartc. mf"/>
115 </target> 193 </target>
116 194
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
117 <target name="dist" depends="dartc.jar" description="Creates a directory that contains a standalone distribution for dartc."> 212 <target name="dist" depends="dartc.jar" description="Creates a directory that contains a standalone distribution for dartc.">
118 <!-- 213 <!--
119 Ensure the necessary subdirectories exist. 214 Ensure the necessary subdirectories exist.
120 --> 215 -->
121 <mkdir dir="${dist.dir}/bin"/> 216 <mkdir dir="${dist.dir}/bin"/>
122 <mkdir dir="${dist.dir}/lib"/> 217 <mkdir dir="${dist.dir}/lib"/>
123 218
124 <!-- 219 <!--
125 Copy the dart jar to the lib folder. 220 Copy the dart jar to the lib folder.
126 --> 221 -->
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 261
167 <target name="clean" description="Deletes the build output directory."> 262 <target name="clean" description="Deletes the build output directory.">
168 <delete dir="${build.dir}"/> 263 <delete dir="${build.dir}"/>
169 <delete dir="${dist.dir}"/> 264 <delete dir="${dist.dir}"/>
170 </target> 265 </target>
171 266
172 <target name="tests.jar" depends="compile-tests"> 267 <target name="tests.jar" depends="compile-tests">
173 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> 268 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/>
174 </target> 269 </target>
175 </project> 270 </project>
OLDNEW
« no previous file with comments | « compiler/dart-compiler.gyp ('k') | compiler/java/com/google/dart/compiler/CommandLineOptions.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698