health 1.0 default -> Soong

am: 891220af48

Change-Id: I1b18816d093ae0478367afcc6e2b7d2f175e0aff
This commit is contained in:
Yifan Hong
2019-12-05 12:20:30 -08:00
committed by android-build-merger
2 changed files with 42 additions and 45 deletions

View File

@@ -18,3 +18,45 @@ cc_library_static {
} }
cc_library_shared {
name: "android.hardware.health@1.0-impl",
vendor: true,
relative_install_path: "hw",
srcs: ["Health.cpp"],
header_libs: [
"libbase_headers",
"libhealthd_headers",
],
shared_libs: [
"libcutils",
"libhidlbase",
"liblog",
"libutils",
"android.hardware.health@1.0",
],
static_libs: [
"android.hardware.health@1.0-convert",
"libhealthd.default",
],
}
cc_binary {
name: "android.hardware.health@1.0-service",
vendor: true,
relative_install_path: "hw",
init_rc: ["android.hardware.health@1.0-service.rc"],
srcs: ["HealthService.cpp"],
shared_libs: [
"liblog",
"libcutils",
"libdl",
"libbase",
"libutils",
"libhidlbase",
"android.hardware.health@1.0",
],
}

View File

@@ -1,45 +0,0 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := android.hardware.health@1.0-impl
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_C_INCLUDES := system/core/base/include
LOCAL_SRC_FILES := \
Health.cpp \
LOCAL_HEADER_LIBRARIES := libhealthd_headers
LOCAL_SHARED_LIBRARIES := \
libcutils \
libhidlbase \
liblog \
libutils \
android.hardware.health@1.0 \
LOCAL_STATIC_LIBRARIES := android.hardware.health@1.0-convert
LOCAL_STATIC_LIBRARIES += libhealthd.default
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE := android.hardware.health@1.0-service
LOCAL_INIT_RC := android.hardware.health@1.0-service.rc
LOCAL_SRC_FILES := \
HealthService.cpp \
LOCAL_SHARED_LIBRARIES := \
liblog \
libcutils \
libdl \
libbase \
libutils \
libhidlbase \
android.hardware.health@1.0 \
include $(BUILD_EXECUTABLE)
include $(call first-makefiles-under,$(LOCAL_PATH))