Add third_party/libpng repository and roll buildroot (flutter/engine#24616)
This commit is contained in:
5
DEPS
5
DEPS
@@ -98,7 +98,7 @@ allowed_hosts = [
|
||||
]
|
||||
|
||||
deps = {
|
||||
'src': 'https://github.com/flutter/buildroot.git' + '@' + '47043991a50e1cfda66766009885197a05bb29f1',
|
||||
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'd05290fdfb0b8d2aad3c60bf0b4a76f368616452',
|
||||
|
||||
# Fuchsia compatibility
|
||||
#
|
||||
@@ -364,6 +364,9 @@ deps = {
|
||||
'src/third_party/libjpeg-turbo':
|
||||
Var('fuchsia_git') + '/third_party/libjpeg-turbo' + '@' + '0fb821f3b2e570b2783a94ccd9a2fb1f4916ae9f',
|
||||
|
||||
'src/third_party/libpng':
|
||||
Var('flutter_git') + '/third_party/libpng' + '@' + 'f46faec244dbda5f1d2a5bc370cf83125d6ffab1',
|
||||
|
||||
'src/third_party/libwebp':
|
||||
Var('chromium_git') + '/webm/libwebp.git' + '@' + '0.6.0',
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Signature: 697bebe56b09b4db22b6b675536566df
|
||||
Signature: f2b15cda839d356d1d2a906e432770d6
|
||||
|
||||
|
||||
@@ -318,9 +318,8 @@ class _RepositoryLibPngLicenseFile extends _RepositorySingleLicenseFile {
|
||||
|
||||
static void _verifyLicense(fs.TextFile io) {
|
||||
final String contents = io.readString();
|
||||
if (!contents.contains('COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:') ||
|
||||
!contents.contains('png') ||
|
||||
!contents.contains('END OF COPYRIGHT NOTICE, DISCLAIMER, and LICENSE.'))
|
||||
if (!contents.contains(RegExp('COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:?')) ||
|
||||
!contents.contains('png'))
|
||||
throw 'unexpected libpng license file contents:\n----8<----\n$contents\n----<8----';
|
||||
}
|
||||
|
||||
@@ -1628,6 +1627,24 @@ class _RepositoryLibPngDirectory extends _RepositoryDirectory {
|
||||
return _RepositoryLibPngLicenseFile(this, entry);
|
||||
return super.createFile(entry);
|
||||
}
|
||||
|
||||
static final RegExp skipFileTypes = RegExp(r'\.(?:jpg|png|dfa|in|3|5)$');
|
||||
|
||||
@override
|
||||
bool shouldRecurse(fs.IoNode entry) {
|
||||
return entry.name != 'contrib' // not linked in
|
||||
&& entry.name != 'mips' // not linked in
|
||||
&& entry.name != 'powerpc' // not linked in
|
||||
&& entry.name != 'projects' // not linked in
|
||||
&& entry.name != 'scripts' // not linked in
|
||||
&& entry.name != 'tests' // not linked in
|
||||
&& entry.name != 'ANNOUNCE'
|
||||
&& entry.name != 'CHANGES'
|
||||
&& entry.name != 'TODO'
|
||||
&& entry.name != 'TRADEMARK'
|
||||
&& !entry.name.contains(skipFileTypes)
|
||||
&& super.shouldRecurse(entry);
|
||||
}
|
||||
}
|
||||
|
||||
class _RepositoryLibWebpDirectory extends _RepositoryDirectory {
|
||||
|
||||
@@ -91,6 +91,7 @@ final List<RegExp> copyrightStatementPatterns = <RegExp>[
|
||||
RegExp(r'^Based on .+, written by .+, [0-9]+\.$', caseSensitive: false),
|
||||
RegExp(r'^(?:Based on the )?x86 SIMD extension for IJG JPEG library(?: - version [0-9.]+|,)?$'),
|
||||
RegExp(r'^This software originally derived from .+\.$'),
|
||||
RegExp(r'^Derived from [a-z._/]+$'),
|
||||
RegExp(r'^Derived from .+, which was$'),
|
||||
RegExp(r'^ *This is part of .+, a .+ library\.$'),
|
||||
RegExp(r'^This file is part of [^ ]+\.$'),
|
||||
|
||||
Reference in New Issue
Block a user