# 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("//ui/webui/resources/tools/build_webui.gni")
build_webui("build") {
grd_prefix = "optimization_guide_internals"
static_files = [
"optimization_guide_internals.html",
"optimization_guide_internals.css",
]
non_web_component_files = [
"optimization_guide_internals.ts",
"optimization_guide_internals_browser_proxy.ts",
]
mojo_files_deps = [
"//components/optimization_guide/core:interfaces_ts__generator",
"//components/optimization_guide/optimization_guide_internals/webui:mojo_bindings_ts__generator",
]
mojo_files = [
"$root_gen_dir/components/optimization_guide/core/optimization_guide_common.mojom-webui.ts",
"$root_gen_dir/components/optimization_guide/optimization_guide_internals/webui/optimization_guide_internals.mojom-webui.ts",
]
ts_deps = [
"//ui/webui/resources/cr_elements:build_ts",
"//ui/webui/resources/js:build_ts",
"//ui/webui/resources/mojo:build_ts",
]
webui_context_type = "trusted"
grit_output_dir = "$root_gen_dir/components"
}