2014-02-26 18:50:16 +01:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE:= logd
|
|
|
|
|
2015-08-14 22:02:51 +02:00
|
|
|
LOCAL_INIT_RC := logd.rc
|
|
|
|
|
2014-02-26 18:50:16 +01:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
main.cpp \
|
|
|
|
LogCommand.cpp \
|
|
|
|
CommandListener.cpp \
|
|
|
|
LogListener.cpp \
|
|
|
|
LogReader.cpp \
|
|
|
|
FlushCommand.cpp \
|
|
|
|
LogBuffer.cpp \
|
|
|
|
LogBufferElement.cpp \
|
2014-02-06 23:48:50 +01:00
|
|
|
LogTimes.cpp \
|
2014-02-11 21:29:31 +01:00
|
|
|
LogStatistics.cpp \
|
2013-02-08 01:45:26 +01:00
|
|
|
LogWhiteBlackList.cpp \
|
|
|
|
libaudit.c \
|
2014-05-14 21:37:22 +02:00
|
|
|
LogAudit.cpp \
|
2014-10-15 17:49:39 +02:00
|
|
|
LogKlog.cpp \
|
2014-05-14 21:37:22 +02:00
|
|
|
event.logtags
|
2014-02-26 18:50:16 +01:00
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libsysutils \
|
|
|
|
liblog \
|
2014-02-06 23:48:50 +01:00
|
|
|
libcutils \
|
2015-08-19 22:53:20 +02:00
|
|
|
libbase
|
2014-02-26 18:50:16 +01:00
|
|
|
|
2015-03-06 20:15:55 +01: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-16 20:04:09 +01:00
|
|
|
# event_flag += $(call event_logtags,logd)
|
2015-03-06 20:15:55 +01:00
|
|
|
# so make sure we do not regret hard-coding it as follows:
|
2015-03-16 20:04:09 +01:00
|
|
|
event_flag := -DAUDITD_LOG_TAG=1003 -DLOGD_LOG_TAG=1004
|
2015-03-06 20:15:55 +01:00
|
|
|
|
|
|
|
LOCAL_CFLAGS := -Werror $(event_flag)
|
2014-02-26 18:50:16 +01:00
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
2014-02-28 22:44:12 +01:00
|
|
|
|
|
|
|
include $(call first-makefiles-under,$(LOCAL_PATH))
|