1 #ifeq ($(call is-board-platform,msm8960),true) 2 OLD_LOCAL_PATH := $(LOCAL_PATH) 3 LOCAL_PATH := $(call my-dir) 4 USE_BIONIC_HEADER:=true 5 6 include $(CLEAR_VARS) 7 8 MM_CAM_FILES := \ 9 src/mm_camera_interface.c \ 10 src/mm_camera_stream.c \ 11 src/mm_camera_channel.c \ 12 src/mm_camera.c \ 13 src/mm_camera_thread.c \ 14 src/mm_camera_data.c \ 15 src/mm_camera_sock.c \ 16 src/mm_camera_helper.c 17 18 LOCAL_CFLAGS += -D_ANDROID_ 19 LOCAL_COPY_HEADERS_TO := mm-camera-interface_badger 20 LOCAL_COPY_HEADERS := inc/mm_camera_interface.h 21 22 LOCAL_C_INCLUDES := \ 23 $(LOCAL_PATH)/inc \ 24 $(LOCAL_PATH)/../common \ 25 $(LOCAL_PATH)/../../../ 26 27 ifneq ($(strip $(USE_BIONIC_HEADER)),true) 28 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 29 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/media 30 LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 31 endif 32 33 LOCAL_C_INCLUDES+= hardware/qcom/media/mm-core/inc 34 LOCAL_CFLAGS += -include bionic/libc/include/sys/socket.h 35 LOCAL_CFLAGS += -include bionic/libc/include/sys/un.h 36 37 LOCAL_SRC_FILES := $(MM_CAM_FILES) 38 39 LOCAL_MODULE := libmmcamera_interface 40 LOCAL_PRELINK_MODULE := false 41 LOCAL_SHARED_LIBRARIES := libdl libcutils liblog 42 LOCAL_MODULE_TAGS := optional 43 44 include $(BUILD_SHARED_LIBRARY) 45 46 LOCAL_PATH := $(OLD_LOCAL_PATH) 47 #endif 48