diff options
author | Yabin Cui | 2016-02-17 14:21:34 -0600 |
---|---|---|
committer | Yabin Cui | 2016-02-23 12:52:43 -0600 |
commit | f6dbc6d4b830c57c0155a607d0d8a2cb6b1e0040 (patch) | |
tree | 87b05d21591a3d412a9ac5c64c384ae316ce90dd /healthd/Android.mk | |
parent | ac3387b71baf99b2680af038c5997eb52218f661 (diff) | |
download | platform-system-core-f6dbc6d4b830c57c0155a607d0d8a2cb6b1e0040.tar.gz platform-system-core-f6dbc6d4b830c57c0155a607d0d8a2cb6b1e0040.tar.xz platform-system-core-f6dbc6d4b830c57c0155a607d0d8a2cb6b1e0040.zip |
healthd: separate libbatterymonitor for use in recovery.
Bug: 26879394
Change-Id: I97b5b4994c42988ce43f5085b8b4b25e9e80c9fa
(cherry picked from commit e98e177a34eb3200b9f95be8379223271933b885)
Diffstat (limited to 'healthd/Android.mk')
-rw-r--r-- | healthd/Android.mk | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/healthd/Android.mk b/healthd/Android.mk index 27c985c46..a4469fc2f 100644 --- a/healthd/Android.mk +++ b/healthd/Android.mk | |||
@@ -6,6 +6,16 @@ include $(CLEAR_VARS) | |||
6 | LOCAL_SRC_FILES := healthd_board_default.cpp | 6 | LOCAL_SRC_FILES := healthd_board_default.cpp |
7 | LOCAL_MODULE := libhealthd.default | 7 | LOCAL_MODULE := libhealthd.default |
8 | LOCAL_CFLAGS := -Werror | 8 | LOCAL_CFLAGS := -Werror |
9 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include | ||
10 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include | ||
11 | include $(BUILD_STATIC_LIBRARY) | ||
12 | |||
13 | include $(CLEAR_VARS) | ||
14 | LOCAL_SRC_FILES := BatteryMonitor.cpp | ||
15 | LOCAL_MODULE := libbatterymonitor | ||
16 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include | ||
17 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include | ||
18 | LOCAL_STATIC_LIBRARIES := libutils | ||
9 | include $(BUILD_STATIC_LIBRARY) | 19 | include $(BUILD_STATIC_LIBRARY) |
10 | 20 | ||
11 | include $(CLEAR_VARS) | 21 | include $(CLEAR_VARS) |
@@ -14,7 +24,6 @@ LOCAL_SRC_FILES := \ | |||
14 | healthd.cpp \ | 24 | healthd.cpp \ |
15 | healthd_mode_android.cpp \ | 25 | healthd_mode_android.cpp \ |
16 | healthd_mode_charger.cpp \ | 26 | healthd_mode_charger.cpp \ |
17 | BatteryMonitor.cpp \ | ||
18 | BatteryPropertiesRegistrar.cpp | 27 | BatteryPropertiesRegistrar.cpp |
19 | 28 | ||
20 | LOCAL_MODULE := healthd | 29 | LOCAL_MODULE := healthd |
@@ -35,7 +44,7 @@ endif | |||
35 | 44 | ||
36 | LOCAL_C_INCLUDES := bootable/recovery | 45 | LOCAL_C_INCLUDES := bootable/recovery |
37 | 46 | ||
38 | LOCAL_STATIC_LIBRARIES := libbatteryservice libbinder libminui libpng libz libutils libcutils liblog libm libc | 47 | LOCAL_STATIC_LIBRARIES := libbatterymonitor libbatteryservice libbinder libminui libpng libz libutils libcutils liblog libm libc |
39 | 48 | ||
40 | ifeq ($(strip $(BOARD_CHARGER_ENABLE_SUSPEND)),true) | 49 | ifeq ($(strip $(BOARD_CHARGER_ENABLE_SUSPEND)),true) |
41 | LOCAL_STATIC_LIBRARIES += libsuspend | 50 | LOCAL_STATIC_LIBRARIES += libsuspend |