summaryrefslogtreecommitdiffstats
path: root/healthd/Android.mk
blob: cff7a3b98adcdf96ba3056f6ac25f9e1a032a733 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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

ifdef BOARD_LIB_HEALTHD
LOCAL_STATIC_LIBRARIES += $(BOARD_LIB_HEALTHD)
else
LOCAL_SRC_FILES += healthd_board_default.cpp
endif

include $(BUILD_EXECUTABLE)

endif