blob: 6795a06ec73c10f969fd441c6b5a9020990406d4 [file] [log] [blame]
#ifeq ($(strip $(USE_INTEL_JPEGDEC)),true)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES += \
JPEGDecoder.c \
JPEGParser.c \
ImageDecoderTrace.c
LOCAL_C_INCLUDES += \
$(LOCAL_PATH) \
$(TOP)/external/jpeg \
$(TARGET_OUT_HEADERS)/libva
LOCAL_COPY_HEADERS_TO := libjpeg_hw
LOCAL_COPY_HEADERS := \
JPEGDecoder.h \
JPEGParser.h \
ImageDecoderTrace.h
LOCAL_SHARED_LIBRARIES += \
libcutils \
libva-android \
libva \
libva-tpi
LOCAL_LDLIBS += -lpthread
LOCAL_CFLAGS += -Wno-multichar
LOCAL_CFLAGS += -DUSE_INTEL_JPEGDEC
ifeq ($(JPEGDEC_USES_GEN),true)
LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)
LOCAL_CFLAGS += -DJPEGDEC_USES_GEN
endif
LOCAL_MODULE:= libjpeg_hw
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
#endif