1OLD_LOCAL_PATH := $(LOCAL_PATH)
2LOCAL_PATH:=$(call my-dir)
3include $(CLEAR_VARS)
4
5ifeq ($(TARGET_BOARD_PLATFORM),msm8960)
6LOCAL_CFLAGS:= \
7        -DAMSS_VERSION=$(AMSS_VERSION) \
8        $(mmcamera_debug_defines) \
9        $(mmcamera_debug_cflags) \
10        $(USE_SERVER_TREE)
11
12LOCAL_CFLAGS += -include $(TARGET_OUT_INTERMEDIATES)/include/mm-camera/camera_defs_i.h
13LOCAL_CFLAGS += -include $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/linux/msm_ion.h
14
15ifeq ($(strip $(TARGET_USES_ION)),true)
16LOCAL_CFLAGS += -DUSE_ION
17endif
18
19LOCAL_CFLAGS += -D_ANDROID_
20
21LOCAL_SRC_FILES:= \
22        src/mm_qcamera_main_menu.c \
23        src/mm_qcamera_display.c \
24        src/mm_qcamera_app.c \
25        src/mm_qcamera_snapshot.c \
26        src/mm_qcamera_video.c \
27        src/mm_qcamera_preview.c \
28        src/mm_qcamera_rdi.c \
29        src/mm_qcamera_unit_test.c \
30        src/mm_qcamera_dual_test.c \
31        src/mm_qcamera_pp.c
32
33LOCAL_C_INCLUDES:=$(LOCAL_PATH)/inc
34LOCAL_C_INCLUDES+= \
35        $(TARGET_OUT_INTERMEDIATES)/include/mm-still/jpeg \
36        $(TARGET_OUT_INTERMEDIATES)/include/mm-camera \
37        $(LOCAL_PATH)/../mm-camera-interface/inc \
38        $(LOCAL_PATH)/../mm-jpeg-interface/inc \
39        $(LOCAL_PATH)/../common \
40        $(LOCAL_PATH)/../../../ \
41
42LOCAL_C_INCLUDES+= $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/media
43LOCAL_C_INCLUDES+= $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
44LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
45
46ifeq ($(TARGET_BOARD_PLATFORM),msm8960)
47LOCAL_CFLAGS += -DCAMERA_ION_HEAP_ID=ION_CP_MM_HEAP_ID
48else
49LOCAL_CFLAGS += -DCAMERA_ION_HEAP_ID=ION_CAMERA_HEAP_ID
50endif
51
52LOCAL_SHARED_LIBRARIES:= \
53         libcutils libdl
54
55LOCAL_MODULE:= mm-qcamera-app
56
57LOCAL_MODULE_TAGS := optional
58
59include $(BUILD_EXECUTABLE)
60endif
61
62LOCAL_PATH := $(OLD_LOCAL_PATH)
63