# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//ui/webui/resources/tools/build_webui.gni")
assert(is_chromeos_ash, "Non-ChromeOS builds cannot depend on //ash")
build_webui("build") {
static_files = [
"app_icon_192.png",
"index.html",
]
css_files = [ "diagnostics_shared.css" ]
icons_html_files = [ "icons.html" ]
web_component_files = [
"battery_status_card.ts",
"cellular_info.ts",
"connectivity_card.ts",
"cpu_card.ts",
"data_point.ts",
"diagnostics_app.ts",
"diagnostics_card.ts",
"diagnostics_card_frame.ts",
"diagnostics_network_icon.ts",
"diagnostics_sticky_banner.ts",
"ethernet_info.ts",
"input_card.ts",
"input_list.ts",
"ip_config_info_drawer.ts",
"keyboard_tester.ts",
"memory_card.ts",
"network_card.ts",
"network_info.ts",
"network_list.ts",
"network_troubleshooting.ts",
"overview_card.ts",
"percent_bar_chart.ts",
"realtime_cpu_chart.ts",
"routine_result_entry.ts",
"routine_result_list.ts",
"routine_section.ts",
"system_page.ts",
"text_badge.ts",
"touchpad_tester.ts",
"touchscreen_tester.ts",
"wifi_info.ts",
]
non_web_component_files = [
"diagnostics_browser_proxy.ts",
"diagnostics_types.ts",
"diagnostics_utils.ts",
"drawing_provider.ts",
"drawing_provider_utils.ts",
"fake_data.ts",
"fake_input_data_provider.ts",
"fake_network_health_provider.ts",
"fake_system_data_provider.ts",
"fake_system_routine_controller.ts",
"frequency_channel_utils.ts",
"mojo_interface_provider.ts",
"routine_group.ts",
"routine_list_executor.ts",
]
mojo_files = [
"$root_gen_dir/mojom-webui/ash/system/diagnostics/mojom/input.mojom-webui.js",
"$root_gen_dir/mojom-webui/ash/webui/diagnostics_ui/mojom/input_data_provider.mojom-webui.js",
"$root_gen_dir/mojom-webui/ash/webui/diagnostics_ui/mojom/network_health_provider.mojom-webui.js",
"$root_gen_dir/mojom-webui/ash/webui/diagnostics_ui/mojom/system_data_provider.mojom-webui.js",
"$root_gen_dir/mojom-webui/ash/webui/diagnostics_ui/mojom/system_routine_controller.mojom-webui.js",
]
mojo_files_deps = [
"../mojom:mojom_webui_js",
"//ash/system/diagnostics/mojom:mojom_webui_js",
"//ash/webui/diagnostics_ui/mojom:mojom_webui_js",
]
ts_composite = true
ts_definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
ts_tsconfig_base = "tsconfig_base.json"
ts_deps = [
"//ash/webui/common/resources:build_ts",
"//ash/webui/common/resources/cr_elements:build_ts",
"//third_party/polymer/v3_0:library",
"//ui/webui/resources/cr_components/color_change_listener:build_ts",
"//ui/webui/resources/js:build_ts",
"//ui/webui/resources/mojo:build_ts",
]
webui_context_type = "trusted"
grd_prefix = "ash_diagnostics_app"
grit_output_dir = "$root_gen_dir/ash/webui"
}