# Copyright 2020 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)
# When adding a new file to this app, add it to one of the lists below.
# `non_web_component_files` are plain TS and JS files.
# `web_component_files` are Polymer based TS and JS files.
# `css_files` are CSS files that are Polymer shared style modules.
# `static_files` are static files that don't need to be processed, e.g. images
build_webui("build") {
grd_prefix = "ash_print_management"
static_files = [
"index.html",
"print_management_192.png",
]
web_component_files = [
"print_job_clear_history_dialog.ts",
"print_job_entry.ts",
"print_management.ts",
"printer_setup_info.ts",
]
non_web_component_files = [ "mojo_interface_provider.ts" ]
icons_html_files = [ "icons.html" ]
css_files = [
"print_management_fonts.css",
"print_management_shared.css",
]
mojo_files_deps =
[ "//chromeos/components/print_management/mojom:mojom_ts__generator" ]
mojo_files = [ "$root_gen_dir/chromeos/components/print_management/mojom/printing_manager.mojom-webui.ts" ]
ts_composite = true
ts_deps = [
"//ash/webui/common/resources:build_ts",
"//ash/webui/common/resources/cr_elements:build_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"
grit_output_dir = "$root_gen_dir/ash/webui"
}