# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//ui/webui/resources/tools/build_webui.gni")
build_webui("build") {
grd_prefix = "policy"
static_files = [
"logs/policy_logs.html",
"policy.html",
"policy.css",
"policy_shared_vars.css",
"test/policy_test.html",
]
# Files holding a Custom element definition AND have an equivalent .html file.
web_component_files = [
"policy_conflict.ts",
"policy_row.ts",
"policy_precedence_row.ts",
"policy_table.ts",
"test/policy_test_row.ts",
"test/policy_test_table.ts",
"status_box.ts",
]
non_web_component_files = [
"logs/types.ts",
"logs/policy_logs.ts",
"policy.ts",
"policy_base.ts",
"test/policy_test.ts",
"test/policy_test_browser_proxy.ts",
]
ts_composite = true
ts_definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
html_to_wrapper_template = "native"
ts_tsconfig_base = "tsconfig_base.json"
ts_deps = [
"//ui/webui/resources/cr_elements:build_ts",
"//ui/webui/resources/js:build_ts",
]
webui_context_type = "trusted"
grit_output_dir = "$root_gen_dir/components"
}