aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-07-12 16:56:09 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-07-12 16:56:09 +0000
commita9020c06a34b341c5badf22ff6799293e728bd7b (patch)
tree396a68a9085c6856fdb7978bf36c005eb7ba40ab
parent69955c0d7f977cb15a92f95949a9f2e9a8fcc641 (diff)
parent3684fd335c6c10e46298f913155a8f8e3472c86d (diff)
downloadlibjpeg-turbo-a9020c06a34b341c5badf22ff6799293e728bd7b.tar.gz
Upgrade libjpeg-turbo to b7bef8c05b7cdb1a038ae271a2c2b6647af4c879 am: cbcfc78b05 am: a14c12e1b4 am: f9123f71cf am: 3684fd335c
Original change: https://android-review.googlesource.com/c/platform/external/libjpeg-turbo/+/1761049 Change-Id: Ic05453c8caf16e1660b9ba812bfc1de43bdc85a6
-rw-r--r--BUILD.gn49
-rw-r--r--METADATA6
2 files changed, 19 insertions, 36 deletions
diff --git a/BUILD.gn b/BUILD.gn
index d9802996..d5663400 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -137,22 +137,15 @@ if (current_cpu == "x86" || current_cpu == "x64") {
static_library("simd") {
include_dirs = [ "." ]
- deps = [
- ":libjpeg_headers",
- ]
+ deps = [ ":libjpeg_headers" ]
if (current_cpu == "x86") {
deps += [ ":simd_asm" ]
- sources = [
- "simd/i386/jsimd.c",
- ]
+ sources = [ "simd/i386/jsimd.c" ]
} else if (current_cpu == "x64") {
deps += [ ":simd_asm" ]
- sources = [
- "simd/x86_64/jsimd.c",
- ]
- } else if ((current_cpu == "arm" || current_cpu == "arm64") &&
- arm_use_neon) {
+ sources = [ "simd/x86_64/jsimd.c" ]
+ } else if ((current_cpu == "arm" || current_cpu == "arm64") && arm_use_neon) {
include_dirs += [ "simd/arm/" ]
sources = [
@@ -175,23 +168,19 @@ static_library("simd") {
"simd/arm/aarch32/jchuff-neon.c",
"simd/arm/aarch32/jsimd.c",
]
- } else if (current_cpu == "arm64"){
+ } else if (current_cpu == "arm64") {
sources += [
"simd/arm/aarch64/jchuff-neon.c",
"simd/arm/aarch64/jsimd.c",
]
}
- defines = [
- "NEON_INTRINSICS"
- ]
+ defines = [ "NEON_INTRINSICS" ]
configs -= [ "//build/config/compiler:default_optimization" ]
configs += [ "//build/config/compiler:optimize_speed" ]
} else {
- sources = [
- "jsimd_none.c",
- ]
+ sources = [ "jsimd_none.c" ]
}
if (is_win) {
@@ -264,9 +253,7 @@ static_library("libjpeg") {
configs += [ ":libjpeg_config" ]
public_configs = [ ":libjpeg_config" ]
- public_deps = [
- ":libjpeg_headers",
- ]
+ public_deps = [ ":libjpeg_headers" ]
# MemorySanitizer doesn't support assembly code, so keep it disabled in x86
# and x64 MSan builds for now.
@@ -276,19 +263,19 @@ static_library("libjpeg") {
public_deps += [ ":simd" ]
if ((current_cpu == "arm" || current_cpu == "arm64") && arm_use_neon) {
- defines += [ "NEON_INTRINSICS", ]
+ defines += [ "NEON_INTRINSICS" ]
}
}
}
static_library("turbojpeg") {
sources = [
- "turbojpeg.c",
- "transupp.c",
"jdatadst-tj.c",
"jdatasrc-tj.c",
"rdbmp.c",
"rdppm.c",
+ "transupp.c",
+ "turbojpeg.c",
"wrbmp.c",
"wrppm.c",
]
@@ -302,9 +289,7 @@ static_library("turbojpeg") {
configs += [ ":libjpeg_config" ]
public_configs = [ ":libjpeg_config" ]
- public_deps = [
- ":libjpeg",
- ]
+ public_deps = [ ":libjpeg" ]
}
if (build_with_chromium) {
@@ -326,12 +311,12 @@ if (build_with_chromium) {
"jpegtran.c",
"md5/md5.c",
"md5/md5hl.c",
- "tjbench.c",
- "tjunittest.c",
- "tjutil.c",
"rdcolmap.c",
"rdgif.c",
"rdswitch.c",
+ "tjbench.c",
+ "tjunittest.c",
+ "tjutil.c",
]
deps = [
@@ -341,9 +326,7 @@ if (build_with_chromium) {
"//testing/gtest:gtest_main",
]
- data = [
- "testimages/"
- ]
+ data = [ "testimages/" ]
defines = [
"GTEST",
diff --git a/METADATA b/METADATA
index f8f0c4c6..9623a961 100644
--- a/METADATA
+++ b/METADATA
@@ -5,11 +5,11 @@ third_party {
type: GIT
value: "https://chromium.googlesource.com/chromium/deps/libjpeg_turbo"
}
- version: "764c5fca09cb558f88f3145d67b705f92ffee2d9"
+ version: "b7bef8c05b7cdb1a038ae271a2c2b6647af4c879"
license_type: NOTICE
last_upgrade_date {
year: 2021
- month: 2
- day: 9
+ month: 7
+ day: 8
}
}