2014-02-27 01:50:16 +08:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE:= logd
|
|
|
|
|
2015-08-15 04:02:51 +08:00
|
|
|
LOCAL_INIT_RC := logd.rc
|
|
|
|
|
2014-02-27 01:50:16 +08:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
main.cpp \
|
|
|
|
LogCommand.cpp \
|
|
|
|
CommandListener.cpp \
|
|
|
|
LogListener.cpp \
|
|
|
|
LogReader.cpp \
|
|
|
|
FlushCommand.cpp \
|
|
|
|
LogBuffer.cpp \
|
|
|
|
LogBufferElement.cpp \
|
2014-02-07 06:48:50 +08:00
|
|
|
LogTimes.cpp \
|
2014-02-12 04:29:31 +08:00
|
|
|
LogStatistics.cpp \
|
2013-02-08 08:45:26 +08:00
|
|
|
LogWhiteBlackList.cpp \
|
|
|
|
libaudit.c \
|
2014-05-15 03:37:22 +08:00
|
|
|
LogAudit.cpp \
|
2014-10-15 23:49:39 +08:00
|
|
|
LogKlog.cpp \
|
2014-05-15 03:37:22 +08:00
|
|
|
event.logtags
|
2014-02-27 01:50:16 +08:00
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libsysutils \
|
|
|
|
liblog \
|
2014-02-07 06:48:50 +08:00
|
|
|
libcutils \
|
2015-08-20 04:53:20 +08:00
|
|
|
libbase
|
2014-02-27 01:50:16 +08:00
|
|
|
|
2015-03-07 03:15:55 +08:00
|
|
|
# This is what we want to do:
|
|
|
|
# event_logtags = $(shell \
|
|
|
|
# sed -n \
|
|
|
|
# "s/^\([0-9]*\)[ \t]*$1[ \t].*/-D`echo $1 | tr a-z A-Z`_LOG_TAG=\1/p" \
|
|
|
|
# $(LOCAL_PATH)/$2/event.logtags)
|
|
|
|
# event_flag := $(call event_logtags,auditd)
|
2015-03-17 03:04:09 +08:00
|
|
|
# event_flag += $(call event_logtags,logd)
|
2015-03-07 03:15:55 +08:00
|
|
|
# so make sure we do not regret hard-coding it as follows:
|
2015-03-17 03:04:09 +08:00
|
|
|
event_flag := -DAUDITD_LOG_TAG=1003 -DLOGD_LOG_TAG=1004
|
2015-03-07 03:15:55 +08:00
|
|
|
|
|
|
|
LOCAL_CFLAGS := -Werror $(event_flag)
|
2014-02-27 01:50:16 +08:00
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
2014-03-01 05:44:12 +08:00
|
|
|
|
2015-05-27 05:57:13 +08:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := logpersist.start
|
|
|
|
LOCAL_MODULE_TAGS := debug
|
|
|
|
LOCAL_MODULE_CLASS := EXECUTABLES
|
|
|
|
LOCAL_MODULE_PATH := $(bin_dir)
|
|
|
|
LOCAL_SRC_FILES := logpersist
|
|
|
|
ALL_TOOLS := logpersist.start logpersist.stop logpersist.cat
|
|
|
|
LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(filter-out $(LOCAL_MODULE),$(ALL_TOOLS)),ln -sf $(LOCAL_MODULE) $(TARGET_OUT)/bin/$(t);)
|
|
|
|
include $(BUILD_PREBUILT)
|
|
|
|
|
2014-03-01 05:44:12 +08:00
|
|
|
include $(call first-makefiles-under,$(LOCAL_PATH))
|