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

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

# Copyright 2024 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",
    "svg/card_chrome_product.svg",
    "svg/card_extension_off.svg",
    "svg/card_settings.svg",
    "svg/extension_off_32.svg",
    "svg/finished_32.svg",
    "svg/illo.svg",
  ]

  css_files = [ "sanitize_shared.css" ]

  web_component_files = [
    "sanitize_app.ts",
    "sanitize_done.ts",
    "sanitize_initial.ts",
  ]

  mojo_files = [
    "$root_gen_dir/ash/webui/common/mojom/accessibility_features.mojom-webui.ts",
    "$root_gen_dir/ash/webui/sanitize_ui/mojom/sanitize_ui.mojom-webui.ts",
  ]

  mojo_files_deps = [
    "//ash/webui/common/mojom:mojom_ts__generator",
    "//ash/webui/sanitize_ui/mojom:mojom_ts__generator",
  ]

  ts_composite = true

  ts_deps = [
    "//ash/webui/common/resources:build_ts",
    "//ash/webui/common/resources/cr_elements:build_ts",
    "//third_party/cros-components:cros_components_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_sanitize_app"
  grit_output_dir = "$root_gen_dir/ash/webui"
}