1#ifeq ($(TARGET_BOARD_PLATFORM),msm8960)
2OLD_LOCAL_PATH := $(LOCAL_PATH)
3LOCAL_PATH := $(call my-dir)
4
5include $(CLEAR_VARS)
6
7MM_CAM_FILES := \
8        src/mm_camera_interface.c \
9        src/mm_camera_stream.c \
10        src/mm_camera_channel.c \
11        src/mm_camera.c \
12        src/mm_camera_thread.c \
13        src/mm_camera_data.c \
14        src/mm_camera_sock.c \
15        src/mm_camera_helper.c
16
17ifeq ($(strip $(TARGET_USES_ION)),true)
18    LOCAL_CFLAGS += -DUSE_ION
19endif
20
21LOCAL_CFLAGS += -D_ANDROID_
22LOCAL_COPY_HEADERS_TO := mm-camera-interface
23LOCAL_COPY_HEADERS := inc/mm_camera_interface.h
24LOCAL_COPY_HEADERS += ../common/cam_list.h
25
26LOCAL_C_INCLUDES := \
27    $(LOCAL_PATH)/inc \
28    $(LOCAL_PATH)/../common \
29    $(LOCAL_PATH)/../../../ \
30    $(TARGET_OUT_HEADERS)/mm-camera \
31    $(TARGET_OUT_HEADERS)/mm-camera/common
32
33LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
34LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/media
35LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
36
37# (BEGIN) Need to remove later once dependency on jpeg removed
38LOCAL_C_INCLUDES += \
39    $(TARGET_OUT_HEADERS)/mm-still \
40    $(TARGET_OUT_HEADERS)/mm-still/jpeg \
41    $(TARGET_OUT_HEADERS)/mm-core/omxcore \
42    $(TARGET_OUT_HEADERS)/mm-still/mm-omx
43# (END) Need to remove later once dependency on jpeg removed
44
45LOCAL_C_INCLUDES+= hardware/qcom/media/msm8974/mm-core/inc
46LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/socket.h
47LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/un.h
48
49LOCAL_SRC_FILES := $(MM_CAM_FILES)
50
51LOCAL_MODULE           := libmmcamera_interface
52LOCAL_SHARED_LIBRARIES := libdl libcutils liblog
53LOCAL_MODULE_TAGS := optional
54
55# (BEGIN) Need to remove later once dependency on jpeg removed
56# LOCAL_SHARED_LIBRARIES += libmmjpeg_interface
57# (END) Need to remove later once dependency on jpeg removed
58
59include $(BUILD_SHARED_LIBRARY)
60
61LOCAL_PATH := $(OLD_LOCAL_PATH)
62#endif
63