Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ vars = {
# https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/goma/client
'goma_version': ' git_revision:41b3bcb64014144a844153fd5588c36411fffb56',

'reclient_version': 'git_revision:f61c232b70bc425f0b562480312b114c444d460d',
'reclient_version': 'git_revision:2c9285bdffcfd1b21afb028d57494ff78761af81',

'gcloud_version': 'version:[email protected]',

Expand Down Expand Up @@ -656,7 +656,7 @@ deps = {
Var('flutter_git') + '/third_party/libjpeg-turbo' + '@' + '0fb821f3b2e570b2783a94ccd9a2fb1f4916ae9f',

'src/flutter/third_party/libpng':
Var('flutter_git') + '/third_party/libpng' + '@' + '9187b6e12756317f6d44fc669ac11dfc262bd192',
Var('flutter_git') + '/third_party/libpng' + '@' + 'de36b892e921c684ef718fec24739ae9bb49c977',

'src/flutter/third_party/libwebp':
Var('chromium_git') + '/webm/libwebp.git' + '@' + 'ca332209cb5567c9b249c86788cb2dbf8847e760', # 1.3.2
Expand All @@ -665,7 +665,10 @@ deps = {
Var('skia_git') + '/external/github.com/google/wuffs-mirror-release-c.git' + '@' + '600cd96cf47788ee3a74b40a6028b035c9fd6a61',

'src/third_party/zlib':
Var('chromium_git') + '/chromium/src/third_party/zlib.git' + '@' + '14dd4c4455602c9b71a1a89b5cafd1f4030d2e3f',
Var('chromium_git') + '/chromium/src/third_party/zlib.git' + '@' + '7d77fb7fd66d8a5640618ad32c71fdeb7d3e02df',

'src/flutter/third_party/cpu_features/src':
Var('chromium_git') + '/external/github.com/google/cpu_features.git' + '@' + '936b9ab5515dead115606559502e3864958f7f6e',

'src/flutter/third_party/inja':
Var('flutter_git') + '/third_party/inja' + '@' + '88bd6112575a80d004e551c98cf956f88ff4d445',
Expand Down
2 changes: 1 addition & 1 deletion build/secondary/flutter/third_party/libwebp/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ source_set("libwebp") {
deps = [ ":libwebp_sse41" ]

if (is_android) {
deps += [ "//third_party/cpu-features" ]
deps += [ "//third_party/cpu_features:ndk_compat" ]
}

configs += [ ":libwebp_defines" ]
Expand Down
7 changes: 7 additions & 0 deletions build/secondary/third_party/cpu_features/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

group("ndk_compat") {
public_deps = [ "//flutter/third_party/cpu_features:ndk_compat" ]
}
Binary file modified shell/common/fixtures/shelltest_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions third_party/cpu_features/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

config("cpu_features_config") {
cflags = [ "-Wno-unused-function" ]
defines = [
"STACK_LINE_READER_BUFFER_SIZE=1024",
"HAVE_STRONG_GETAUXVAL",
]
include_dirs = [ "src/include" ]
}

config("ndk_compat_headers") {
include_dirs = [ "src/ndk_compat" ]
}

source_set("cpuinfo") {
sources = [
"src/src/copy.inl",
"src/src/define_introspection.inl",
"src/src/define_introspection_and_hwcaps.inl",
"src/src/equals.inl",
"src/src/filesystem.c",
"src/src/hwcaps.c",
"src/src/stack_line_reader.c",
"src/src/string_view.c",
]
if (current_cpu == "x86" || current_cpu == "x64") {
sources += [
"src/src/impl_x86__base_implementation.inl",
"src/src/impl_x86_freebsd.c",
"src/src/impl_x86_linux_or_android.c",
"src/src/impl_x86_macos.c",
"src/src/impl_x86_windows.c",
]
} else if (current_cpu == "arm") {
sources += [ "src/src/impl_arm_linux_or_android.c" ]
} else if (current_cpu == "arm64") {
sources += [ "src/src/impl_aarch64_linux_or_android.c" ]
} else if (current_cpu == "mips") {
sources += [ "src/src/impl_mips_linux_or_android.c" ]
} else if (current_cpu == "ppc") {
sources += [ "src/src/impl_ppc_linux.c" ]
} else if (current_cpu == "riscv64") {
sources += [ "src/src/impl_riscv_linux.c" ]
} else {
error("Missing definition for architecture: $current_cpu")
}
configs += [ ":cpu_features_config" ]
}

source_set("ndk_compat") {
sources = [
"src/ndk_compat/cpu-features.c",
"src/ndk_compat/cpu-features.h",
]
configs += [ ":cpu_features_config" ]
public_configs = [ ":ndk_compat_headers" ]
deps = [ ":cpuinfo" ]
}