summaryrefslogtreecommitdiffstats
path: root/healthd/Android.mk
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2013-06-12 13:25:59 -0700
committerTodd Poynor <toddpoynor@google.com>2013-07-26 01:30:42 +0000
commit752faf2c18407fd79127fb3f3773910b4ddf669d (patch)
tree21b21e9be52b06e03934c0c22cbfb1a7f10ff113 /healthd/Android.mk
parent64f923ede06940017102ac0ef2c1031aefac37a5 (diff)
downloadcore-752faf2c18407fd79127fb3f3773910b4ddf669d.tar.gz
core-752faf2c18407fd79127fb3f3773910b4ddf669d.tar.bz2
core-752faf2c18407fd79127fb3f3773910b4ddf669d.zip
healthd: Add system health monitoring daemon
Initially moving battery health monitoring here. Command line flag -n tells healthd not to use (or wait for) servicemanager in this execution, for charger and recovery modes. Change-Id: I1720594724af0c068497b359f9c6ad65aeaa1519
Diffstat (limited to 'healthd/Android.mk')
-rw-r--r--healthd/Android.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/healthd/Android.mk b/healthd/Android.mk
new file mode 100644
index 000000000..910afb2ec
--- /dev/null
+++ b/healthd/Android.mk
@@ -0,0 +1,23 @@
+# Copyright 2013 The Android Open Source Project
+
+ifneq ($(BUILD_TINY_ANDROID),true)
+
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+ healthd.cpp \
+ BatteryMonitor.cpp \
+ BatteryPropertiesRegistrar.cpp
+
+LOCAL_MODULE := healthd
+LOCAL_MODULE_TAGS := optional
+LOCAL_FORCE_STATIC_EXECUTABLE := true
+LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN)
+LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_SBIN_UNSTRIPPED)
+
+LOCAL_STATIC_LIBRARIES := libbatteryservice libbinder libz libutils libstdc++ libcutils liblog libm libc
+
+include $(BUILD_EXECUTABLE)
+
+endif