diff options
author | Jiyong Park <jiyong@google.com> | 2018-05-28 18:02:19 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2018-06-20 12:13:33 +0900 |
commit | 1be969191015edabdb55c5f618d5fcbab19c9d21 (patch) | |
tree | 5199ef93f3e5a8303a4cb8305cc0d80c04827a6e /java/androidmk.go | |
parent | c08f46fdfc5f20e000852c5f53d9010d8fd1ad14 (diff) | |
download | android_build_soong-1be969191015edabdb55c5f618d5fcbab19c9d21.tar.gz android_build_soong-1be969191015edabdb55c5f618d5fcbab19c9d21.tar.bz2 android_build_soong-1be969191015edabdb55c5f618d5fcbab19c9d21.zip |
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
Diffstat (limited to 'java/androidmk.go')
-rw-r--r-- | java/androidmk.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/androidmk.go b/java/androidmk.go index ab9ceeb9..d6095ae0 100644 --- a/java/androidmk.go +++ b/java/androidmk.go @@ -63,6 +63,10 @@ func (library *Library) AndroidMk() android.AndroidMkData { fmt.Fprintln(w, "LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR :=", library.jacocoReportClassesFile.String()) } + if len(library.exportedSdkLibs) != 0 { + fmt.Fprintln(w, "LOCAL_EXPORT_SDK_LIBRARIES :=", strings.Join(library.exportedSdkLibs, " ")) + } + // Temporary hack: export sources used to compile framework.jar to Make // to be used for droiddoc // TODO(ccross): remove this once droiddoc is in soong |