LOCAL_PATH:= $(call my-dir) LOCAL_DIR_PATH:= $(call my-dir) include $(CLEAR_VARS) MM_CAM_FILES:= \ mm_camera_interface2.c \ mm_camera_stream.c \ mm_camera_channel.c \ mm_camera.c \ mm_camera_poll_thread.c \ mm_camera_notify.c \ mm_camera_sock.c \ mm_camera_helper.c \ mm_omx_jpeg_encoder.c LOCAL_CFLAGS+= -D_ANDROID_ LOCAL_COPY_HEADERS_TO := mm-camera-interface LOCAL_COPY_HEADERS += mm_camera_interface2.h LOCAL_COPY_HEADERS += mm_omx_jpeg_encoder.h LOCAL_C_INCLUDES+= $(LOCAL_PATH)/.. LOCAL_C_INCLUDES+= $(LOCAL_PATH)/../inc LOCAL_C_INCLUDES+= hardware/qcom/media/mm-core/inc LOCAL_CFLAGS += -include bionic/libc/include/sys/socket.h LOCAL_CFLAGS += -include bionic/libc/include/sys/un.h LOCAL_SRC_FILES := $(MM_CAM_FILES) LOCAL_MODULE := libmmcamera_interface2 LOCAL_PRELINK_MODULE := false LOCAL_SHARED_LIBRARIES := libdl libcutils liblog LOCAL_MODULE_TAGS := optional include $(BUILD_SHARED_LIBRARY)