platform_hardware_libhardwa.../Android.bp
Tri Vo e0a9c90bf5 libpower: acquire wake locks from SystemSuspend service.
This change routes libpower and libhardware_legacy to SystemSuspend service for
wake locks instead of /sys/power/wake_[un]lock.

Bug: 78888165
Bug: 115946999
Test: /sys/kernel/debug/suspend_stats shows that device suspends if left alone
Change-Id: Id4d392e13d06be6d86e3112dedeb6a57bb24c06f
2018-10-05 17:45:00 -07:00

54 lines
1.1 KiB
Text

// Copyright 2006 The Android Open Source Project
cc_library_headers {
name: "libhardware_legacy_headers",
vendor_available: true,
export_include_dirs: ["include"],
header_libs: ["libcutils_headers"],
export_header_lib_headers: ["libcutils_headers"],
}
cc_library {
name: "libpower",
defaults: ["system_suspend_defaults"],
srcs: ["power.cpp"],
export_include_dirs: ["include"],
shared_libs: ["android.system.suspend@1.0"],
vendor_available: true,
vndk: {
enabled: true,
},
}
cc_library_shared {
name: "libhardware_legacy",
defaults: ["system_suspend_defaults"],
vendor_available: true,
vndk: {
enabled: true,
},
shared_libs: [
"android.system.suspend@1.0",
"libdl",
],
header_libs: [
"libhardware_legacy_headers",
],
export_header_lib_headers: ["libhardware_legacy_headers"],
export_include_dirs: ["include"],
cflags: [
"-DQEMU_HARDWARE",
"-Wall",
"-Werror",
],
srcs: [
"power.cpp",
"uevent.c",
],
}