| # Copyright 2022 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//gpu/vulkan/features.gni") |
| import("//ui/webui/resources/tools/build_webui.gni") |
| |
| build_webui("build") { |
| grd_prefix = "gpu" |
| |
| static_files = [ "gpu_internals.html" ] |
| |
| preprocessor_defines = [ "enable_vulkan=$enable_vulkan" ] |
| |
| web_component_files = [ "info_view.ts" ] |
| |
| ts_files = [ |
| "browser_bridge.ts", |
| "gpu_internals.ts", |
| ] |
| |
| if (enable_vulkan) { |
| ts_files += [ "vulkan_info.ts" ] |
| mojo_files_deps = [ "//gpu/ipc/common:vulkan_interface_ts__generator" ] |
| mojo_files = [ |
| "${root_gen_dir}/gpu/ipc/common/vulkan_info.mojom-webui.ts", |
| "${root_gen_dir}/gpu/ipc/common/vulkan_types.mojom-webui.ts", |
| ] |
| } |
| |
| ts_deps = [ |
| "//ui/webui/resources/js:build_ts", |
| "//ui/webui/resources/mojo:build_ts", |
| ] |
| webui_context_type = "trusted" |
| |
| grit_output_dir = "$root_gen_dir/content" |
| } |