diff options
author | Jiyong Park <jiyong@google.com> | 2019-01-30 21:08:42 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-01-30 21:08:42 -0800 |
commit | 1f67ac48b7bc8b21db14787f49ca78f502f9e9ee (patch) | |
tree | 71fdc0f37df01ad9892444dad7e7316b6e91e211 /cc | |
parent | de7c431ad13287f14b437a1d7cdd5449957f5fff (diff) | |
parent | e9601d64464d6b750ee8c04b3f3822ae2c153310 (diff) | |
download | build_soong-1f67ac48b7bc8b21db14787f49ca78f502f9e9ee.tar.gz build_soong-1f67ac48b7bc8b21db14787f49ca78f502f9e9ee.tar.bz2 build_soong-1f67ac48b7bc8b21db14787f49ca78f502f9e9ee.zip |
bootstrap bionic are moved to ./bootstrap subdir am: 429660f3c8
am: e9601d6446
Change-Id: I64318b907a0ae7531bd5f236152f661ea2f09e15
Diffstat (limited to 'cc')
-rw-r--r-- | cc/library.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cc/library.go b/cc/library.go index 138ba43b..7213a735 100644 --- a/cc/library.go +++ b/cc/library.go @@ -883,6 +883,18 @@ func (library *libraryDecorator) install(ctx ModuleContext, file android.Path) { library.baseInstaller.subDir += "-" + vndkVersion } } + } else if len(library.Properties.Stubs.Versions) > 0 && android.DirectlyInAnyApex(ctx, ctx.ModuleName()) { + // If a library in an APEX has stable versioned APIs, we basically don't need + // to have the platform variant of the library in /system partition because + // platform components can just use the lib from the APEX without fearing about + // compatibility. However, if the library is required for some early processes + // before the APEX is activated, the platform variant may also be required. + // In that case, it is installed to the subdirectory 'bootstrap' in order to + // be distinguished/isolated from other non-bootstrap libraries in /system/lib + // so that the bootstrap libraries are used only when the APEX isn't ready. + if !library.buildStubs() && ctx.Arch().Native { + library.baseInstaller.subDir = "bootstrap" + } } library.baseInstaller.install(ctx, file) } |