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

Side by Side Diff: build.xml

Issue 863863007: Add support for wrapping the standalone JavaScript. (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | create_wrapped_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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError --> 131 <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError -->
132 <jvmarg value="-Xmx256M"/> 132 <jvmarg value="-Xmx256M"/>
133 <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> 133 <!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
134 <arg line="${gwt.shared.args}"/> 134 <arg line="${gwt.shared.args}"/>
135 <arg line="${gwt.args}"/> 135 <arg line="${gwt.args}"/>
136 <arg line="${gwt.custom.args}"/> 136 <arg line="${gwt.custom.args}"/>
137 <arg value="DomDistiller"/> 137 <arg value="DomDistiller"/>
138 </java> 138 </java>
139 </target> 139 </target>
140 140
141 <target name="extractjs" depends="gwtc" description="Extract standalone javasc ript from compiled javascript"> 141 <target name="extractjs" depends="gwtc" description="Extract standalone JavaSc ript from compiled JavaScript">
142 <exec executable="python" failonerror="true"> 142 <exec executable="python" failonerror="true">
143 <arg value="create_standalone_js.py"/> 143 <arg value="create_standalone_js.py"/>
144 <arg line="--module domdistiller"/> 144 <arg line="--module domdistiller"/>
145 <arg value="--auto"/> 145 <arg value="--auto"/>
146 </exec> 146 </exec>
147
148 </target> 147 </target>
149 148
150 <target name="package" depends="extractjs, extractjs.jstests, protoc.json" 149 <target name="extractwrappedjs" depends="extractjs"
150 description="Create wrapped standalone javascript from compiled JavaScript for direct inclusion in Chrome.">
151 <exec executable="python" failonerror="true">
152 <arg value="create_wrapped_standalone_js.py"/>
153 <arg value="--templatefile=war/wrapped_domdistiller_template.js"/>
154 <arg value="--infile=out/domdistiller.js"/>
155 <arg value="--outfile=out/domdistiller_wrapped.js"/>
156 </exec>
157 </target>
158
159 <target name="package" depends="extractjs, extractwrappedjs, extractjs.jstests , protoc.json"
151 description="Copies the main build artifacts into the out/package director y." > 160 description="Copies the main build artifacts into the out/package director y." >
152 <mkdir dir="out/extension"/> 161 <mkdir dir="out/extension"/>
153 <mkdir dir="out/package"/> 162 <mkdir dir="out/package"/>
154 <mkdir dir="out/package/js"/> 163 <mkdir dir="out/package/js"/>
155 <mkdir dir="out/package/proto"/> 164 <mkdir dir="out/package/proto"/>
156 <mkdir dir="out/package/test"/> 165 <mkdir dir="out/package/test"/>
157 <mkdir dir="out/package/test/data"/> 166 <mkdir dir="out/package/test/data"/>
158 <mkdir dir="out/package/test/data/out"/> 167 <mkdir dir="out/package/test/data/out"/>
159 <mkdir dir="out/package/test/data/war"/> 168 <mkdir dir="out/package/test/data/war"/>
160 169
161 <copy file="out/domdistiller.js" todir="out/package/js" /> 170 <copy file="out/domdistiller.js" todir="out/package/js" />
171 <copy file="out/domdistiller_wrapped.js" todir="out/package/js" />
162 <copy todir="out/package/proto_gen"> 172 <copy todir="out/package/proto_gen">
163 <fileset dir="out/proto/json"/> 173 <fileset dir="out/proto/json"/>
164 </copy> 174 </copy>
165 <copy todir="out/package/proto"> 175 <copy todir="out/package/proto">
166 <fileset dir="proto"/> 176 <fileset dir="proto"/>
167 </copy> 177 </copy>
168 178
169 <copy file="out/domdistiller.js" todir="out/extension" /> 179 <copy file="out/domdistiller.js" todir="out/extension" />
170 <copy todir="out/extension"> 180 <copy todir="out/extension">
171 <fileset dir="extension"/> 181 <fileset dir="extension"/>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 <delete dir="war/domdistillerjstest" failonerror="false" /> 286 <delete dir="war/domdistillerjstest" failonerror="false" />
277 <delete file="war/DomDistiller.war" failonerror="false" /> 287 <delete file="war/DomDistiller.war" failonerror="false" />
278 <delete dir="gwt-unitCache" failonerror="false" /> 288 <delete dir="gwt-unitCache" failonerror="false" />
279 <delete dir="out" failonerror="false" /> 289 <delete dir="out" failonerror="false" />
280 <delete failonerror="false" includeemptydirs="true"> 290 <delete failonerror="false" includeemptydirs="true">
281 <fileset dir="war" includes="*JUnit/**"/> 291 <fileset dir="war" includes="*JUnit/**"/>
282 </delete> 292 </delete>
283 </target> 293 </target>
284 294
285 </project> 295 </project>
OLDNEW
« no previous file with comments | « no previous file | create_wrapped_standalone_js.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698