1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
- From: Samuel Attard <[email protected]>
- Date: Thu, 27 May 2021 17:21:07 -0700
- Subject: build: do not depend on packed_resource_integrity
- This ensures we do not depend on a target that does not exist when
- building Electron, electron generates its own .pak files via
- electron_repack and therefore this integrity target which is generated
- by the chrome_paks target does not exist. This can not be upstreamed,
- if we ever align our .pak file generation with Chrome we can remove this
- patch.
- diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
- index 3611378c052813bd9c9ab9ce7d1840d6535576bf..b148e0acaf28197ee1da634b5e4c449ffcc30ddc 100644
- --- a/chrome/BUILD.gn
- +++ b/chrome/BUILD.gn
- @@ -200,11 +200,16 @@ if (!is_android && !is_mac && !is_fuchsia) {
- "common/crash_keys.h",
- ]
-
- + if (!is_electron_build) {
- + deps = [
- + ":packed_resources_integrity_header",
- + ]
- + }
- +
- deps += [
- ":chrome_dll",
- ":chrome_exe_version",
- ":copy_first_run",
- - ":packed_resources_integrity_header",
- ":visual_elements_resources",
- "//base",
- "//build:branding_buildflags",
- diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
- index 9e7f057a1c35d3e6ba3f144cfaf7dfe0ff1148a8..b2b2c49e745530b35b6ee7df080426afa4c64989 100644
- --- a/chrome/browser/BUILD.gn
- +++ b/chrome/browser/BUILD.gn
- @@ -4746,7 +4746,7 @@ static_library("browser") {
-
- # On Windows, the hashes are embedded in //chrome:chrome_initial rather
- # than here in :chrome_dll.
- - if (!is_win) {
- + if (!is_win && !is_electron_build) {
- deps += [ "//chrome:packed_resources_integrity_header" ]
- sources += [ "certificate_viewer_stub.cc" ]
- }
- diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
- index f56b2c37e6176e3d796db6a0d75b9388691a1b1c..4f5b716570e8e235699c90b44ce14b367469e994 100644
- --- a/chrome/test/BUILD.gn
- +++ b/chrome/test/BUILD.gn
- @@ -7190,7 +7190,6 @@ if (!is_fuchsia) {
-
- deps += [
- "//chrome:other_version",
- - "//chrome:packed_resources_integrity_header",
- "//chrome//services/util_win:unit_tests",
- "//chrome/app:chrome_dll_resources",
- "//chrome/app:win_unit_tests",
- @@ -7211,6 +7210,10 @@ if (!is_fuchsia) {
- "//ui/resources",
- ]
-
- + if (!is_electron_build) {
- + deps += [ "//chrome:packed_resources_integrity_header" ]
- + }
- +
- ldflags = [
- "/DELAYLOAD:api-ms-win-core-winrt-error-l1-1-0.dll",
- "/DELAYLOAD:api-ms-win-core-winrt-l1-1-0.dll",
- @@ -8231,7 +8234,6 @@ if (!is_fuchsia) {
- }
-
- deps += [
- - "//chrome:packed_resources_integrity_header",
- "//chrome/browser/apps:icon_standardizer",
- "//chrome/browser/apps/app_service",
- "//chrome/browser/apps/app_service:app_registry_cache_waiter",
- @@ -8324,6 +8326,10 @@ if (!is_fuchsia) {
- "//ui/webui/resources/js/browser_command:mojo_bindings",
- ]
-
- + if (!is_electron_build) {
- + deps += [ "//chrome:packed_resources_integrity_header" ]
- + }
- +
- data += [ "//ash/components/arc/test/data/icons/" ]
-
- if (include_js2gtest_tests && is_chromeos_ash) {
|