2009-03-04 11:32:55 +08:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
2013-01-11 07:21:18 +08:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
# Static library
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := liblogwrap
|
|
|
|
LOCAL_SRC_FILES := logwrap.c
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog
|
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
2014-05-01 00:04:25 +08:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2013-01-11 07:21:18 +08:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
# Shared library
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := liblogwrap
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := liblogwrap
|
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
2014-05-01 00:04:25 +08:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2013-01-11 07:21:18 +08:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
# Executable
|
|
|
|
# ========================================================
|
2009-03-04 11:32:55 +08:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= logwrapper.c
|
|
|
|
LOCAL_MODULE := logwrapper
|
2013-04-04 04:45:10 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES := liblog liblogwrap libcutils
|
2014-05-01 00:04:25 +08:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2009-03-04 11:32:55 +08:00
|
|
|
include $(BUILD_EXECUTABLE)
|