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

Side by Side Diff: build.xml

Issue 2039043003: Remove //base dependency (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | protoc_plugins/json_values_converter.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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 description="Generate JavascriptObject proto classes"> 95 description="Generate JavascriptObject proto classes">
96 <mkdir dir="out/proto/java" /> 96 <mkdir dir="out/proto/java" />
97 <apply executable="protoc" failonerror="true" relative="true"> 97 <apply executable="protoc" failonerror="true" relative="true">
98 <arg value="--plugin=protoc-gen-gwt_overlay=protoc_plugins/gwt_overlay.py" /> 98 <arg value="--plugin=protoc-gen-gwt_overlay=protoc_plugins/gwt_overlay.py" />
99 <arg value="--gwt_overlay_out=out/proto/java"/> 99 <arg value="--gwt_overlay_out=out/proto/java"/>
100 <arg value="--proto_path=proto"/> 100 <arg value="--proto_path=proto"/>
101 <fileset dir="." includes="proto/**/*.proto"/> 101 <fileset dir="." includes="proto/**/*.proto"/>
102 </apply> 102 </apply>
103 </target> 103 </target>
104 104
105 <target name="protoc.json" depends="protoc.plugin.base"
106 description="Generate base::Value-based json proto reader/writers">
107 <mkdir dir="out/proto/json" />
108 <apply executable="protoc" failonerror="true" relative="true">
109 <arg value="--plugin=protoc-gen-json_converter=protoc_plugins/json_values_ converter.py"/>
110 <arg value="--json_converter_out=output_dir=third_party/dom_distiller_js:o ut/proto/json"/>
111 <arg value="--proto_path=proto"/>
112 <fileset dir="." includes="proto/**/*.proto"/>
113 </apply>
114 </target>
115
116 <target name="javac" depends="setup, protoc" description="Compile java source to bytecode"> 105 <target name="javac" depends="setup, protoc" description="Compile java source to bytecode">
117 <mkdir dir="war/WEB-INF/classes"/> 106 <mkdir dir="war/WEB-INF/classes"/>
118 <javac includes="**" encoding="utf-8" 107 <javac includes="**" encoding="utf-8"
119 destdir="war/WEB-INF/classes" 108 destdir="war/WEB-INF/classes"
120 source="1.7" target="1.7" nowarn="true" 109 source="1.7" target="1.7" nowarn="true"
121 debug="true" debuglevel="lines,vars,source"> 110 debug="true" debuglevel="lines,vars,source">
122 <src refid="project.java.path"/> 111 <src refid="project.java.path"/>
123 <src refid="protoc.java.output" /> 112 <src refid="protoc.java.output" />
124 <classpath refid="project.class.path"/> 113 <classpath refid="project.class.path"/>
125 </javac> 114 </javac>
(...skipping 21 matching lines...) Expand all
147 <target name="extractwrappedjs" depends="gwtc" 136 <target name="extractwrappedjs" depends="gwtc"
148 description="Create wrapped standalone JavaScript from compiled JavaScript for direct inclusion in Chrome"> 137 description="Create wrapped standalone JavaScript from compiled JavaScript for direct inclusion in Chrome">
149 <exec executable="python" failonerror="true"> 138 <exec executable="python" failonerror="true">
150 <arg value="create_wrapped_standalone_js.py"/> 139 <arg value="create_wrapped_standalone_js.py"/>
151 <arg value="--templatefile=war/wrapped_domdistiller_template.js"/> 140 <arg value="--templatefile=war/wrapped_domdistiller_template.js"/>
152 <arg value="--infile=war/domdistiller/domdistiller.nocache.js"/> 141 <arg value="--infile=war/domdistiller/domdistiller.nocache.js"/>
153 <arg value="--outfile=out/domdistiller_wrapped.js"/> 142 <arg value="--outfile=out/domdistiller_wrapped.js"/>
154 </exec> 143 </exec>
155 </target> 144 </target>
156 145
157 <target name="package" depends="gwtc, extractwrappedjs, gwtc.jstests, protoc.j son" 146 <target name="package" depends="gwtc, extractwrappedjs, gwtc.jstests"
158 description="Copy the main build artifacts into the out/package directory" > 147 description="Copy the main build artifacts into the out/package directory" >
159 <mkdir dir="out/extension"/> 148 <mkdir dir="out/extension"/>
160 <mkdir dir="out/package"/> 149 <mkdir dir="out/package"/>
161 <mkdir dir="out/package/js"/> 150 <mkdir dir="out/package/js"/>
162 <mkdir dir="out/package/proto"/> 151 <mkdir dir="out/package/proto"/>
152 <mkdir dir="out/package/python"/>
163 <mkdir dir="out/package/test"/> 153 <mkdir dir="out/package/test"/>
164 <mkdir dir="out/package/test/data"/> 154 <mkdir dir="out/package/test/data"/>
165 <mkdir dir="out/package/test/data/war"/> 155 <mkdir dir="out/package/test/data/war"/>
166 156
167 <copy file="war/domdistiller/domdistiller.nocache.js" tofile="out/package/js /domdistiller.js" /> 157 <copy file="war/domdistiller/domdistiller.nocache.js" tofile="out/package/js /domdistiller.js" />
168 <copy file="out/domdistiller_wrapped.js" todir="out/package/js" /> 158 <copy file="out/domdistiller_wrapped.js" todir="out/package/js" />
169 <copy todir="out/package/proto_gen">
170 <fileset dir="out/proto/json"/>
171 </copy>
172 <copy todir="out/package/proto"> 159 <copy todir="out/package/proto">
173 <fileset dir="proto"/> 160 <fileset dir="proto"/>
174 </copy> 161 </copy>
162 <copy file="out/proto/python/google/protobuf/compiler/plugin_pb2.py" todir=" out/package/python" />
175 163
176 <copy file="war/domdistiller/domdistiller.nocache.js" tofile="out/extension/ domdistiller.js" /> 164 <copy file="war/domdistiller/domdistiller.nocache.js" tofile="out/extension/ domdistiller.js" />
177 <copy todir="out/extension"> 165 <copy todir="out/extension">
178 <fileset dir="extension"/> 166 <fileset dir="extension"/>
179 </copy> 167 </copy>
180 168
181 <copy file="war/domdistillerjstest/domdistillerjstest.nocache.js" todir="out /package/test/data/war/domdistillerjstest" /> 169 <copy file="war/domdistillerjstest/domdistillerjstest.nocache.js" todir="out /package/test/data/war/domdistillerjstest" />
182 <copy file="war/test.html" todir="out/package/test/data/war" /> 170 <copy file="war/test.html" todir="out/package/test/data/war" />
183 </target> 171 </target>
184 172
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 <delete dir="war/domdistillerjstest" failonerror="false" /> 273 <delete dir="war/domdistillerjstest" failonerror="false" />
286 <delete file="war/DomDistiller.war" failonerror="false" /> 274 <delete file="war/DomDistiller.war" failonerror="false" />
287 <delete dir="gwt-unitCache" failonerror="false" /> 275 <delete dir="gwt-unitCache" failonerror="false" />
288 <delete dir="out" failonerror="false" /> 276 <delete dir="out" failonerror="false" />
289 <delete failonerror="false" includeemptydirs="true"> 277 <delete failonerror="false" includeemptydirs="true">
290 <fileset dir="war" includes="*JUnit/**"/> 278 <fileset dir="war" includes="*JUnit/**"/>
291 </delete> 279 </delete>
292 </target> 280 </target>
293 281
294 </project> 282 </project>
OLDNEW
« no previous file with comments | « no previous file | protoc_plugins/json_values_converter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698