123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- 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 b38442f018b218944c7b85c9f8bd8b8eb6137b9e..dd15f6cf5dc40f2d54134c833d35508f2e22967b 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_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 0fe770a6446f6732c99f2e27eab2eeab746e550f..76e76e51fd9c0af7b244fc51e7d4d2cb3a649508 100644
- --- a/chrome/browser/BUILD.gn
- +++ b/chrome/browser/BUILD.gn
- @@ -4565,7 +4565,7 @@ static_library("browser") {
- [ "//chrome/browser/ui/webui/signin:profile_impl" ]
- }
-
- - if (!is_win) {
- + if (!is_win && !is_electron_build) {
- # On Windows, the hashes are embedded in //chrome:chrome_initial rather
- # than here in :chrome_dll.
- deps += [ "//chrome:packed_resources_integrity_header" ]
- diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
- index 7f79aa298e29f4abd1f7fb4a25b4497082cdb315..d1e4732ac13129e6fd2521446dac6d3b7814dfe8 100644
- --- a/chrome/test/BUILD.gn
- +++ b/chrome/test/BUILD.gn
- @@ -7034,9 +7034,12 @@ test("unit_tests") {
- "//chrome/notification_helper",
- ]
-
- + if (!is_electron_build) {
- + deps += [ "//chrome:packed_resources_integrity_header" ]
- + }
- +
- 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",
- @@ -7999,6 +8002,10 @@ test("unit_tests") {
- "../browser/performance_manager/policies/background_tab_loading_policy_unittest.cc",
- ]
-
- + if (!is_electron_build) {
- + deps += [ "//chrome:packed_resources_integrity_header" ]
- + }
- +
- sources += [
- # The importer code is not used on Android.
- "../common/importer/firefox_importer_utils_unittest.cc",
- @@ -8054,7 +8061,6 @@ test("unit_tests") {
- # Non-android deps for "unit_tests" target.
- deps += [
- "../browser/screen_ai:screen_ai_install_state",
- - "//chrome:packed_resources_integrity_header",
- "//chrome/browser/apps:icon_standardizer",
- "//chrome/browser/apps/app_service",
- "//chrome/browser/apps/app_service:app_registry_cache_waiter",
|