android_device_lenovo_karate/camera/QCamera2/stack/mm-jpeg-interface/Android.mk
Suman Mukherjee afb2b8c829 QCamera2: Added LOCAL_VENDOR_MODULE to set output path of the binaries
Replaced LOCAL_PROPRIETARY_MODULE with LOCAL_VENDOR_MODULE to set the
output vendor path for hal binaries and libraries

Change-Id: Ib04d80eabc0e17f3863e956db5f2378e426c0687
2018-07-07 07:47:01 +02:00

70 lines
1.9 KiB
Makefile

OLD_LOCAL_PATH := $(LOCAL_PATH)
LOCAL_PATH := $(call my-dir)
include $(LOCAL_PATH)/../../../common.mk
include $(CLEAR_VARS)
LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
LOCAL_CFLAGS+= -D_ANDROID_ -DQCAMERA_REDEFINE_LOG
LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
LOCAL_C_INCLUDES+= $(kernel_includes)
LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
LOCAL_C_INCLUDES += \
frameworks/native/include/media/openmax \
$(LOCAL_PATH)/inc \
$(LOCAL_PATH)/../common \
$(LOCAL_PATH)/../mm-camera-interface/inc \
$(LOCAL_PATH)/../../.. \
$(LOCAL_PATH)/../../../mm-image-codec/qexif \
$(LOCAL_PATH)/../../../mm-image-codec/qomx_core
ifeq ($(strip $(TARGET_USES_ION)),true)
LOCAL_CFLAGS += -DUSE_ION
endif
ifneq (,$(filter msm8610,$(TARGET_BOARD_PLATFORM)))
LOCAL_CFLAGS+= -DLOAD_ADSP_RPC_LIB
endif
DUAL_JPEG_TARGET_LIST := msm8974
DUAL_JPEG_TARGET_LIST += msm8994
ifneq (,$(filter $(DUAL_JPEG_TARGET_LIST),$(TARGET_BOARD_PLATFORM)))
LOCAL_CFLAGS+= -DMM_JPEG_CONCURRENT_SESSIONS_COUNT=2
else
LOCAL_CFLAGS+= -DMM_JPEG_CONCURRENT_SESSIONS_COUNT=1
endif
JPEG_PIPELINE_TARGET_LIST := msm8994
JPEG_PIPELINE_TARGET_LIST += msm8992
JPEG_PIPELINE_TARGET_LIST += msm8996
ifneq (,$(filter $(JPEG_PIPELINE_TARGET_LIST),$(TARGET_BOARD_PLATFORM)))
LOCAL_CFLAGS+= -DMM_JPEG_USE_PIPELINE
endif
# System header file path prefix
LOCAL_CFLAGS += -DSYSTEM_HEADER_PREFIX=sys
LOCAL_SRC_FILES := \
src/mm_jpeg_queue.c \
src/mm_jpeg_exif.c \
src/mm_jpeg.c \
src/mm_jpeg_interface.c \
src/mm_jpeg_ionbuf.c \
src/mm_jpegdec_interface.c \
src/mm_jpegdec.c \
src/mm_jpeg_mpo_composer.c
LOCAL_MODULE := libmmjpeg_interface
LOCAL_SHARED_LIBRARIES := libdl libcutils liblog libqomx_core libmmcamera_interface
LOCAL_MODULE_TAGS := optional
LOCAL_VENDOR_MODULE := true
LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
include $(BUILD_SHARED_LIBRARY)
LOCAL_PATH := $(OLD_LOCAL_PATH)