aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Chuang <jchuang@google.com>2015-12-25 18:20:13 +0800
committerJustin Chuang <jchuang@google.com>2016-01-12 10:55:28 +0800
commitbb74e3e19b98261031216de8cadcef34cccd9e4a (patch)
tree5734dc81363847d09216d23b473c10890ee398c0
parentbdab24b5c8c329150f7622678077f2c936c2a07e (diff)
downloadlibyuv-nougat-mr0.5-release.tar.gz
This adds MJPEG support in libyuv_static, but it also adds dependency of libjpeg for modules linked with libyuv_static. BUG: 26318505 Change-Id: I98c70bda5767dc5261268b72986b3a597c28d1be
-rw-r--r--Android.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index 6fc2ec28..212c4fc6 100644
--- a/Android.mk
+++ b/Android.mk
@@ -10,6 +10,7 @@ common_SRC_FILES := \
files/source/convert_from.cc \
files/source/cpu_id.cc \
files/source/format_conversion.cc \
+ files/source/mjpeg_decoder.cc \
files/source/planar_functions.cc \
files/source/rotate.cc \
files/source/rotate_argb.cc \
@@ -19,7 +20,7 @@ common_SRC_FILES := \
files/source/scale_argb.cc \
files/source/video_common.cc
-common_CFLAGS := -Wall -fexceptions
+common_CFLAGS := -Wall -fexceptions -DHAVE_JPEG
common_C_INCLUDES = $(LOCAL_PATH)/files/include
@@ -37,6 +38,7 @@ LOCAL_NDK_STL_VARIANT := stlport_static
LOCAL_SRC_FILES := $(common_SRC_FILES)
LOCAL_CFLAGS += $(common_CFLAGS)
LOCAL_C_INCLUDES += $(common_C_INCLUDES)
+LOCAL_SHARED_LIBRARIES := libjpeg
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/files/include