mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
The native_handle API is notoriously tricky to work with, and this is expected to be very common. So, adding a small helper library. Fixes: 175432703 Test: atest libaidlcommonsupport_test Change-Id: I4a00d2b14fefe6c979ee656e353e117661a1a483
28 lines
670 B
Plaintext
28 lines
670 B
Plaintext
cc_library_static {
|
|
name: "libaidlcommonsupport",
|
|
vendor_available: true,
|
|
host_supported: true,
|
|
defaults: ["libbinder_ndk_host_user"],
|
|
srcs: ["NativeHandle.cpp"],
|
|
export_include_dirs: ["include"],
|
|
shared_libs: [
|
|
"android.hardware.common-unstable-ndk_platform",
|
|
"libcutils",
|
|
],
|
|
}
|
|
|
|
cc_test {
|
|
name: "libaidlcommonsupport_test",
|
|
host_supported: true,
|
|
defaults: ["libbinder_ndk_host_user"],
|
|
srcs: ["test.cpp"],
|
|
static_libs: [
|
|
"libaidlcommonsupport",
|
|
],
|
|
shared_libs: [
|
|
"android.hardware.common-unstable-ndk_platform",
|
|
"libcutils",
|
|
],
|
|
test_suites: ["general-tests"],
|
|
}
|