Make ScopedWakelock a shared library am: 1d53f9563b

am: 1e9bac4b58

Change-Id: I68ece185c348668aa5da86e6b3802f5db167af0d
This commit is contained in:
Stan Rokita
2019-11-25 14:34:48 -08:00
committed by android-build-merger
2 changed files with 26 additions and 3 deletions

View File

@@ -43,10 +43,10 @@ cc_binary {
srcs: [
"service.cpp",
"HalProxy.cpp",
"ScopedWakelock.cpp",
],
init_rc: ["android.hardware.sensors@2.0-service-multihal.rc"],
vintf_fragments: ["android.hardware.sensors@2.0-multihal.xml"],
shared_libs: ["android.hardware.sensors@2.0-ScopedWakelock"]
}
cc_library_headers {
@@ -55,19 +55,40 @@ cc_library_headers {
export_include_dirs: ["include"],
}
cc_library_shared {
name: "android.hardware.sensors@2.0-ScopedWakelock",
defaults: [
"hidl_defaults",
"android.hardware.sensors@2.0-multihal-defaults",
],
srcs: [
"ScopedWakelock.cpp",
],
vendor_available: true,
export_header_lib_headers: [
"android.hardware.sensors@2.0-multihal.header"
]
}
// The below targets should only be used for testing.
cc_test_library {
name: "android.hardware.sensors@2.0-HalProxy",
defaults: ["android.hardware.sensors@2.0-multihal-defaults"],
defaults: [
"hidl_defaults",
"android.hardware.sensors@2.0-multihal-defaults",
],
vendor_available: true,
srcs: [
"HalProxy.cpp",
"ScopedWakelock.cpp",
],
export_header_lib_headers: [
"android.hardware.sensors@2.0-multihal.header",
],
export_shared_lib_headers: [
"android.hardware.sensors@2.0-ScopedWakelock",
],
shared_libs: [
"libutils",
"android.hardware.sensors@2.0-ScopedWakelock",
],
}

View File

@@ -25,6 +25,7 @@ cc_defaults {
shared_libs: [
"android.hardware.sensors@1.0",
"android.hardware.sensors@2.0",
"android.hardware.sensors@2.0-ScopedWakelock",
"libcutils",
"libfmq",
"libhardware",
@@ -83,6 +84,7 @@ cc_test {
shared_libs: [
"android.hardware.sensors@1.0",
"android.hardware.sensors@2.0",
"android.hardware.sensors@2.0-ScopedWakelock",
"libbase",
"libcutils",
"libfmq",