1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5# ======================================================== 6# Static library 7# ======================================================== 8include $(CLEAR_VARS) 9LOCAL_MODULE := liblogwrap 10LOCAL_SRC_FILES := logwrap.c 11LOCAL_SHARED_LIBRARIES := libcutils liblog 12LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 13LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 14LOCAL_CFLAGS := -Werror 15include $(BUILD_STATIC_LIBRARY) 16 17# ======================================================== 18# Shared library 19# ======================================================== 20include $(CLEAR_VARS) 21LOCAL_MODULE := liblogwrap 22LOCAL_SHARED_LIBRARIES := libcutils liblog 23LOCAL_WHOLE_STATIC_LIBRARIES := liblogwrap 24LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 25LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 26LOCAL_CFLAGS := -Werror 27include $(BUILD_SHARED_LIBRARY) 28 29# ======================================================== 30# Executable 31# ======================================================== 32include $(CLEAR_VARS) 33LOCAL_SRC_FILES:= logwrapper.c 34LOCAL_MODULE := logwrapper 35LOCAL_STATIC_LIBRARIES := liblog liblogwrap libcutils 36LOCAL_CFLAGS := -Werror 37include $(BUILD_EXECUTABLE) 38