chromium/components/version_ui/resources/BUILD.gn

# 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 = "version_ui"

  static_files = [
    "about_version.css",
    "about_version.html",
  ]

  if (is_android || is_ios) {
    static_files += [ "about_version_mobile.css" ]
  }

  non_web_component_files = [ "about_version.ts" ]

  ts_definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
  if (is_chromeos) {
    ts_definitions +=
        [ "//tools/typescript/definitions/chromeos_info_private.d.ts" ]
  }
  ts_deps = [ "//ui/webui/resources/js:build_ts" ]

  webui_context_type = "trusted"
  grit_output_dir = "$root_gen_dir/components"
}