blob: 1e5c6970bcd6b1748f82620777a08185c235af28 [file] [log] [blame]
# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//components/safe_browsing/buildflags.gni")
import("//tools/typescript/ts_library.gni")
assert(safe_browsing_mode == 1)
# Copy mojo and src files to the same location so that they can be passed to
# ts_library.
copy("copy_src_and_mojo") {
deps =
[ "//chrome/browser/ui/webui/reset_password:mojo_bindings_ts__generator" ]
sources = [
"$root_gen_dir/chrome/browser/ui/webui/reset_password/reset_password.mojom-webui.ts",
"reset_password.ts",
]
outputs = [ "$target_gen_dir/{{source_file_part}}" ]
}
ts_library("build_ts") {
root_dir = target_gen_dir
out_dir = "$target_gen_dir/tsc"
in_files = [
"reset_password.ts",
"reset_password.mojom-webui.ts",
]
deps = [
"//third_party/polymer/v3_0:library",
"//ui/webui/resources/cr_elements:build_ts",
"//ui/webui/resources/js:build_ts",
"//ui/webui/resources/mojo:library",
]
extra_deps = [ ":copy_src_and_mojo" ]
}