Home | History | Annotate | Download | only in mm-jpeg-interface
      1 OLD_LOCAL_PATH := $(LOCAL_PATH)
      2 LOCAL_PATH := $(call my-dir)
      3 
      4 include $(LOCAL_PATH)/../../../common.mk
      5 include $(CLEAR_VARS)
      6 
      7 LOCAL_32_BIT_ONLY := true
      8 LOCAL_CFLAGS+= -D_ANDROID_
      9 
     10 LOCAL_C_INCLUDES+= $(kernel_includes)
     11 LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
     12 
     13 LOCAL_C_INCLUDES += \
     14     frameworks/native/include/media/openmax \
     15     $(LOCAL_PATH)/inc \
     16     $(LOCAL_PATH)/../common \
     17     $(LOCAL_PATH)/../../../ \
     18     $(LOCAL_PATH)/../../../mm-image-codec/qexif \
     19     $(LOCAL_PATH)/../../../mm-image-codec/qomx_core
     20 
     21 ifeq ($(strip $(TARGET_USES_ION)),true)
     22     LOCAL_CFLAGS += -DUSE_ION
     23 endif
     24 
     25 ifneq (,$(filter  msm8610,$(TARGET_BOARD_PLATFORM)))
     26     LOCAL_CFLAGS+= -DLOAD_ADSP_RPC_LIB
     27 endif
     28 
     29 ifneq (,$(filter  msm8974,$(TARGET_BOARD_PLATFORM)))
     30     LOCAL_CFLAGS+= -DMM_JPEG_CONCURRENT_SESSIONS_COUNT=2
     31 else
     32     LOCAL_CFLAGS+= -DMM_JPEG_CONCURRENT_SESSIONS_COUNT=1
     33 endif
     34 
     35 LOCAL_SRC_FILES := \
     36     src/mm_jpeg_queue.c \
     37     src/mm_jpeg_exif.c \
     38     src/mm_jpeg.c \
     39     src/mm_jpeg_interface.c \
     40     src/mm_jpeg_ionbuf.c \
     41     src/mm_jpegdec_interface.c \
     42     src/mm_jpegdec.c
     43 
     44 LOCAL_MODULE           := libmmjpeg_interface
     45 LOCAL_SHARED_LIBRARIES := libdl libcutils liblog libqomx_core
     46 LOCAL_MODULE_TAGS := optional
     47 
     48 LOCAL_32_BIT_ONLY := true
     49 include $(BUILD_SHARED_LIBRARY)
     50 
     51 LOCAL_PATH := $(OLD_LOCAL_PATH)
     52