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

Side by Side Diff: compiler/dartc.xml

Issue 10545048: Reverts r8373 "Renamed the 'dartc' launch script to 'dart_analysis'" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « compiler/dartc.mf ('k') | compiler/scripts/analyzer_metrics.sh » ('j') | no next file with comments »
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 <!--
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
10 short term. Change dartc.xml to get everything working,
11 then update this file to match.
12 -->
13
14 <import file="sources.xml"/> 7 <import file="sources.xml"/>
15 <import file="test_sources.xml"/> 8 <import file="test_sources.xml"/>
16 9
17 <!-- 10 <!--
18 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.
19 --> 12 -->
20 <property file="build.properties" /> 13 <property file="build.properties" />
21 14
22 <!-- 15 <!--
23 Configuration properties. 16 Configuration properties.
24 --> 17 -->
25 <property name="build.dir" value="out"/> 18 <property name="build.dir" value="out"/>
26 19
27 <property name="build.classes.dir" value="${build.dir}/classes"/> 20 <property name="build.classes.dir" value="${build.dir}/classes"/>
28 21
29 <property name="build.test.classes.dir" value="${build.dir}/test/classes"/> 22 <property name="build.test.classes.dir" value="${build.dir}/test/classes"/>
30 23
31 <property name="dart_analyzer.jar" value="${build.dir}/dart_analyzer.jar"/> 24 <property name="dartc.jar" value="${build.dir}/dartc.jar"/>
32 25
33 <property name="dist.dir" value="${build.dir}/dist"/> 26 <property name="dist.dir" value="${build.dir}/dist"/>
34 27
35 <property name="test.report.dir" value="${build.dir}/test"/> 28 <property name="test.report.dir" value="${build.dir}/test"/>
36 29
37 <property name="third_party.dir" value="../third_party"/> 30 <property name="third_party.dir" value="../third_party"/>
38 31
39 <property name="test_py" location="../tools/test.py"/> 32 <property name="test_py" location="../tools/test.py"/>
40 33
41 <!-- 34 <!--
(...skipping 15 matching lines...) Expand all
57 <pathelement location="${third_party.dir}/junit/v4_8_2/junit.jar"/> 50 <pathelement location="${third_party.dir}/junit/v4_8_2/junit.jar"/>
58 </path> 51 </path>
59 52
60 <path id="classpath.run.tests"> 53 <path id="classpath.run.tests">
61 <path refid="classpath.compile.tests"/> 54 <path refid="classpath.compile.tests"/>
62 <pathelement location="${build.test.classes.dir}"/> 55 <pathelement location="${build.test.classes.dir}"/>
63 <pathelement location="${third_party.dir}/hamcrest/v1_3/hamcrest-core-1.3.0R C2.jar"/> 56 <pathelement location="${third_party.dir}/hamcrest/v1_3/hamcrest-core-1.3.0R C2.jar"/>
64 <pathelement location="${third_party.dir}/hamcrest/v1_3/hamcrest-generator-1 .3.0RC2.jar"/> 57 <pathelement location="${third_party.dir}/hamcrest/v1_3/hamcrest-generator-1 .3.0RC2.jar"/>
65 <pathelement location="${third_party.dir}/hamcrest/v1_3/hamcrest-integration -1.3.0RC2.jar"/> 58 <pathelement location="${third_party.dir}/hamcrest/v1_3/hamcrest-integration -1.3.0RC2.jar"/>
66 <pathelement location="${third_party.dir}/hamcrest/v1_3/hamcrest-library-1.3 .0RC2.jar"/> 59 <pathelement location="${third_party.dir}/hamcrest/v1_3/hamcrest-library-1.3 .0RC2.jar"/>
60 <pathelement location="${third_party.dir}/fest/fest-util-1.1.6.jar"/>
61 <pathelement location="${third_party.dir}/fest/fest-assert-1.4.jar"/>
67 </path> 62 </path>
68 63
69 <target name="compile" description="Compiles all of the java source and copies resources to the classes directory."> 64 <target name="compile" description="Compiles all of the java source and copies resources to the classes directory.">
70 <!-- 65 <!--
71 Ensure the necessary subdirectories exist. 66 Ensure the necessary subdirectories exist.
72 --> 67 -->
73 <mkdir dir="${build.classes.dir}"/> 68 <mkdir dir="${build.classes.dir}"/>
74 69
75 <javac destdir="${build.classes.dir}" 70 <javac destdir="${build.classes.dir}"
76 sourcepath="" 71 sourcepath=""
77 srcdir="java" 72 srcdir="java"
78 includes="${java_sources}" 73 includes="${java_sources}"
79 fork="true" 74 fork="true"
80 debug="true"> 75 debug="true">
81 <classpath refid="classpath.compile"/> 76 <classpath refid="classpath.compile"/>
82 </javac> 77 </javac>
83 <!-- 78 <!--
84 Copy all non-java resources. 79 Copy all non-java resources.
85 --> 80 -->
86 <copy todir="${build.classes.dir}"> 81 <copy todir="${build.classes.dir}">
87 <filelist refid="java_resources"/> 82 <filelist refid="java_resources"/>
88 </copy> 83 </copy>
89
90 </target> 84 </target>
91 85
86 <!--
87 We rely on GYP to call these targets when the dartc dependencies change, hen ce this
88 ant file cannot be used standalone.
89 -->
92 <target name="compile-tests" depends="compile" description="Compiles all of th e java tests and copies the resources to the test classes directory." > 90 <target name="compile-tests" depends="compile" description="Compiles all of th e java tests and copies the resources to the test classes directory." >
93 <mkdir dir="${build.test.classes.dir}"/> 91 <mkdir dir="${build.test.classes.dir}"/>
94 <javac destdir="${build.test.classes.dir}" 92 <javac destdir="${build.test.classes.dir}"
95 sourcepath="" 93 sourcepath=""
96 srcdir="javatests" 94 srcdir="javatests"
97 includes="${javatests_sources}" 95 includes="${javatests_sources}"
98 excludes="com/google/dart/compiler/vm/**" 96 excludes="com/google/dart/compiler/vm/**"
99 fork="true" 97 fork="true"
100 debug="true"> 98 debug="true">
101 <classpath refid="classpath.compile.tests"/> 99 <classpath refid="classpath.compile.tests"/>
102 </javac> 100 </javac>
103 <!-- 101 <!--
104 Copy the non-java resources. 102 Copy the non-java resources.
105 --> 103 -->
106 <copy todir="${build.test.classes.dir}"> 104 <copy todir="${build.test.classes.dir}">
107 <filelist refid="javatests_resources"/> 105 <filelist refid="javatests_resources"/>
108 </copy> 106 </copy>
109 </target> 107 </target>
110 108
111 <target name="dart_analyzer.jar" depends="compile" 109 <target name="dartc.jar" depends="compile" description="Creates a jar for dart c without bundling the dependencies.">
112 description="Creates a jar for dartc without bundling the dependencies."> 110 <jar destfile="${dartc.jar}" basedir="${build.classes.dir}" manifest="dartc. mf"/>
113 <jar destfile="${dart_analyzer.jar}" basedir="${build.classes.dir}" manifest ="dart_analyzer.mf"/>
114 </target> 111 </target>
115 112
116 <target name="dist" depends="dart_analyzer.jar" description="Creates a directo ry that contains a standalone distribution."> 113 <target name="dist" depends="dartc.jar" description="Creates a directory that contains a standalone distribution for dartc.">
117 <!-- 114 <!--
118 Ensure the necessary subdirectories exist. 115 Ensure the necessary subdirectories exist.
119 --> 116 -->
120 <mkdir dir="${dist.dir}/bin"/> 117 <mkdir dir="${dist.dir}/bin"/>
121 <mkdir dir="${dist.dir}/util"/> 118 <mkdir dir="${dist.dir}/lib"/>
122 <mkdir dir="${dist.dir}/util/analyzer"/>
123 119
124 <!-- 120 <!--
125 Copy the dart jar to the lib folder. 121 Copy the dart jar to the lib folder.
126 --> 122 -->
127 <copy file="${dart_analyzer.jar}" todir="${dist.dir}/util/analyzer"/> 123 <copy file="${dartc.jar}" todir="${dist.dir}/lib"/>
128 124
129 <!-- 125 <!--
130 Re-root the classpaths from third_party into the library folder of the dis tro. 126 Re-root the classpaths from third_party into the lib folder of the distro.
131 --> 127 -->
132 <pathconvert property="analyzer.classpath.runtime.unix" targetos="unix" refi d="classpath.runtime"> 128 <pathconvert property="dartc.classpath.runtime.unix" targetos="unix" refid=" classpath.runtime">
133 <regexpmapper from="${third_party.dir}/(.*)" to="$DART_ANALYZER_LIBS/\1"/> 129 <regexpmapper from="${third_party.dir}/(.*)" to="$DARTC_LIBS/\1"/>
134 </pathconvert> 130 </pathconvert>
135 131
136 <copy file="scripts/dart_analyzer.sh" tofile="${dist.dir}/bin/dart_analyzer" > 132 <copy file="scripts/dartc.sh" tofile="${dist.dir}/bin/dartc">
137 <filterset> 133 <filterset>
138 <filter token="CLASSPATH" value="$DART_ANALYZER_LIBS/dart_analyzer.jar:$ {analyzer.classpath.runtime.unix}"/> 134 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath .runtime.unix}"/>
139 </filterset> 135 </filterset>
140 </copy> 136 </copy>
141 <chmod file="${dist.dir}/bin/dart_analyzer" perm="a+rx"/> 137 <chmod file="${dist.dir}/bin/dartc" perm="a+rx"/>
142 138
143 <!-- 139 <!--
144 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.
145 --> 141 -->
146 <copy todir="${build.dir}"> 142 <copy todir="${build.dir}">
147 <fileset dir="scripts"> 143 <fileset dir="scripts">
148 <include name="analyzer_metrics.sh"/> 144 <include name="dartc_run.sh"/>
145 <include name="dartc_metrics.sh"/>
149 </fileset> 146 </fileset>
150 <filterset> 147 <filterset>
151 <filter token="CLASSPATH" value="$DARTC_LIBS/dart_analyzer.jar:${analyze r.classpath.runtime.unix}"/> 148 <filter token="CLASSPATH" value="$DARTC_LIBS/dartc.jar:${dartc.classpath .runtime.unix}"/>
152 </filterset> 149 </filterset>
153 </copy> 150 </copy>
154 <chmod file="${build.dir}/analyzer_metrics.sh" perm="a+rx"/> 151 <chmod file="${build.dir}/dartc_run.sh" perm="a+rx"/>
152 <chmod file="${build.dir}/dartc_metrics.sh" perm="a+rx"/>
155 153
156 <!-- 154 <!--
157 Copy of all of the dependencies to the lib folder. 155 Copy of all of the dartc dependencies to the lib folder.
158 --> 156 -->
159 <copy todir="${dist.dir}/util/analyzer"> 157 <copy todir="${dist.dir}/lib">
160 <path refid="classpath.runtime"/> 158 <path refid="classpath.runtime"/>
161 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/> 159 <regexpmapper from="${third_party.dir}/(.*)" to="\1"/>
162 </copy> 160 </copy>
163 </target> 161 </target>
164 162
165 <target name="clean" description="Deletes the build output directory."> 163 <target name="clean" description="Deletes the build output directory.">
166 <delete dir="${build.dir}"/> 164 <delete dir="${build.dir}"/>
167 <delete dir="${dist.dir}"/> 165 <delete dir="${dist.dir}"/>
168 </target> 166 </target>
169 167
170 <target name="tests.jar" depends="compile-tests"> 168 <target name="tests.jar" depends="compile-tests">
171 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/> 169 <jar destfile="${build.dir}/tests.jar" basedir="${build.test.classes.dir}"/>
172 </target> 170 </target>
173 </project> 171 </project>
OLDNEW
« no previous file with comments | « compiler/dartc.mf ('k') | compiler/scripts/analyzer_metrics.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698