# Copyright 2021 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, "Non-ChromeOS builds cannot depend on //ash")
build_webui("build") {
static_files = [
"app_icon_192.png",
"index.html",
"illustrations/base_on_flat_surface.svg",
"illustrations/downloading.svg",
"illustrations/error.svg",
"illustrations/insert_usb.svg",
"illustrations/lid_on_flat_surface.svg",
"illustrations/repair_start.svg",
"illustrations/success.svg",
"illustrations/update_os.svg",
]
css_files = [ "shimless_rma_shared.css" ]
icons_html_files = [ "icons.html" ]
if (is_chrome_branded) {
static_files += [
"project_simon_strings/device_compliant.txt",
"project_simon_strings/device_not_compliant.txt",
"project_simon_strings/question_does_meet_requirements.txt",
"project_simon_strings/question_is_branded.txt",
]
}
web_component_files = [
"base_page.ts",
"calibration_component_chip.ts",
"critical_error_page.ts",
"hardware_error_page.ts",
"onboarding_choose_destination_page.ts",
"onboarding_choose_wp_disable_method_page.ts",
"onboarding_choose_wipe_device_page.ts",
"onboarding_enter_rsu_wp_disable_code_page.ts",
"onboarding_landing_page.ts",
"onboarding_network_page.ts",
"onboarding_select_components_page.ts",
"onboarding_update_page.ts",
"onboarding_wait_for_manual_wp_disable_page.ts",
"onboarding_wp_disable_complete_page.ts",
"reboot_page.ts",
"reimaging_calibration_failed_page.ts",
"reimaging_calibration_run_page.ts",
"reimaging_calibration_setup_page.ts",
"reimaging_device_information_page.ts",
"reimaging_firmware_update_page.ts",
"reimaging_provisioning_page.ts",
"repair_component_chip.ts",
"shimless_3p_diagnostics.ts",
"shimless_rma.ts",
"splash_screen.ts",
"wrapup_finalize_page.ts",
"wrapup_repair_complete_page.ts",
"wrapup_restock_page.ts",
"wrapup_wait_for_manual_wp_enable_page.ts",
]
non_web_component_files = [
"data.ts",
"events.ts",
"fake_data.ts",
"fake_shimless_rma_service.ts",
"mojo_interface_provider.ts",
"shimless_rma_util.ts",
]
mojo_files = [
"$root_gen_dir/ash/webui/shimless_rma/mojom/shimless_rma.mojom-webui.ts",
]
mojo_files_deps = [ "//ash/webui/shimless_rma/mojom:mojom_ts__generator" ]
ts_composite = true
ts_definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
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"
grd_prefix = "ash_shimless_rma"
grit_output_dir = "$root_gen_dir/ash/webui"
}