• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OLD_LOCAL_PATH := $(LOCAL_PATH)
2LOCAL_PATH := $(call my-dir)
3
4include $(LOCAL_PATH)/../../../common.mk
5include $(CLEAR_VARS)
6
7LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
8LOCAL_CFLAGS+= -D_ANDROID_ -DQCAMERA_REDEFINE_LOG
9
10LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
11
12LOCAL_C_INCLUDES+= $(kernel_includes)
13LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
14
15LIB2D_ROTATION=false
16
17LOCAL_C_INCLUDES += \
18    frameworks/native/include/media/openmax \
19    $(LOCAL_PATH)/inc \
20    $(LOCAL_PATH)/../common \
21    $(LOCAL_PATH)/../mm-camera-interface/inc \
22    $(LOCAL_PATH)/../../.. \
23    $(LOCAL_PATH)/../../../mm-image-codec/qexif \
24    $(LOCAL_PATH)/../../../mm-image-codec/qomx_core
25
26ifeq ($(strip $(LIB2D_ROTATION)),true)
27    LOCAL_C_INCLUDES += $(LOCAL_PATH)/../mm-lib2d-interface/inc
28    LOCAL_CFLAGS += -DLIB2D_ROTATION_ENABLE
29endif
30
31
32ifeq ($(strip $(TARGET_USES_ION)),true)
33    LOCAL_CFLAGS += -DUSE_ION
34endif
35
36ifneq (,$(filter  msm8610,$(TARGET_BOARD_PLATFORM)))
37    LOCAL_CFLAGS+= -DLOAD_ADSP_RPC_LIB
38endif
39
40DUAL_JPEG_TARGET_LIST := msm8974
41DUAL_JPEG_TARGET_LIST += msm8994
42
43ifneq (,$(filter  $(DUAL_JPEG_TARGET_LIST),$(TARGET_BOARD_PLATFORM)))
44    LOCAL_CFLAGS+= -DMM_JPEG_CONCURRENT_SESSIONS_COUNT=2
45else
46    LOCAL_CFLAGS+= -DMM_JPEG_CONCURRENT_SESSIONS_COUNT=1
47endif
48
49JPEG_PIPELINE_TARGET_LIST := msm8994
50JPEG_PIPELINE_TARGET_LIST += msm8992
51JPEG_PIPELINE_TARGET_LIST += msm8996
52JPEG_PIPELINE_TARGET_LIST += msm8998
53JPEG_PIPELINE_TARGET_LIST += sdm660
54JPEG_PIPELINE_TARGET_LIST += msmcobalt
55
56ifneq (,$(filter  $(JPEG_PIPELINE_TARGET_LIST),$(TARGET_BOARD_PLATFORM)))
57    LOCAL_CFLAGS+= -DMM_JPEG_USE_PIPELINE
58endif
59
60# System header file path prefix
61LOCAL_CFLAGS += -DSYSTEM_HEADER_PREFIX=sys
62
63LOCAL_SRC_FILES := \
64    src/mm_jpeg_queue.c \
65    src/mm_jpeg_exif.c \
66    src/mm_jpeg.c \
67    src/mm_jpeg_interface.c \
68    src/mm_jpeg_ionbuf.c \
69    src/mm_jpegdec_interface.c \
70    src/mm_jpegdec.c \
71    src/mm_jpeg_mpo_composer.c
72
73LOCAL_MODULE           := libmmjpeg_interface
74LOCAL_LICENSE_KINDS    := SPDX-license-identifier-BSD
75LOCAL_LICENSE_CONDITIONS := notice
76LOCAL_PRELINK_MODULE   := false
77LOCAL_SHARED_LIBRARIES := libdl libcutils liblog libqomx_core libmmcamera_interface libutils
78ifeq ($(strip $(LIB2D_ROTATION)),true)
79    LOCAL_SHARED_LIBRARIES += libmmlib2d_interface
80endif
81LOCAL_MODULE_TAGS := optional
82LOCAL_VENDOR_MODULE := true
83
84LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
85include $(BUILD_SHARED_LIBRARY)
86
87LOCAL_PATH := $(OLD_LOCAL_PATH)
88