As a VNDK module, Android.bp must have 'vndk' tag as well as
'vendor_available: true'.
The 'vndk' tag for VNDK module is formated as below:
vndk: {
enabled: true,
},
VNDK modules will be installed both in system/lib(64) as normal and
in system/lib(64)/vndk as a vendor variant.
Bug: 63866913
Test: build and boot with BOARD_VNDK_VERSION=current
Merged-In: Icecb22ed2ed0f58c3168605d4cf64815e2dda750
Change-Id: Icecb22ed2ed0f58c3168605d4cf64815e2dda750
(cherry picked from commit 9b0ed72942)
36 lines
668 B
Text
36 lines
668 B
Text
cc_library {
|
|
name: "libdiskconfig",
|
|
vendor_available: true,
|
|
vndk: {
|
|
enabled: true,
|
|
},
|
|
srcs: [
|
|
"diskconfig.c",
|
|
"diskutils.c",
|
|
"write_lst.c",
|
|
"config_mbr.c",
|
|
],
|
|
|
|
shared_libs: [
|
|
"libcutils",
|
|
"liblog",
|
|
],
|
|
cflags: ["-Werror"],
|
|
export_include_dirs: ["include"],
|
|
local_include_dirs: ["include"],
|
|
|
|
target: {
|
|
darwin: {
|
|
enabled: false,
|
|
},
|
|
linux: {
|
|
cflags: [
|
|
"-O2",
|
|
"-g",
|
|
"-W",
|
|
"-Wall",
|
|
"-D_LARGEFILE64_SOURCE",
|
|
],
|
|
},
|
|
},
|
|
}
|