1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE:= logd 6 7LOCAL_INIT_RC := logd.rc 8 9LOCAL_SRC_FILES := \ 10 main.cpp \ 11 LogCommand.cpp \ 12 CommandListener.cpp \ 13 LogListener.cpp \ 14 LogReader.cpp \ 15 FlushCommand.cpp \ 16 LogBuffer.cpp \ 17 LogBufferElement.cpp \ 18 LogTimes.cpp \ 19 LogStatistics.cpp \ 20 LogWhiteBlackList.cpp \ 21 libaudit.c \ 22 LogAudit.cpp \ 23 LogKlog.cpp \ 24 event.logtags 25 26LOCAL_SHARED_LIBRARIES := \ 27 libsysutils \ 28 liblog \ 29 libcutils \ 30 libbase \ 31 libpackagelistparser 32 33# This is what we want to do: 34# event_logtags = $(shell \ 35# sed -n \ 36# "s/^\([0-9]*\)[ \t]*$1[ \t].*/-D`echo $1 | tr a-z A-Z`_LOG_TAG=\1/p" \ 37# $(LOCAL_PATH)/$2/event.logtags) 38# event_flag := $(call event_logtags,auditd) 39# event_flag += $(call event_logtags,logd) 40# so make sure we do not regret hard-coding it as follows: 41event_flag := -DAUDITD_LOG_TAG=1003 -DLOGD_LOG_TAG=1004 42 43LOCAL_CFLAGS := -Werror $(event_flag) 44 45include $(BUILD_EXECUTABLE) 46 47include $(call first-makefiles-under,$(LOCAL_PATH)) 48