blob: 85ed539f6599a8779acb353893505315c94b49f2 [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/webui_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}}" ]
}
webui_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 = [
"//ui/webui/resources/cr_elements:build_ts",
"//ui/webui/resources/js:build_ts",
"//ui/webui/resources/mojo:build_ts",
]
extra_deps = [ ":copy_src_and_mojo" ]
}