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 41ce32113ec2679b76d5a4fd69a7109c832ac7a1..1cd35794bf78f3d92b42634d9494c85a98e93ea6 100644
- --- a/chrome/BUILD.gn
- +++ b/chrome/BUILD.gn
- @@ -199,11 +199,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 5cce9134fabf566ec968d5738242b3dc13f2f54c..0e8ca7b1762571f57372a937630004252f396ae7 100644
- --- a/chrome/browser/BUILD.gn
- +++ b/chrome/browser/BUILD.gn
- @@ -4723,7 +4723,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 513932b71a19d8f0a8196faf2ef14c2a7a996229..0b16b410606d2dcb8f8013755f079a209c8ba3a4 100644
- --- a/chrome/test/BUILD.gn
- +++ b/chrome/test/BUILD.gn
- @@ -6833,7 +6833,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",
- @@ -6859,6 +6858,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",
- @@ -7826,7 +7829,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:app_registry_cache_waiter",
- @@ -7913,6 +7915,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_js2gtest_tests) {
|