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