5bed6372b8
As a VNDK/VNDK-SP module, Android.bp must have 'vndk' tag as well as 'vendor_available: true'. For a VNDK module, the 'vndk' tag has 'enabled: true'. It will be installed system/lib(64)/vndk as a vendor variant. For a VNDK-SP module, the 'vndk' tag has 'support_system_process: true' as well as 'enabled: true'. It will be installed system/lib(64)/vndk-sp as a vendor variant. Bug: 63866913 Test: build and boot with BOARD_VNDK_VERSION=current Change-Id: I9b9d9c0a3f33e396e71167c055220b55380eb1b5
59 lines
1.1 KiB
Text
59 lines
1.1 KiB
Text
// Copyright 2006 The Android Open Source Project
|
|
|
|
subdirs = [
|
|
"audio",
|
|
]
|
|
|
|
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",
|
|
|
|
srcs: ["power.c"],
|
|
export_include_dirs: ["include"],
|
|
shared_libs: ["libcutils", "liblog"],
|
|
vendor_available: true,
|
|
vndk: {
|
|
enabled: true,
|
|
},
|
|
}
|
|
|
|
cc_library_shared {
|
|
name: "libhardware_legacy",
|
|
vendor_available: true,
|
|
vndk: {
|
|
enabled: true,
|
|
},
|
|
|
|
shared_libs: [
|
|
"libbase",
|
|
"libdl",
|
|
"libcutils",
|
|
"liblog",
|
|
],
|
|
|
|
header_libs: [
|
|
"libhardware_legacy_headers",
|
|
],
|
|
export_header_lib_headers: ["libhardware_legacy_headers"],
|
|
|
|
export_include_dirs: ["include"],
|
|
|
|
cflags: [
|
|
"-DQEMU_HARDWARE",
|
|
"-Wno-unused-parameter",
|
|
"-Wno-gnu-designator",
|
|
],
|
|
|
|
srcs: [
|
|
"power.c",
|
|
"uevent.c",
|
|
],
|
|
}
|