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 LogTags.cpp \ 25 event.logtags 26 27LOCAL_SHARED_LIBRARIES := \ 28 libsysutils \ 29 liblog \ 30 libcutils \ 31 libbase \ 32 libpackagelistparser \ 33 libcap 34 35# This is what we want to do: 36# event_logtags = $(shell \ 37# sed -n \ 38# "s/^\([0-9]*\)[ \t]*$1[ \t].*/-D`echo $1 | tr a-z A-Z`_LOG_TAG=\1/p" \ 39# $(LOCAL_PATH)/$2/event.logtags) 40# event_flag := $(call event_logtags,auditd) 41# event_flag += $(call event_logtags,logd) 42# event_flag += $(call event_logtags,tag_def) 43# so make sure we do not regret hard-coding it as follows: 44event_flag := -DAUDITD_LOG_TAG=1003 -DCHATTY_LOG_TAG=1004 -DTAG_DEF_LOG_TAG=1005 45event_flag += -DLIBLOG_LOG_TAG=1006 46 47LOCAL_CFLAGS := -Werror $(event_flag) 48 49include $(BUILD_EXECUTABLE) 50 51include $(CLEAR_VARS) 52 53LOCAL_MODULE := logtagd.rc 54LOCAL_SRC_FILES := $(LOCAL_MODULE) 55LOCAL_MODULE_CLASS := ETC 56LOCAL_MODULE_TAGS := debug 57LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init 58 59include $(BUILD_PREBUILT) 60 61include $(call first-makefiles-under,$(LOCAL_PATH)) 62