[ios-blink] Enabled JPEG for ios-blink

MJPGToI420 and MJPGToNV12 are needed for successfully compiling
/m/c/v/m/sample_buffer_transformer_mac.cc on ios-blink port.

This CL enables JPEG support for ios-blink port of chromium.

Bug: 1411704
Change-Id: I2009b371a35fa881b9e95ad4fad22356992cef52
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4454847
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
Abhijeet Kandalkar 2023-04-20 19:00:05 +05:30 committed by libyuv LUCI CQ
parent aec27be648
commit 77c2121f7e

View File

@ -6,6 +6,7 @@
# in the file PATENTS. All contributing project authors may # in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree. # be found in the AUTHORS file in the root of the source tree.
import("//build/config/features.gni")
import("//testing/test.gni") import("//testing/test.gni")
import("libyuv.gni") import("libyuv.gni")
@ -150,7 +151,7 @@ static_library("libyuv_internal") {
configs += [ "//build/config/gcc:symbol_visibility_default" ] configs += [ "//build/config/gcc:symbol_visibility_default" ]
} }
if (!is_ios && !libyuv_disable_jpeg) { if ((!is_ios || use_blink) && !libyuv_disable_jpeg) {
defines += [ "HAVE_JPEG" ] defines += [ "HAVE_JPEG" ]
# Needed to pull in libjpeg headers. Can't add //third_party:jpeg to deps # Needed to pull in libjpeg headers. Can't add //third_party:jpeg to deps