# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//tools/grit/preprocess_if_expr.gni")
import("//tools/typescript/webui_ts_library.gni")
preprocess_if_expr("preprocess") {
in_folder = "."
out_folder = target_gen_dir
in_files = [ "crashes.ts" ]
}
webui_ts_library("build_ts") {
root_dir = target_gen_dir
out_dir = "$target_gen_dir/tsc"
in_files = [ "crashes.ts" ]
definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
deps = [ "//ui/webui/resources/js:build_ts" ]
extra_deps = [ ":preprocess" ]
}