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