2014-02-27 01:50:16 +08:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE:= logd
|
|
|
|
|
2015-10-23 11:36:53 +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-01 04:10:36 +08:00
|
|
|
libbase \
|
2016-07-16 01:57:08 +08:00
|
|
|
libpackagelistparser \
|
2016-10-29 05:49:53 +08:00
|
|
|
libcap
|
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:
|
2016-07-16 01:19:16 +08:00
|
|
|
event_flag := -DAUDITD_LOG_TAG=1003 -DCHATTY_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
|
|
|
|
|
|
|
include $(call first-makefiles-under,$(LOCAL_PATH))
|