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 98c9dca792522fd27774d9d22ead61ee546b1832..d255787f554b71cb9034229212f80b0fdd5c73f9 100644
- --- a/chrome/BUILD.gn
- +++ b/chrome/BUILD.gn
- @@ -193,11 +193,16 @@ if (!is_android && !is_mac) {
- "common/crash_keys.h",
- ]
-
- + if (!is_electron_build) {
- + deps = [
- + ":packed_resources_integrity",
- + ]
- + }
- +
- deps += [
- ":chrome_dll",
- ":chrome_exe_version",
- ":copy_first_run",
- - ":packed_resources_integrity",
- ":visual_elements_resources",
- "//base",
- "//build:branding_buildflags",
- diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
- index 09f96b22f60fac75a1d194a6ee40346e3841c5c6..f9f2a0801b4140080142d4116995bee66e157cd7 100644
- --- a/chrome/browser/BUILD.gn
- +++ b/chrome/browser/BUILD.gn
- @@ -4571,7 +4571,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" ]
- sources += [ "certificate_viewer_stub.cc" ]
- }
- diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
- index 67fb2ff53b6145cee2e310592828d3b6337d5b17..85d6e319598edf1b5b1b80ccb3092154a3b54cb5 100644
- --- a/chrome/test/BUILD.gn
- +++ b/chrome/test/BUILD.gn
- @@ -6413,7 +6413,6 @@ test("unit_tests") {
-
- deps += [
- "//chrome:other_version",
- - "//chrome:packed_resources_integrity",
- "//chrome//services/util_win:unit_tests",
- "//chrome/app:chrome_dll_resources",
- "//chrome/app:win_unit_tests",
- @@ -6439,6 +6438,10 @@ test("unit_tests") {
- "//ui/resources",
- ]
-
- + if (!is_electron_build) {
- + deps += [ "//chrome:packed_resources_integrity" ]
- + }
- +
- ldflags = [
- "/DELAYLOAD:api-ms-win-core-winrt-error-l1-1-0.dll",
- "/DELAYLOAD:api-ms-win-core-winrt-l1-1-0.dll",
- @@ -7364,7 +7367,6 @@ test("unit_tests") {
- }
-
- deps += [
- - "//chrome:packed_resources_integrity_hash",
- "//chrome/browser/apps:icon_standardizer",
- "//chrome/browser/apps/app_service",
- "//chrome/browser/apps/app_service:test_support",
- @@ -7443,6 +7445,10 @@ test("unit_tests") {
- "//ui/webui/resources/js/browser_command:mojo_bindings",
- ]
-
- + if (!is_electron_build) {
- + deps += [ "//chrome:packed_resources_integrity_hash" ]
- + }
- +
- data += [ "//ash/components/arc/test/data/icons/" ]
-
- if (include_js_tests) {
|