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.
5 template("html_to_js") {
7 script = "//tools/polymer/html_to_js.py"
8 forward_variables_from(invoker, [ "visibility" ])
13 foreach(js_file, invoker.js_files) {
14 extension = get_path_info(js_file, "extension")
15 assert(extension == "js" || extension == "ts")
17 html_file = get_path_info(js_file, "name") + ".html"
22 outputs += [ "$target_gen_dir/" + js_file ]
27 rebase_path(".", root_build_dir),
29 rebase_path(target_gen_dir, root_build_dir),