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

Side by Side Diff: compiler/build.xml

Issue 9950019: Renamed the 'dartc' launch script to 'dart-analysis' and adds it to dart-sdk (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Short circuit the copying of dart_analyzer completely from the build Created 8 years, 6 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
« no previous file with comments | « no previous file | compiler/dart-compiler.gyp » ('j') | tools/testing/dart/test_suite.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <!-- 7 <!--
8 EDIT DARTC.XML FIRST. This file is no longer used to build 8 EDIT DARTC.XML FIRST. This file is no longer used to build
9 dartc proper. It is only here to avoid breaking dartium.gyp 9 dartc proper. It is only here to avoid breaking dartium.gyp
10 short term. Change dartc.xml to get everything working, 10 short term. Change dartc.xml to get everything working,
11 then update this file to match. 11 then update this file to match.
12 --> 12 -->
13 13
14 <import file="sources.xml"/> 14 <import file="sources.xml"/>
15 <import file="test_sources.xml"/> 15 <import file="test_sources.xml"/>
16 <import file="corelib_sources.xml"/>
17 <import file="compiler_corelib_sources.xml"/>
18 16
19 <!-- 17 <!--
20 The file build.properties does not exist. If provided, properties can be cus tomized. 18 The file build.properties does not exist. If provided, properties can be cus tomized.
21 --> 19 -->
22 <property file="build.properties" /> 20 <property file="build.properties" />
23 21
24 <!-- 22 <!--
25 Configuration properties. 23 Configuration properties.
26 --> 24 -->
27 <property name="build.dir" value="out"/> 25 <property name="build.dir" value="out"/>
28 26
29 <property name="build.classes.dir" value="${build.dir}/classes"/> 27 <property name="build.classes.dir" value="${build.dir}/classes"/>
30 28
31 <property name="build.test.classes.dir" value="${build.dir}/test/classes"/> 29 <property name="build.test.classes.dir" value="${build.dir}/test/classes"/>
32 30
33 <property name="dartc.jar" value="${build.dir}/dartc.jar"/> 31 <property name="dart_analyzer.jar" value="${build.dir}/dart_analyzer.jar"/>
34 32
35 <property name="dist.dir" value="${build.dir}/dist"/> 33 <property name="dist.dir" value="${build.dir}/dist"/>
36 34
37 <property name="test.report.dir" value="${build.dir}/test"/> 35 <property name="test.report.dir" value="${build.dir}/test"/>
38 36
39 <property name="third_party.dir" value="../third_party"/> 37 <property name="third_party.dir" value="../third_party"/>
40 38
41 <property name="test_py" location="../tools/test.py"/> 39 <property name="test_py" location="../tools/test.py"/>
42 40
43 <!-- 41 <!--
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 debug="true"> 80 debug="true">
83 <classpath refid="classpath.compile"/> 81 <classpath refid="classpath.compile"/>
84 </javac> 82 </javac>
85 <!-- 83 <!--
86 Copy all non-java resources. 84 Copy all non-java resources.
87 --> 85 -->
88 <copy todir="${build.classes.dir}"> 86 <copy todir="${build.classes.dir}">
89 <filelist refid="java_resources"/> 87 <filelist refid="java_resources"/>
90 </copy> 88 </copy>
91 89
92 <!--
93 Copy the corelib files.
94 TODO - Extract this into its own jar.
95 -->
96 <copy todir="${build.classes.dir}/com/google/dart/corelib/src">
97 <filelist refid="corelib_resources"/>
98 </copy>
99 <copy todir="${build.classes.dir}/com/google/dart/corelib">
100 <filelist refid="compiler_corelib_resources"/>
101 </copy>
102
103 </target> 90 </target>
104 91
105 <target name="compile-tests" depends="compile" description="Compiles all of th e java tests and copies the resources to the test classes directory." > 92 <target name="compile-tests" depends="compile" description="Compiles all of th e java tests and copies the resources to the test classes directory." >
106 <mkdir dir="${build.test.classes.dir}"/> 93 <mkdir dir="${build.test.classes.dir}"/>
107 <javac destdir="${build.test.classes.dir}" 94 <javac destdir="${build.test.classes.dir}"
108 sourcepath="" 95 sourcepath=""
109 srcdir="javatests" 96 srcdir="javatests"
110 includes="${javatests_sources}" 97 includes="${javatests_sources}"
111 excludes="com/google/dart/compiler/vm/**" 98 excludes="com/google/dart/compiler/vm/**"
112 fork="true" 99 fork="true"
113 debug="true"> 100 debug="true">
114 <classpath refid="classpath.compile.tests"/> 101 <classpath refid="classpath.compile.tests"/>
115 </javac> 102 </javac>
116 <!-- 103 <!--
117 Copy the non-java resources. 104 Copy the non-java resources.
118 --> 105 -->
119 <copy todir="${build.test.classes.dir}"> 106 <copy todir="${build.test.classes.dir}">
120 <filelist refid="javatests_resources"/> 107 <filelist refid="javatests_resources"/>
121 </copy> 108 </copy>
122 </target> 109 </target>
123 110
124 <target name="dartc.jar" depends="compile" description="Creates a jar for dart c without bundling the dependencies."> 111 <target name="dart_analyzer.jar" depends="compile"
125 <jar destfile="${dartc.jar}" basedir="${build.classes.dir}" manifest="dartc. mf"/> 112 description="Creates a jar for dartc without bundling the dependencies.">
113 <jar destfile="${dart_analyzer.jar}" basedir="${build.classes.dir}" manifest ="dart_analyzer.mf"/>
126 </target> 114 </target>
127 115
128 <target name="dist" depends="dartc.jar" description="Creates a directory that contains a standalone distribution for dartc."> 116 <target name="dist" depends="dart_analyzer.jar" description="Creates a directo ry that contains a standalone distribution.">
129 <!-- 117 <!--
130 Ensure the necessary subdirectories exist. 118 Ensure the necessary subdirectories exist.
131 --> 119 -->
132 <mkdir dir="${dist.dir}/bin"/> 120 <mkdir dir="${dist.dir}/bin"/>
133 <mkdir dir="${dist.dir}/lib"/> 121 <mkdir dir="${dist.dir}/util"/>
122 <mkdir dir="${dist.dir}/util/analyzer"/>
134 123
135 <!-- 124 <!--
136 Copy the dart jar to the lib folder. 125 Copy the dart jar to the lib folder.
137 --> 126 -->
138 <copy file="${dartc.jar}" todir="${dist.dir}/lib"/> 127 <copy file="${dart_analyzer.jar}" todir="${dist.dir}/util/analyzer"/>
139 128
140 <!-- 129 <!--
141 Re-root the classpaths from third_party into the lib folder of the distro. 130 Re-root the classpaths from third_party into the library folder of the dis tro.
142 --> 131 -->
143 <pathconvert property="dartc.classpath.runtime.unix" targetos="unix" refid=" classpath.runtime"> 132 <pathconvert property="analyzer.classpath.runtime.unix" targetos="unix" refi d="classpath.runtime">
144 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/> 133 <regexpmapper from="${third_party.dir}/(.*)" to="$DART_ANALYZER_LIBS/\1"/>
145 </pathconvert> 134 </pathconvert>
146 135
147 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc"> 136 <copy file="scripts/dart_analyzer.sh" tofile="${dist.dir}/bin/dart_analyzer" >
148 <filterset> 137 <filterset>
149 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath .runtime.unix}"/> 138 <filter token="CLASSPATH" value="$DART_ANALYZER_LIBS/dart_analyzer.jar:$ {analyzer.classpath.runtime.unix}"/>
150 </filterset> 139 </filterset>
151 </copy> 140 </copy>
152 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/> 141 <chmod file="${dist.dir}/bin/dart_analyzer" perm="a+rx"/>
153 142
154 <!-- 143 <!--
155 TODO: The following files are not strictly due to dist, move them out. 144 TODO: The following files are not strictly due to dist, move them out.
156 --> 145 -->
157 <copy todir="${build.dir}"> 146 <copy todir="${build.dir}">
158 <fileset dir="scripts"> 147 <fileset dir="scripts">
159 <include name="dartc_run.sh"/> 148 <include name="analyzer_metrics.sh"/>
160 <include name="dartc_metrics.sh"/>
161 </fileset> 149 </fileset>
162 <filterset> 150 <filterset>
163 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath .runtime.unix}"/> 151 <filter token="CLASSPATH" value="$DARTC_LIBS/dart_analyzer.jar:${analyze r.classpath.runtime.unix}"/>
164 </filterset> 152 </filterset>
165 </copy> 153 </copy>
166 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/> 154 <chmod file="${build.dir}/analyzer_metrics.sh" perm="a+rx"/>
167 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/>
168 155
169 <!-- 156 <!--
170 Copy of all of the dartc dependencies to the lib folder. 157 Copy of all of the dependencies to the lib folder.
171 --> 158 -->
172 <copy todir="${dist.dir}/lib"> 159 <copy todir="${dist.dir}/util/analyzer">
173 <path refid="classpath.runtime"/> 160 <path refid="classpath.runtime"/>
174 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> 161 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/>
175 </copy> 162 </copy>
176 </target> 163 </target>
177 164
178 <target name="clean" description="Deletes the build output directory."> 165 <target name="clean" description="Deletes the build output directory.">
179 <delete dir="${build.dir}"/> 166 <delete dir="${build.dir}"/>
180 <delete dir="${dist.dir}"/> 167 <delete dir="${dist.dir}"/>
181 </target> 168 </target>
182 169
183 <target name="tests.jar" depends="compile-tests"> 170 <target name="tests.jar" depends="compile-tests">
184 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> 171 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/>
185 </target> 172 </target>
186 </project> 173 </project>
OLDNEW
« no previous file with comments | « no previous file | compiler/dart-compiler.gyp » ('j') | tools/testing/dart/test_suite.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698