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

Side by Side Diff: build.xml

Issue 2607423002: Revert "Replace create_standalone_js.py with a custom GWT linker" (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « README.md ('k') | create_standalone_js.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="utf-8" ?> 1 <?xml version="1.0" encoding="utf-8" ?>
2 <!-- 2 <!--
3 Copyright 2014 The Chromium Authors. All rights reserved. 3 Copyright 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <project name="DomDistiller" default="build" basedir="."> 7 <project name="DomDistiller" default="build" basedir=".">
8 <property environment="env"/> 8 <property environment="env"/>
9 <!-- Arguments to gwtc and devmode targets --> 9 <!-- Arguments to gwtc and devmode targets -->
10 <property name="gwt.args" value="-XclosureCompiler -XnoclassMetadata -Xnocheck Casts -style OBF" /> 10 <property name="gwt.args" value="-XclosureCompiler -XnoclassMetadata -Xnocheck Casts -style OBF" />
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError --> 126 <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError -->
127 <jvmarg value="-Xmx256M"/> 127 <jvmarg value="-Xmx256M"/>
128 <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> 128 <!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
129 <arg line="${gwt.shared.args}"/> 129 <arg line="${gwt.shared.args}"/>
130 <arg line="${gwt.args}"/> 130 <arg line="${gwt.args}"/>
131 <arg line="${gwt.custom.args}"/> 131 <arg line="${gwt.custom.args}"/>
132 <arg value="DomDistiller"/> 132 <arg value="DomDistiller"/>
133 </java> 133 </java>
134 </target> 134 </target>
135 135
136 <target name="extractwrappedjs" depends="gwtc" 136 <target name="extractjs" depends="gwtc" description="Extract standalone JavaSc ript from compiled JavaScript">
137 <exec executable="python" failonerror="true">
138 <arg value="create_standalone_js.py"/>
139 <arg line="--module domdistiller"/>
140 <arg value="--auto"/>
141 </exec>
142 </target>
143
144 <target name="extractwrappedjs" depends="extractjs"
137 description="Create wrapped standalone JavaScript from compiled JavaScript for direct inclusion in Chrome"> 145 description="Create wrapped standalone JavaScript from compiled JavaScript for direct inclusion in Chrome">
138 <exec executable="python" failonerror="true"> 146 <exec executable="python" failonerror="true">
139 <arg value="create_wrapped_standalone_js.py"/> 147 <arg value="create_wrapped_standalone_js.py"/>
140 <arg value="--templatefile=war/wrapped_domdistiller_template.js"/> 148 <arg value="--templatefile=war/wrapped_domdistiller_template.js"/>
141 <arg value="--infile=war/domdistiller/domdistiller.nocache.js"/> 149 <arg value="--infile=out/domdistiller.js"/>
142 <arg value="--outfile=out/domdistiller_wrapped.js"/> 150 <arg value="--outfile=out/domdistiller_wrapped.js"/>
143 </exec> 151 </exec>
144 </target> 152 </target>
145 153
146 <target name="package" depends="gwtc, extractwrappedjs, gwtc.jstests" 154 <target name="package" depends="extractjs, extractwrappedjs, extractjs.jstests "
147 description="Copy the main build artifacts into the out/package directory" > 155 description="Copy the main build artifacts into the out/package directory" >
148 <mkdir dir="out/extension"/> 156 <mkdir dir="out/extension"/>
149 <mkdir dir="out/package"/> 157 <mkdir dir="out/package"/>
150 <mkdir dir="out/package/js"/> 158 <mkdir dir="out/package/js"/>
151 <mkdir dir="out/package/proto"/> 159 <mkdir dir="out/package/proto"/>
152 <mkdir dir="out/package/python"/> 160 <mkdir dir="out/package/python"/>
153 <mkdir dir="out/package/test"/> 161 <mkdir dir="out/package/test"/>
154 <mkdir dir="out/package/test/data"/> 162 <mkdir dir="out/package/test/data"/>
163 <mkdir dir="out/package/test/data/out"/>
155 <mkdir dir="out/package/test/data/war"/> 164 <mkdir dir="out/package/test/data/war"/>
156 165
157 <copy file="war/domdistiller/domdistiller.nocache.js" tofile="out/package/js /domdistiller.js" /> 166 <copy file="out/domdistiller.js" todir="out/package/js" />
158 <copy file="out/domdistiller_wrapped.js" todir="out/package/js" /> 167 <copy file="out/domdistiller_wrapped.js" todir="out/package/js" />
159 <copy todir="out/package/proto"> 168 <copy todir="out/package/proto">
160 <fileset dir="proto"/> 169 <fileset dir="proto"/>
161 </copy> 170 </copy>
162 <copy file="out/proto/python/google/protobuf/compiler/plugin_pb2.py" todir=" out/package/python" /> 171 <copy file="out/proto/python/google/protobuf/compiler/plugin_pb2.py" todir=" out/package/python" />
163 172
164 <copy file="war/domdistiller/domdistiller.nocache.js" tofile="out/extension/ domdistiller.js" /> 173 <copy file="out/domdistiller.js" todir="out/extension" />
165 <copy todir="out/extension"> 174 <copy todir="out/extension">
166 <fileset dir="extension"/> 175 <fileset dir="extension"/>
167 </copy> 176 </copy>
168 177
169 <copy file="war/domdistillerjstest/domdistillerjstest.nocache.js" todir="out /package/test/data/war/domdistillerjstest" /> 178 <copy file="out/domdistillerjstest.js" todir="out/package/test/data/out" />
170 <copy file="war/test.html" todir="out/package/test/data/war" /> 179 <copy file="war/test.html" todir="out/package/test/data/war" />
171 </target> 180 </target>
172 181
173 182
174 <target name="protoc.tests" depends="protoc.plugin.base" description="Generate test proto code"> 183 <target name="protoc.tests" depends="protoc.plugin.base" description="Generate test proto code">
175 <mkdir dir="out/test/proto" /> 184 <mkdir dir="out/test/proto" />
176 <apply executable="protoc" failonerror="true" relative="true"> 185 <apply executable="protoc" failonerror="true" relative="true">
177 <arg value="--plugin=protoc-gen-gwt_overlay=protoc_plugins/gwt_overlay.py" /> 186 <arg value="--plugin=protoc-gen-gwt_overlay=protoc_plugins/gwt_overlay.py" />
178 <arg value="--gwt_overlay_out=out/test/proto"/> 187 <arg value="--gwt_overlay_out=out/test/proto"/>
179 <arg value="--proto_path=test/proto"/> 188 <arg value="--proto_path=test/proto"/>
(...skipping 27 matching lines...) Expand all
207 <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError --> 216 <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError -->
208 <jvmarg value="-Xmx256M"/> 217 <jvmarg value="-Xmx256M"/>
209 <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> 218 <!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
210 <arg line="${gwt.shared.args}"/> 219 <arg line="${gwt.shared.args}"/>
211 <arg line="${gwt.test.args}"/> 220 <arg line="${gwt.test.args}"/>
212 <arg line="${gwt.custom.args}"/> 221 <arg line="${gwt.custom.args}"/>
213 <arg value="DomDistillerJsTest"/> 222 <arg value="DomDistillerJsTest"/>
214 </java> 223 </java>
215 </target> 224 </target>
216 225
226 <target name="extractjs.jstests" depends="gwtc.jstests" description="Extract s tandalone JavaScript from compiled JavaScript">
227 <exec executable="python" failonerror="true">
228 <arg value="create_standalone_js.py"/>
229 <arg line="--module domdistillerjstest"/>
230 <arg value="--auto"/>
231 <arg value="--sourcemaps"/>
232 </exec>
233 </target>
217 234
218 <!-- Run jstests for the Linux platform --> 235 <!-- Run jstests for the Linux platform -->
219 <target name="-jstests.linux" if="isLinux"> 236 <target name="-jstests.linux" if="isLinux">
220 <exec executable="xvfb-run" failonerror="true"> 237 <exec executable="xvfb-run" failonerror="true">
221 <env key="PATH" path="${basedir}/buildtools:${env.PATH}"/> 238 <env key="PATH" path="${basedir}/buildtools:${env.PATH}"/>
222 <arg value="--auto-servernum"/> 239 <arg value="--auto-servernum"/>
223 <arg value="-s"/> 240 <arg value="-s"/>
224 <arg value="-screen 0 1024x768x24"/> 241 <arg value="-screen 0 1024x768x24"/>
225 <arg value="./run_jstests.py"/> 242 <arg value="./run_jstests.py"/>
226 <arg line="--filter=${test.filter} 243 <arg line="--filter=${test.filter}
(...skipping 13 matching lines...) Expand all
240 --debug_level ${test.debug_level} 257 --debug_level ${test.debug_level}
241 --shuffle ${test.shuffle} 258 --shuffle ${test.shuffle}
242 --repeat ${test.repeat}"/> 259 --repeat ${test.repeat}"/>
243 </exec> 260 </exec>
244 </target> 261 </target>
245 262
246 <!-- Run jstests --> 263 <!-- Run jstests -->
247 <target name="-jstests" depends="-jstests.linux, -jstests.mac" /> 264 <target name="-jstests" depends="-jstests.linux, -jstests.mac" />
248 265
249 <target name="test" 266 <target name="test"
250 depends="gwtc.jstests, -jstests" 267 depends="extractjs.jstests, -jstests"
251 description="Run tests"> 268 description="Run tests">
252 </target> 269 </target>
253 270
254 <target name="runtest" 271 <target name="runtest"
255 depends="-jstests" 272 depends="-jstests"
256 description="Run tests without recompilation"> 273 description="Run tests without recompilation">
257 </target> 274 </target>
258 275
259 <target name="build" depends="gwtc" description="Build this project" /> 276 <target name="build" depends="gwtc" description="Build this project" />
260 277
(...skipping 12 matching lines...) Expand all
273 <delete dir="war/domdistillerjstest" failonerror="false" /> 290 <delete dir="war/domdistillerjstest" failonerror="false" />
274 <delete file="war/DomDistiller.war" failonerror="false" /> 291 <delete file="war/DomDistiller.war" failonerror="false" />
275 <delete dir="gwt-unitCache" failonerror="false" /> 292 <delete dir="gwt-unitCache" failonerror="false" />
276 <delete dir="out" failonerror="false" /> 293 <delete dir="out" failonerror="false" />
277 <delete failonerror="false" includeemptydirs="true"> 294 <delete failonerror="false" includeemptydirs="true">
278 <fileset dir="war" includes="*JUnit/**"/> 295 <fileset dir="war" includes="*JUnit/**"/>
279 </delete> 296 </delete>
280 </target> 297 </target>
281 298
282 </project> 299 </project>
OLDNEW
« no previous file with comments | « README.md ('k') | create_standalone_js.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698