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

Side by Side Diff: chrome/browser/resources/vulcanize.gni

Issue 2569283002: WebUI: Add GN rules for Vulcanize. (Closed)
Patch Set: Update paths, fix presubmit warnings. 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
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 template("vulcanize") {
6 action(target_name) {
7 script = "//chrome/browser/resources/vulcanize_new.py"
8
9 depfile = "${target_gen_dir}/${target_name}.d"
10
11 outputs = [
12 "$target_gen_dir/${invoker.html_out_file}",
13 "$target_gen_dir/${invoker.js_out_file}",
14 ]
15 deps = invoker.deps
16
17 #sources = [
18 # invoker.html_in_file,
19 #]
20 print(outputs)
21
22 print(
23 invoker.target_name + " " + invoker.host + " " + invoker.html_in_file +
24 " " + invoker.html_out_file + " " + invoker.js_out_file)
25
26 # Note that we have to manually pass the sources to our script if the
27 # script needs them as inputs.
28 args = [
29 "--host",
30 invoker.host,
31 "--htmlInFile",
32 invoker.html_in_file,
33 "--htmlOutFile",
34 invoker.html_out_file,
35 "--jsOutFile",
36 invoker.js_out_file,
37 "--inputType",
38 invoker.input_type,
39 "--input",
40 invoker.input,
41 "--outFolder",
42 rebase_path(target_gen_dir, root_build_dir),
43 "--depfile",
44 rebase_path(depfile, root_build_dir),
45 ]
46 }
47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698