chromium/components/sync/service/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 = "sync_service_sync_internals"

  static_files = [
    "about.css",
    "index.html",
    "invalidations.css",
    "star_small.png",
    "sync_node_browser.css",
    "sync_search.css",
    "traffic_log.css",
  ]

  non_web_component_files = [
    "about.ts",
    "chrome_sync.ts",
    "data.ts",
    "invalidations.ts",
    "search.ts",
    "sync_index.ts",
    "sync_log.ts",
    "sync_node_browser.ts",
    "sync_search.ts",
    "traffic_log.ts",
    "user_events.ts",
  ]

  ts_composite = true
  ts_deps = [
    "//ui/webui/resources/cr_elements:build_ts",
    "//ui/webui/resources/js:build_ts",
  ]
  ts_definitions = [
    "//tools/typescript/definitions/chrome_send.d.ts",
    "//tools/typescript/definitions/pending.d.ts",
    "jstemplate.d.ts",
  ]

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