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

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

# 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")

assert(is_chromeos_ash, "Status Area Internals is ash-chrome only")

build_webui("build") {
  grd_prefix = "ash_status_area_internals"

  static_files = [ "main.html" ]
  web_component_files = [
    "privacy_indicator_app.ts",
    "privacy_indicator_app_manager.ts",
    "status_area_internals.ts",
  ]
  non_web_component_files = [ "page_handler.ts" ]
  mojo_files = [ "$root_gen_dir/ash/webui/status_area_internals/mojom/status_area_internals.mojom-webui.ts" ]
  mojo_files_deps =
      [ "//ash/webui/status_area_internals/mojom:mojom_ts__generator" ]

  ts_definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
  ts_deps = [
    "//ash/webui/common/resources/cr_elements:build_ts",
    "//third_party/polymer/v3_0:library",
    "//ui/webui/resources/js:build_ts",
    "//ui/webui/resources/mojo:build_ts",
  ]

  webui_context_type = "trusted"
  grit_output_dir = "$root_gen_dir/ash/webui"
}