forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update indexeddb-internals to generate grd files
Updates the indexeddb-internals page to generate grd files automatically instead of listing them manually. Bug: 1132403 Change-Id: I404db7d75490b17159b52d78edeb0145ac73dd5f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3834942 Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by: Evan Stade <estade@chromium.org> Commit-Queue: Nathan Memmott <memmott@chromium.org> Cr-Commit-Position: refs/heads/main@{#1042346}
- Loading branch information
Nathan Memmott
authored and
Chromium LUCI CQ
committed
Sep 1, 2022
1 parent
af073b7
commit 9d35597
Showing
6 changed files
with
68 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 2022 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
import("//chrome/common/features.gni") | ||
import("//tools/grit/grit_rule.gni") | ||
import("//ui/webui/resources/tools/generate_grd.gni") | ||
|
||
grit("resources") { | ||
defines = chrome_grit_defines | ||
|
||
# These arguments are needed since the grd is generated at build time. | ||
enable_input_discovery_for_gn_analyze = false | ||
source = "$target_gen_dir/resources.grd" | ||
deps = [ ":build_grd" ] | ||
|
||
outputs = [ | ||
"grit/indexed_db_resources.h", | ||
"grit/indexed_db_resources_map.cc", | ||
"grit/indexed_db_resources_map.h", | ||
"indexed_db_resources.pak", | ||
] | ||
output_dir = "$root_gen_dir/content" | ||
} | ||
|
||
generate_grd("build_grd") { | ||
grd_prefix = "indexed_db" | ||
out_grd = "$target_gen_dir/resources.grd" | ||
input_files_base_dir = rebase_path(".", "//") | ||
input_files = [ | ||
"indexeddb_internals.css", | ||
"indexeddb_internals.html", | ||
"indexeddb_internals.js", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters