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 := $(BOARD_QTI_CAMERA_32BIT_ONLY) 8 LOCAL_CFLAGS+= -D_ANDROID_ -DQCAMERA_REDEFINE_LOG 9 10 LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter 11 12 LOCAL_C_INCLUDES+= $(kernel_includes) 13 LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 14 15 LOCAL_C_INCLUDES += \ 16 frameworks/native/include/media/openmax \ 17 $(LOCAL_PATH)/inc \ 18 $(LOCAL_PATH)/../common \ 19 $(LOCAL_PATH)/../mm-camera-interface/inc \ 20 $(LOCAL_PATH)/../../.. \ 21 $(LOCAL_PATH)/../../../mm-image-codec/qexif \ 22 $(LOCAL_PATH)/../../../mm-image-codec/qomx_core 23 24 ifeq ($(strip $(TARGET_USES_ION)),true) 25 LOCAL_CFLAGS += -DUSE_ION 26 endif 27 28 ifneq (,$(filter msm8610,$(TARGET_BOARD_PLATFORM))) 29 LOCAL_CFLAGS+= -DLOAD_ADSP_RPC_LIB 30 endif 31 32 DUAL_JPEG_TARGET_LIST := msm8974 33 DUAL_JPEG_TARGET_LIST += msm8994 34 35 ifneq (,$(filter $(DUAL_JPEG_TARGET_LIST),$(TARGET_BOARD_PLATFORM))) 36 LOCAL_CFLAGS+= -DMM_JPEG_CONCURRENT_SESSIONS_COUNT=2 37 else 38 LOCAL_CFLAGS+= -DMM_JPEG_CONCURRENT_SESSIONS_COUNT=1 39 endif 40 41 JPEG_PIPELINE_TARGET_LIST := msm8994 42 JPEG_PIPELINE_TARGET_LIST += msm8992 43 JPEG_PIPELINE_TARGET_LIST += msm8996 44 JPEG_PIPELINE_TARGET_LIST += msmcobalt 45 46 ifneq (,$(filter $(JPEG_PIPELINE_TARGET_LIST),$(TARGET_BOARD_PLATFORM))) 47 LOCAL_CFLAGS+= -DMM_JPEG_USE_PIPELINE 48 endif 49 50 # System header file path prefix 51 LOCAL_CFLAGS += -DSYSTEM_HEADER_PREFIX=sys 52 53 LOCAL_SRC_FILES := \ 54 src/mm_jpeg_queue.c \ 55 src/mm_jpeg_exif.c \ 56 src/mm_jpeg.c \ 57 src/mm_jpeg_interface.c \ 58 src/mm_jpeg_ionbuf.c \ 59 src/mm_jpegdec_interface.c \ 60 src/mm_jpegdec.c \ 61 src/mm_jpeg_mpo_composer.c 62 63 LOCAL_MODULE := libmmjpeg_interface 64 LOCAL_PRELINK_MODULE := false 65 LOCAL_SHARED_LIBRARIES := libdl libcutils liblog libqomx_core libmmcamera_interface 66 LOCAL_MODULE_TAGS := optional 67 68 LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY) 69 include $(BUILD_SHARED_LIBRARY) 70 71 LOCAL_PATH := $(OLD_LOCAL_PATH) 72