Mark Salyzyn | 0175b07 | 2014-02-26 09:50:16 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE:= logd |
| 6 | |
Andreas Gampe | f5852ce | 2015-10-22 20:36:53 -0700 | [diff] [blame] | 7 | LOCAL_INIT_RC := logd.rc |
| 8 | |
Mark Salyzyn | 0175b07 | 2014-02-26 09:50:16 -0800 | [diff] [blame] | 9 | LOCAL_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 \ |
Mark Salyzyn | 34facab | 2014-02-06 14:48:50 -0800 | [diff] [blame] | 18 | LogTimes.cpp \ |
Mark Salyzyn | dfa7a07 | 2014-02-11 12:29:31 -0800 | [diff] [blame] | 19 | LogStatistics.cpp \ |
William Roberts | 29d238d | 2013-02-08 09:45:26 +0900 | [diff] [blame] | 20 | LogWhiteBlackList.cpp \ |
| 21 | libaudit.c \ |
Mark Salyzyn | 989980c | 2014-05-14 12:37:22 -0700 | [diff] [blame] | 22 | LogAudit.cpp \ |
Mark Salyzyn | ae4d928 | 2014-10-15 08:49:39 -0700 | [diff] [blame] | 23 | LogKlog.cpp \ |
Mark Salyzyn | 989980c | 2014-05-14 12:37:22 -0700 | [diff] [blame] | 24 | event.logtags |
Mark Salyzyn | 0175b07 | 2014-02-26 09:50:16 -0800 | [diff] [blame] | 25 | |
Mark Salyzyn | 0175b07 | 2014-02-26 09:50:16 -0800 | [diff] [blame] | 26 | LOCAL_SHARED_LIBRARIES := \ |
| 27 | libsysutils \ |
| 28 | liblog \ |
Mark Salyzyn | 34facab | 2014-02-06 14:48:50 -0800 | [diff] [blame] | 29 | libcutils \ |
William Roberts | aeca97b | 2015-07-31 13:10:36 -0700 | [diff] [blame] | 30 | libbase \ |
| 31 | libpackagelistparser |
Mark Salyzyn | 0175b07 | 2014-02-26 09:50:16 -0800 | [diff] [blame] | 32 | |
Mark Salyzyn | 95b4678 | 2015-03-06 11:15:55 -0800 | [diff] [blame] | 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) |
Mark Salyzyn | ab0dcf6 | 2015-03-16 12:04:09 -0700 | [diff] [blame] | 39 | # event_flag += $(call event_logtags,logd) |
Mark Salyzyn | 95b4678 | 2015-03-06 11:15:55 -0800 | [diff] [blame] | 40 | # so make sure we do not regret hard-coding it as follows: |
Mark Salyzyn | 0ee8de3 | 2016-01-06 21:17:43 +0000 | [diff] [blame] | 41 | event_flag := -DAUDITD_LOG_TAG=1003 -DLOGD_LOG_TAG=1004 |
Mark Salyzyn | 95b4678 | 2015-03-06 11:15:55 -0800 | [diff] [blame] | 42 | |
| 43 | LOCAL_CFLAGS := -Werror $(event_flag) |
Mark Salyzyn | 0175b07 | 2014-02-26 09:50:16 -0800 | [diff] [blame] | 44 | |
Sami Tolvanen | 0bdad0f | 2016-02-05 14:27:52 -0800 | [diff] [blame] | 45 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 46 | LOCAL_CFLAGS += -DAUDITD_ENFORCE_INTEGRITY=true |
| 47 | endif |
| 48 | |
Mark Salyzyn | 0175b07 | 2014-02-26 09:50:16 -0800 | [diff] [blame] | 49 | include $(BUILD_EXECUTABLE) |
Mark Salyzyn | d3ba665 | 2014-02-28 13:44:12 -0800 | [diff] [blame] | 50 | |
| 51 | include $(call first-makefiles-under,$(LOCAL_PATH)) |