[Vold] Conditional dependency to ARC++ ObbVolume

Test: Compile

Change-Id: Ic6348f7816b28302d45c05a359548a5d034fde24
Bug: 64500663
This commit is contained in:
Risan 2017-11-27 18:01:35 +09:00
parent 130a994f4f
commit aedae617fe

View file

@ -80,6 +80,11 @@ cc_library_static {
},
}
cc_library_headers {
name: "libvold_headers",
export_include_dirs: ["."],
}
// Static library factored out to support testing
cc_library_static {
name: "libvold",
@ -123,6 +128,16 @@ cc_library_static {
"model/VolumeBase.cpp",
"secontext.cpp",
],
product_variables: {
arc: {
exclude_srcs: [
"model/ObbVolume.cpp",
],
static_libs: [
"libarcobbvolume",
],
},
},
}
cc_binary {
@ -134,6 +149,13 @@ cc_binary {
srcs: ["main.cpp"],
static_libs: ["libvold"],
product_variables: {
arc: {
static_libs: [
"libarcobbvolume",
]
},
},
init_rc: ["vold.rc"],
required: [