sysprop_library: Rename system scope to public

In the first design, public sysprops have been accessible from Java
modules linking against SDK. But SDK modules shouldn't do, because
sysprop_library isn't for the apps. This renames system to public, so
that only public(System till now) and internal scopes remain from now.

Bug: 131637873
Test: m && sysprop_test
Change-Id: I548007d4a6018922f98d3d13915cee1d66070086
This commit is contained in:
Inseob Kim
2019-06-08 20:36:59 +09:00
parent b879fb6b4b
commit 5cefbd289d
3 changed files with 17 additions and 17 deletions

View File

@@ -882,10 +882,10 @@ func (library *libraryDecorator) link(ctx ModuleContext,
isVendor := ctx.useVndk()
isOwnerPlatform := Bool(library.Properties.Sysprop.Platform)
useSystem := isProduct || (isOwnerPlatform == isVendor)
usePublic := isProduct || (isOwnerPlatform == isVendor)
if useSystem {
dir = android.PathForModuleGen(ctx, "sysprop/system", "include").String()
if usePublic {
dir = android.PathForModuleGen(ctx, "sysprop/public", "include").String()
}
}