Mark Salyzyn | 65772ca | 2013-12-13 11:10:11 -0800 | [diff] [blame] | 1 | # Copyright 2006-2014 The Android Open Source Project |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 2 | |
Mark Salyzyn | c0cf90d | 2017-02-10 13:09:07 -0800 | [diff] [blame] | 3 | LOCAL_PATH := $(call my-dir) |
| 4 | |
| 5 | logcatLibs := liblog libbase libcutils libpcrecpp |
| 6 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 7 | include $(CLEAR_VARS) |
| 8 | |
Mark Salyzyn | b149e24 | 2014-04-30 09:39:09 -0700 | [diff] [blame] | 9 | LOCAL_MODULE := logcat |
Mark Salyzyn | c0cf90d | 2017-02-10 13:09:07 -0800 | [diff] [blame] | 10 | LOCAL_SRC_FILES := logcat_main.cpp event.logtags |
| 11 | LOCAL_SHARED_LIBRARIES := liblogcat $(logcatLibs) |
Mark Salyzyn | b149e24 | 2014-04-30 09:39:09 -0700 | [diff] [blame] | 12 | LOCAL_CFLAGS := -Werror |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 13 | |
| 14 | include $(BUILD_EXECUTABLE) |
Mark Salyzyn | 65772ca | 2013-12-13 11:10:11 -0800 | [diff] [blame] | 15 | |
Mark Salyzyn | 8c943b6 | 2015-09-21 10:51:15 -0700 | [diff] [blame] | 16 | include $(CLEAR_VARS) |
| 17 | |
Mark Salyzyn | a073c39 | 2017-04-03 09:30:20 -0700 | [diff] [blame] | 18 | LOCAL_MODULE := logcatd |
| 19 | LOCAL_MODULE_TAGS := debug |
| 20 | LOCAL_SRC_FILES := logcatd_main.cpp event.logtags |
| 21 | LOCAL_SHARED_LIBRARIES := liblogcat $(logcatLibs) |
| 22 | LOCAL_CFLAGS := -Werror |
| 23 | |
| 24 | include $(BUILD_EXECUTABLE) |
| 25 | |
| 26 | include $(CLEAR_VARS) |
| 27 | |
Mark Salyzyn | c0cf90d | 2017-02-10 13:09:07 -0800 | [diff] [blame] | 28 | LOCAL_MODULE := liblogcat |
Mark Salyzyn | e9ade17 | 2017-03-02 15:09:41 -0800 | [diff] [blame] | 29 | LOCAL_SRC_FILES := logcat.cpp getopt_long.cpp logcat_system.cpp |
Mark Salyzyn | c0cf90d | 2017-02-10 13:09:07 -0800 | [diff] [blame] | 30 | LOCAL_SHARED_LIBRARIES := $(logcatLibs) |
| 31 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
Mark Salyzyn | eb40816 | 2017-02-21 08:45:21 -0800 | [diff] [blame] | 32 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Mark Salyzyn | c0cf90d | 2017-02-10 13:09:07 -0800 | [diff] [blame] | 33 | LOCAL_CFLAGS := -Werror |
| 34 | |
| 35 | include $(BUILD_SHARED_LIBRARY) |
| 36 | |
| 37 | include $(CLEAR_VARS) |
| 38 | |
Mark Salyzyn | 8c943b6 | 2015-09-21 10:51:15 -0700 | [diff] [blame] | 39 | LOCAL_MODULE := logpersist.start |
Mark Salyzyn | 5b89b49 | 2016-02-04 13:08:36 -0800 | [diff] [blame] | 40 | LOCAL_MODULE_TAGS := debug |
Mark Salyzyn | 8c943b6 | 2015-09-21 10:51:15 -0700 | [diff] [blame] | 41 | LOCAL_MODULE_CLASS := EXECUTABLES |
Mark Salyzyn | 6de62e5 | 2016-02-04 10:48:10 -0800 | [diff] [blame] | 42 | LOCAL_INIT_RC := logcatd.rc |
Mark Salyzyn | 8c943b6 | 2015-09-21 10:51:15 -0700 | [diff] [blame] | 43 | LOCAL_MODULE_PATH := $(bin_dir) |
| 44 | LOCAL_SRC_FILES := logpersist |
| 45 | ALL_TOOLS := logpersist.start logpersist.stop logpersist.cat |
| 46 | LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(filter-out $(LOCAL_MODULE),$(ALL_TOOLS)),ln -sf $(LOCAL_MODULE) $(TARGET_OUT)/bin/$(t);) |
| 47 | include $(BUILD_PREBUILT) |
| 48 | |
Mark Salyzyn | 65772ca | 2013-12-13 11:10:11 -0800 | [diff] [blame] | 49 | include $(call first-makefiles-under,$(LOCAL_PATH)) |