96e11b5bc4
Also add ability to do abbreviated logging where only the first 4K bytes and last 4K bytes of output are added to the desginated log. Also update standalog logwrapper command to support the new options. Change-Id: Ia49cbe58479b9f9ed077498d6852e20b21287bad
34 lines
1.1 KiB
Makefile
34 lines
1.1 KiB
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
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
|
|
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
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
# ========================================================
|
|
# Executable
|
|
# ========================================================
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES:= logwrapper.c
|
|
LOCAL_MODULE := logwrapper
|
|
LOCAL_STATIC_LIBRARIES := liblog liblogwrap libcutils
|
|
include $(BUILD_EXECUTABLE)
|