Add two more vendor-specific properties
target.vendor.exclude_static_libs: this is the static counterpart of target.vendor.exclude_shared_libs. This removes the libs from the static dependency when build the vendor variant. target.vendor.version_script: vendor-specific version script. Right now, these are required to merge libseliux_vendor into libselinux and make it vendor_avaialble:true. libselinux is using libpackageparser which is a platform-only library. The vendor variant of libselinux can't depend on the library. Bug: 66914194 Test: lunch aosp_arm64_ab-userdebug; m libselinux.vendor Change-Id: I163e634f2f54d419f9471a585a3b04731b63f809
This commit is contained in:
@@ -89,6 +89,10 @@ type BaseLinkerProperties struct {
|
||||
// list of shared libs that should not be used to build
|
||||
// the vendor variant of the C/C++ module.
|
||||
Exclude_shared_libs []string
|
||||
|
||||
// list of static libs that should not be used to build
|
||||
// the vendor variant of the C/C++ module.
|
||||
Exclude_static_libs []string
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -135,6 +139,9 @@ func (linker *baseLinker) linkerDeps(ctx BaseModuleContext, deps Deps) Deps {
|
||||
if ctx.useVndk() {
|
||||
deps.SharedLibs = removeListFromList(deps.SharedLibs, linker.Properties.Target.Vendor.Exclude_shared_libs)
|
||||
deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, linker.Properties.Target.Vendor.Exclude_shared_libs)
|
||||
deps.StaticLibs = removeListFromList(deps.StaticLibs, linker.Properties.Target.Vendor.Exclude_static_libs)
|
||||
deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, linker.Properties.Target.Vendor.Exclude_static_libs)
|
||||
deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Target.Vendor.Exclude_static_libs)
|
||||
}
|
||||
|
||||
if ctx.ModuleName() != "libcompiler_rt-extras" {
|
||||
|
Reference in New Issue
Block a user