1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100

ash / webui / diagnostics_ui / resources / BUILD.gn [blame]

# 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/ash/system/diagnostics/mojom/input.mojom-webui.ts",
    "$root_gen_dir/ash/webui/diagnostics_ui/mojom/input_data_provider.mojom-webui.ts",
    "$root_gen_dir/ash/webui/diagnostics_ui/mojom/network_health_provider.mojom-webui.ts",
    "$root_gen_dir/ash/webui/diagnostics_ui/mojom/system_data_provider.mojom-webui.ts",
    "$root_gen_dir/ash/webui/diagnostics_ui/mojom/system_routine_controller.mojom-webui.ts",
  ]

  mojo_files_deps = [
    "//ash/system/diagnostics/mojom:mojom_ts__generator",
    "//ash/webui/diagnostics_ui/mojom:mojom_ts__generator",
  ]
  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/d3:library",
    "//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"
}