# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//tools/grit/grit_rule.gni")
import("//ui/webui/resources/tools/generate_grd.gni")
generated_grd = "$target_gen_dir/resources.grd"
generate_grd("build_grd") {
out_grd = generated_grd
grd_prefix = "service_worker"
input_files = [
"serviceworker_internals.css",
"serviceworker_internals.html",
"serviceworker_internals.js",
]
input_files_base_dir = rebase_path(".", "//")
}
grit("resources") {
source = generated_grd
enable_input_discovery_for_gn_analyze = false
deps = [ ":build_grd" ]
outputs = [
"grit/service_worker_resources.h",
"grit/service_worker_resources_map.cc",
"grit/service_worker_resources_map.h",
"service_worker_resources.pak",
]
output_dir = "$root_gen_dir/content"
}