Roll ICU to 62.1 and harfbuzz to 1.8.4 (flutter/engine#5913)

This commit is contained in:
Michael Goderbauer
2018-08-01 14:56:53 -07:00
committed by GitHub
parent f352631388
commit 608a991a03
3 changed files with 725 additions and 526 deletions

4
DEPS
View File

@@ -135,7 +135,7 @@ deps = {
Var('fuchsia_git') + '/third_party/rapidjson' + '@' + '9defbb0209a534ffeb3a2b79d5ee440a77407292',
'src/third_party/harfbuzz':
Var('fuchsia_git') + '/third_party/harfbuzz' + '@' + '39b423660aacf916f1cb01f24913f78eaacb3baf',
Var('fuchsia_git') + '/third_party/harfbuzz' + '@' + 'd837034f09a957faf2814002e8ebd81da6151d1b',
# Chromium-style
#
@@ -149,7 +149,7 @@ deps = {
Var('chromium_git') + '/chromium/src/ios.git' + '@' + Var('ios_tools_revision'),
'src/third_party/icu':
Var('chromium_git') + '/chromium/deps/icu.git' + '@' + '08cb956852a5ccdba7f9c941728bb833529ba3c6',
Var('chromium_git') + '/chromium/deps/icu.git' + '@' + '6cf2ab2580888e520683c2d993133018c91e612c',
'src/third_party/dart':
Var('dart_git') + '/sdk.git' + '@' + Var('dart_revision'),

File diff suppressed because it is too large Load Diff

View File

@@ -12,11 +12,11 @@ import 'dart:math' as math;
import 'package:args/args.dart';
import 'package:crypto/crypto.dart' as crypto;
import 'package:licenses/patterns.dart';
import 'package:path/path.dart' as path;
import 'filesystem.dart' as fs;
import 'licenses.dart';
import 'patterns.dart';
// REPOSITORY OBJECTS
@@ -615,7 +615,7 @@ class RepositoryIcuLicenseFile extends RepositoryLicenseFile {
r' # ---------COPYING\.libtabe ---- BEGIN--------------------\n'
r' #\n'
r' # +/\*\n'
r'( # +\* Copyrighy (?:.|\n)+?)\n' // yeah, that's a typo in the license. // 4
r'( # +\* Copyright (?:.|\n)+?)\n' // 4
r' # +\*/\n'
r' #\n'
r' # +/\*\n'
@@ -642,7 +642,11 @@ class RepositoryIcuLicenseFile extends RepositoryLicenseFile {
r'( # +Copyright(?:.|\n)+?)\n' // 9
r'\n'
r' *5\. Time Zone Database\n'
r'((?:.|\n)+)$',
r'((?:.|\n)+)\n' // 10
r'\n'
r' *6\. Google double-conversion\n'
r'\n'
r'(Copyright(?:.|\n)+)\n$', // 11
multiLine: true,
caseSensitive: false
);
@@ -664,8 +668,8 @@ class RepositoryIcuLicenseFile extends RepositoryLicenseFile {
final Match match = _pattern.firstMatch(io.readString());
if (match == null)
throw 'could not parse ICU license file';
assert(match.groupCount == 10);
if (match.group(10).contains(copyrightMentionPattern))
assert(match.groupCount == 11);
if (match.group(10).contains(copyrightMentionPattern) || match.group(11).contains('7.'))
throw 'unexpected copyright in ICU license file';
final List<License> result = <License>[
new License.fromBodyAndType(_dewrap(match.group(1)), LicenseType.unknown, origin: io.fullName),
@@ -677,6 +681,7 @@ class RepositoryIcuLicenseFile extends RepositoryLicenseFile {
new License.fromBodyAndType(_dewrap(match.group(7)), LicenseType.unknown, origin: io.fullName),
new License.fromBodyAndType(_dewrap(match.group(8)), LicenseType.bsd, origin: io.fullName),
new License.fromBodyAndType(_dewrap(match.group(9)), LicenseType.bsd, origin: io.fullName),
new License.fromBodyAndType(_dewrap(match.group(11)), LicenseType.bsd, origin: io.fullName),
];
return result;
}
@@ -1716,6 +1721,16 @@ class RepositoryIcuDirectory extends RepositoryDirectory {
}
}
class RepositoryHarfbuzzDirectory extends RepositoryDirectory {
RepositoryHarfbuzzDirectory(RepositoryDirectory parent, fs.Directory io) : super(parent, io);
@override
bool shouldRecurse(fs.IoNode entry) {
return entry.name != 'util' // utils are command line tools that do not end up in the binary
&& super.shouldRecurse(entry);
}
}
class RepositoryJSR305Directory extends RepositoryDirectory {
RepositoryJSR305Directory(RepositoryDirectory parent, fs.Directory io) : super(parent, io);
@@ -1942,6 +1957,8 @@ class RepositoryRootThirdPartyDirectory extends RepositoryGenericThirdPartyDirec
throw '//third_party/freetype-android is no longer part of this client: remove it';
if (entry.name == 'freetype2')
return new RepositoryFreetypeDirectory(this, entry);
if (entry.name == 'harfbuzz')
return new RepositoryHarfbuzzDirectory(this, entry);
if (entry.name == 'icu')
return new RepositoryIcuDirectory(this, entry);
if (entry.name == 'jsr-305')