From 5debecb677190c3de934d47d5500184ed9204489 Mon Sep 17 00:00:00 2001 From: Filip Filmar Date: Fri, 24 Sep 2021 12:27:21 -0700 Subject: [PATCH] Update the ICU library to 2b50fa94b07b601293d7c1f791e853bba8ffbb84 (flutter/engine#28646) Originally I wanted to update to 3f443830bd52d3aa5fab3c1aa2b6d0848bb5039d. However, that change had a problem with a misspelled build target which I also had to fix. But, that fix turned out to be infeasible on its own, and led to a bugfix in `gn`. Fixes: - Updates gn to commit 0153d369bbccc908f4da4993b1ba82728055926a to take in the fix at https://gn-review.googlesource.com/c/gn/+/12220 which prevented the correct treatment of target refactoring. - Updates ICU to commit 2b50fa94b07b601293d7c1f791e853bba8ffbb84 to correct the target naming, which should now work thanks to the previous update to gn. See https://gn-review.googlesource.com/c/gn/+/12220 for the details of that bug. - Fixed the visibility declaration in `//flutter/third_party/accessibility:accessibility_config` which used to not be enforced due to a bug in `gn` which was fixed in https://gn.googlesource.com/gn/+/46b572ce4ceedfe57f4f84051bd7da624c98bf01, a revision which we took in by updating `gn` in the first bullet. Fun times. See: https://chromium-review.googlesource.com/c/chromium/deps/icu/+/3163524 Please see the linked issue for details about why this update. --- DEPS | 4 ++-- engine/src/flutter/third_party/accessibility/BUILD.gn | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/DEPS b/DEPS index 37d21777bf..eca8b29a1c 100644 --- a/DEPS +++ b/DEPS @@ -150,7 +150,7 @@ deps = { Var('chromium_git') + '/chromium/src/ios.git' + '@' + Var('ios_tools_revision'), 'src/third_party/icu': - Var('chromium_git') + '/chromium/deps/icu.git' + '@' + 'a38aef9142ace942a8bf166020c569f4cda0f8d3', + Var('chromium_git') + '/chromium/deps/icu.git' + '@' + '2b50fa94b07b601293d7c1f791e853bba8ffbb84', 'src/third_party/khronos': Var('chromium_git') + '/chromium/src/third_party/khronos.git' + '@' + '7122230e90547962e0f0c627f62eeed3c701f275', @@ -588,7 +588,7 @@ deps = { 'packages': [ { 'package': 'gn/gn/${{platform}}', - 'version': 'git_revision:24e2f7df92641de0351a96096fb2c490b2436bb8' + 'version': 'git_revision:0153d369bbccc908f4da4993b1ba82728055926a' }, ], 'dep_type': 'cipd', diff --git a/engine/src/flutter/third_party/accessibility/BUILD.gn b/engine/src/flutter/third_party/accessibility/BUILD.gn index 8ec96d2fac..efdc96c7d5 100644 --- a/engine/src/flutter/third_party/accessibility/BUILD.gn +++ b/engine/src/flutter/third_party/accessibility/BUILD.gn @@ -6,7 +6,10 @@ import("//flutter/common/config.gni") import("//flutter/testing/testing.gni") config("accessibility_config") { - visibility = [ ":*" ] + visibility = [ + ":*", + "//flutter/shell/platform/common:common_cpp_accessibility", + ] if (is_win) { # TODO: std::iterator class template is deprecated in C++17 defines = [ "_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING" ]