Files
hardware_interfaces/common/support/Android.bp
Cheng Gu 974ff63e65 Make some common libs apex_available
Makes some common libs available to "anyapex".

Bug: 318597144
Bug: 350759487
Test: make
Change-Id: I26d80d1358bf2fccf4cc6f95885d36d19b94d5ff
2024-07-02 20:18:26 +00:00

51 lines
1.2 KiB
Plaintext

package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_interfaces_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_interfaces_license"],
}
cc_library_static {
name: "libaidlcommonsupport",
vendor_available: true,
product_available: true,
host_supported: true,
target: {
darwin: {
enabled: false,
},
},
srcs: ["NativeHandle.cpp"],
export_include_dirs: ["include"],
shared_libs: [
"android.hardware.common-V2-ndk",
"libcutils",
],
apex_available: [
"//apex_available:anyapex",
"//apex_available:platform",
],
min_sdk_version: "29",
}
cc_test {
name: "libaidlcommonsupport_test",
host_supported: true,
target: {
darwin: {
enabled: false,
},
},
srcs: ["test.cpp"],
static_libs: [
"android.hardware.common-V2-ndk",
"libaidlcommonsupport",
],
shared_libs: [
"libcutils",
],
test_suites: ["general-tests"],
}