chromium/components/flags_ui/resources/BUILD.gn

# Copyright 2019 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 = "flags_ui"

  static_files = [ "flags.html" ]

  web_component_files = [
    "experiment.ts",
    "app.ts",
  ]
  html_to_wrapper_template = "native"

  non_web_component_files = [ "flags_browser_proxy.ts" ]

  ts_composite = true
  ts_definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
  ts_deps = [ "//ui/webui/resources/js:build_ts" ]
  webui_context_type = "trusted"

  grit_output_dir = "$root_gen_dir/components"
}