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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | create_wrapped_standalone_js.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build.xml
diff --git a/build.xml b/build.xml
index 2c758da045cff48c759ec42c16965818006844c2..cc8b1ef1ae4e0478db39edf1894c6fb9173b47dd 100644
--- a/build.xml
+++ b/build.xml
@@ -138,16 +138,25 @@
</java>
</target>
- <target name="extractjs" depends="gwtc" description="Extract standalone javascript from compiled javascript">
+ <target name="extractjs" depends="gwtc" description="Extract standalone JavaScript from compiled JavaScript">
<exec executable="python" failonerror="true">
<arg value="create_standalone_js.py"/>
<arg line="--module domdistiller"/>
<arg value="--auto"/>
</exec>
+ </target>
+ <target name="extractwrappedjs" depends="extractjs"
+ description="Create wrapped standalone javascript from compiled JavaScript for direct inclusion in Chrome.">
+ <exec executable="python" failonerror="true">
+ <arg value="create_wrapped_standalone_js.py"/>
+ <arg value="--templatefile=war/wrapped_domdistiller_template.js"/>
+ <arg value="--infile=out/domdistiller.js"/>
+ <arg value="--outfile=out/domdistiller_wrapped.js"/>
+ </exec>
</target>
- <target name="package" depends="extractjs, extractjs.jstests, protoc.json"
+ <target name="package" depends="extractjs, extractwrappedjs, extractjs.jstests, protoc.json"
description="Copies the main build artifacts into the out/package directory." >
<mkdir dir="out/extension"/>
<mkdir dir="out/package"/>
@@ -159,6 +168,7 @@
<mkdir dir="out/package/test/data/war"/>
<copy file="out/domdistiller.js" todir="out/package/js" />
+ <copy file="out/domdistiller_wrapped.js" todir="out/package/js" />
<copy todir="out/package/proto_gen">
<fileset dir="out/proto/json"/>
</copy>
« 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