Skip to content

Commit

Permalink
Remove unnecessary uses of source_is_generated
Browse files Browse the repository at this point in the history
This will let GN validate that deps are not missed.

Bug: 1054892
Change-Id: Iac6a9f58d5b605812599012ac8ccdd86da3be497
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2088685
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749647}
  • Loading branch information
agrieve authored and Commit Bot committed Mar 12, 2020
1 parent 8878baa commit ead019c
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 31 deletions.
10 changes: 0 additions & 10 deletions chromeos/resources/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
grit("resources") {
source = "chromeos_resources.grd"

source_is_generated = true

outputs = [
"grit/chromeos_resources.h",
"grit/chromeos_resources_map.cc",
Expand Down Expand Up @@ -47,8 +45,6 @@ grit("resources") {
grit("help_app_resources") {
source = "../components/help_app_ui/resources/help_app_resources.grd"

source_is_generated = true

outputs = [
"grit/chromeos_help_app_resources.h",
"grit/chromeos_help_app_resources_map.cc",
Expand All @@ -75,7 +71,6 @@ grit("help_app_bundle_resources") {
source = "../components/help_app_ui/resources/mock/help_app_bundle_mock_resources.grd"
}

source_is_generated = true
use_brotli = true

outputs = [
Expand All @@ -91,8 +86,6 @@ grit("help_app_bundle_resources") {
grit("sample_system_web_app_resources") {
source = "../components/sample_system_web_app_ui/resources/sample_system_web_app_resources.grd"

source_is_generated = true

outputs = [
"grit/chromeos_sample_system_web_app_resources.h",
"grit/chromeos_sample_system_web_app_resources_map.cc",
Expand All @@ -107,8 +100,6 @@ grit("sample_system_web_app_resources") {
grit("media_app_resources") {
source = "../components/media_app_ui/resources/media_app_resources.grd"

source_is_generated = true

outputs = [
"grit/chromeos_media_app_resources.h",
"chromeos_media_app_resources.pak",
Expand All @@ -132,7 +123,6 @@ grit("media_app_bundle_resources") {
source = "../components/media_app_ui/resources/mock/media_app_bundle_mock_resources.grd"
}

source_is_generated = true
use_brotli = true

outputs = [
Expand Down
2 changes: 0 additions & 2 deletions components/sync/driver/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ jumbo_static_library("driver") {
grit("resources") {
source = "resources.grd"

# The .grd contains references to generated files.
source_is_generated = true
outputs = [
"grit/sync_driver_resources.h",
"sync_driver_resources.pak",
Expand Down
6 changes: 0 additions & 6 deletions content/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ if (is_component_build) {
grit("content_resources") {
source = "content_resources.grd"

# The .grd contains references to generated files.
source_is_generated = true

outputs = [
"grit/content_resources.h",
"grit/content_resources_map.cc",
Expand All @@ -133,9 +130,6 @@ grit("content_resources") {
grit("dev_ui_content_resources") {
source = "dev_ui_content_resources.grd"

# The .grd contains references to generated files.
source_is_generated = true

outputs = [
"grit/dev_ui_content_resources.h",
"dev_ui_content_resources.pak",
Expand Down
1 change: 0 additions & 1 deletion headless/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ grit("resources") {
"grit/headless_lib_resources.h",
"$root_gen_dir/headless/headless_lib_resources.pak",
]
source_is_generated = true
}

devtools_domains = [
Expand Down
3 changes: 0 additions & 3 deletions ios/chrome/app/resources/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ grit("ios_resources") {
source = "ios_resources.grd"
output_dir = "$root_gen_dir/ios/chrome"

# The .grd contains references to generated files.
source_is_generated = true

outputs = [
"grit/ios_resources.h",
"ios_resources.pak",
Expand Down
2 changes: 1 addition & 1 deletion ios/web/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ bundle_data("navigation_resources") {
grit("resources") {
source = "ios_web_resources.grd"

# The .grd contains references to generated files.
# Required due to flattenhtml="true" on a generated file.
source_is_generated = true

outputs = [
Expand Down
3 changes: 0 additions & 3 deletions ios/web/test/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ repack("packed_resources") {
grit("resources") {
source = "test_resources.grd"

# The .grd contains references to generated files.
source_is_generated = true

inputs = [ "${root_gen_dir}/ios/web/test/mojo_test.mojom.js" ]
deps = [ ":mojo_bindings_js" ]
outputs = [
Expand Down
3 changes: 0 additions & 3 deletions mojo/public/js/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ if (enable_mojom_closure_compile || closure_compile) {
grit("resources") {
source = "mojo_bindings_resources.grd"

# The .grd contains references to generated files.
source_is_generated = true

outputs = [
"grit/mojo_bindings_resources.h",
"grit/mojo_bindings_resources_map.cc",
Expand Down
2 changes: 0 additions & 2 deletions weblayer/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,6 @@ static_library("weblayer_lib") {
grit("resources") {
source = "weblayer_resources.grd"

source_is_generated = true

outputs = [
"grit/weblayer_resources.h",
"weblayer_resources.pak",
Expand Down

0 comments on commit ead019c

Please sign in to comment.