Upload upstream chromium 85.0.4183.84
[platform/framework/web/chromium-efl.git] / tools / polymer / html_to_js.gni
1 # Copyright 2020 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("html_to_js") {
6   action(target_name) {
7     script = "//tools/polymer/html_to_js.py"
8
9     inputs = []
10     outputs = []
11
12     foreach(js_file, invoker.js_files) {
13       html_file = get_path_info(js_file, "name") + ".html"
14       inputs += [
15         js_file,
16         html_file,
17       ]
18       outputs += [ "$target_gen_dir/" + js_file ]
19     }
20
21     args = [
22              "--in_folder",
23              rebase_path(".", root_build_dir),
24              "--out_folder",
25              rebase_path(target_gen_dir, root_build_dir),
26              "--js_files",
27            ] + invoker.js_files
28   }
29 }