Add "art/test" to the list of Core Library projects. am: aca944916a am: 553c413071

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1235128

Change-Id: I999fa8cd332b92b47a7dfb356357ff00da2f55e3
This commit is contained in:
Roland Levillain
2020-06-28 11:38:18 +00:00
committed by Automerger Merge Worker

View File

@@ -145,11 +145,18 @@ func createLibcoreRules() []Rule {
"prebuilts",
}
// Core library constraints. The sdk_version: "none" can only be used in core library projects.
// Additional whitelisted path only used for ART testing, which needs access to core library
// targets. This does not affect the contents of a device image (system, vendor, etc.).
var artTests = []string{
"art/test",
}
// Core library constraints. The sdk_version: "none" can only be used in core library projects and ART tests.
// Access to core library targets is restricted using visibility rules.
rules := []Rule{
NeverAllow().
NotIn(coreLibraryProjects...).
NotIn(artTests...).
With("sdk_version", "none").
WithoutMatcher("name", Regexp("^android_.*stubs_current$")),
}