Merge changes I3574d2a1,Ifb69fb3d
* changes: Update prebuilt_etc available for snapshot Separate snapshot definition
This commit is contained in:
@@ -11,6 +11,7 @@ bootstrap_go_package {
|
||||
"soong-bloaty",
|
||||
"soong-cc",
|
||||
"soong-rust-config",
|
||||
"soong-snapshot",
|
||||
],
|
||||
srcs: [
|
||||
"androidmk.go",
|
||||
|
@@ -21,6 +21,7 @@ import (
|
||||
|
||||
"android/soong/android"
|
||||
"android/soong/cc"
|
||||
"android/soong/snapshot"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -645,7 +646,7 @@ func LibraryMutator(mctx android.BottomUpMutatorContext) {
|
||||
variation := v.(*Module).ModuleBase.ImageVariation().Variation
|
||||
if strings.HasPrefix(variation, cc.VendorVariationPrefix) &&
|
||||
m.HasVendorVariant() &&
|
||||
!cc.IsVendorProprietaryModule(mctx) &&
|
||||
!snapshot.IsVendorProprietaryModule(mctx) &&
|
||||
strings.TrimPrefix(variation, cc.VendorVariationPrefix) == mctx.DeviceConfig().VndkVersion() {
|
||||
|
||||
// cc.MutateImage runs before LibraryMutator, so vendor variations which are meant for rlibs only are
|
||||
|
@@ -17,6 +17,7 @@ package rust
|
||||
import (
|
||||
"android/soong/android"
|
||||
"android/soong/cc"
|
||||
|
||||
"github.com/google/blueprint/proptools"
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user