123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- 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 71152d08a9e9ce2e112fd7a6c3134a547af5d978..fd11a574ed7b38d556bbdaed2fd649d55d6530f7 100644
- --- a/chrome/BUILD.gn
- +++ b/chrome/BUILD.gn
- @@ -171,11 +171,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 5f0b1af64911966f9b24a2b5ef063e4473b81a8f..c186819512e21276e382edba2eca2c153da7403d 100644
- --- a/chrome/browser/BUILD.gn
- +++ b/chrome/browser/BUILD.gn
- @@ -4517,7 +4517,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 89afb235bc478f19511579ca4c6b018505b372cd..1b5b9e33f5ad2b31617edd8a6ee65e73b31d3d20 100644
- --- a/chrome/test/BUILD.gn
- +++ b/chrome/test/BUILD.gn
- @@ -5564,7 +5564,6 @@ test("unit_tests") {
-
- deps += [
- "//chrome:other_version",
- - "//chrome:packed_resources_integrity",
- "//chrome//services/util_win:unit_tests",
- "//chrome/app:chrome_dll_resources",
- "//chrome/browser:chrome_process_finder",
- @@ -5587,6 +5586,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",
- @@ -6270,7 +6273,6 @@ test("unit_tests") {
- }
-
- deps += [
- - "//chrome:packed_resources_integrity_hash",
- "//chrome/browser:cart_db_content_proto",
- "//chrome/browser:coupon_db_content_proto",
- "//chrome/browser/media/router:test_support",
- @@ -6312,6 +6314,11 @@ test("unit_tests") {
- "//ui/native_theme:test_support",
- "//ui/webui/resources/js/browser_command:mojo_bindings",
- ]
- +
- + if (!is_electron_build) {
- + deps += [ "//chrome:packed_resources_integrity_hash" ]
- + }
- +
- if (is_chromeos_ash) {
- deps += [
- "//ash/assistant/model",
|