Export SDK library names

java_library, java_import, and android_library export SDK library names
that they are using directly or indirectly via its dependencies. When
building an apk, the manifest fixer uses the SDK lib names to
automatically add <uses-library> tags.

The SDK lib names are exported to the make world via
LOCAL_EXPORT_SDK_LIBRARIES flag.

Bug: 77575606
Test: m -j
Change-Id: I4fe606eb7ed23843c58eebe6a324405fe1da34e5
This commit is contained in:
Jiyong Park
2018-05-28 18:02:19 +09:00
parent c08f46fdfc
commit 1be9691910
5 changed files with 72 additions and 3 deletions

View File

@@ -67,9 +67,8 @@ var (
// classpath at runtime if requested via <uses-library>.
//
// TODO: these are big features that are currently missing
// 1) ensuring that apps have appropriate <uses-library> tag
// 2) disallowing linking to the runtime shared lib
// 3) HTML generation
// 1) disallowing linking to the runtime shared lib
// 2) HTML generation
func init() {
android.RegisterModuleType("java_sdk_library", sdkLibraryFactory)