# 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("//ui/webui/resources/tools/build_webui.gni")

assert(is_win || is_mac || is_linux)

build_webui("build") {
  grd_prefix = "on_device_translation_internals"
  static_files = [ "on_device_translation_internals.html" ]
  ts_files = [
    "app.html.ts",
    "app.ts",
  ]
  mojo_files_deps = [ "//chrome/browser/ui/webui/on_device_translation_internals:mojo_bindings_ts__generator" ]
  mojo_files = [ "$root_gen_dir/chrome/browser/ui/webui/on_device_translation_internals/on_device_translation_internals.mojom-webui.ts" ]
  ts_deps = [
    "//third_party/lit/v3_0:build_ts",
    "//ui/webui/resources/js:build_ts",
    "//ui/webui/resources/mojo:build_ts",
  ]
  ts_composite = true
  webui_context_type = "trusted"
}
