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