Merge changes from topic "revert-3075263-MMTOVXSVUO" into main
* changes: Revert "Always embed jni libs and store uncompressed" Revert "Collect transitve deps of jni libs only for bundled apps"
This commit is contained in:
@@ -17,6 +17,7 @@ package java
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"strings"
|
||||
|
||||
"android/soong/android"
|
||||
|
||||
@@ -414,6 +415,23 @@ func (app *AndroidApp) AndroidMkEntries() []android.AndroidMkEntries {
|
||||
if app.embeddedJniLibs {
|
||||
jniSymbols := app.JNISymbolsInstalls(app.installPathForJNISymbols.String())
|
||||
entries.SetString("LOCAL_SOONG_JNI_LIBS_SYMBOLS", jniSymbols.String())
|
||||
} else {
|
||||
for _, jniLib := range app.jniLibs {
|
||||
entries.AddStrings("LOCAL_SOONG_JNI_LIBS_"+jniLib.target.Arch.ArchType.String(), jniLib.name)
|
||||
var partitionTag string
|
||||
|
||||
// Mimic the creation of partition_tag in build/make,
|
||||
// which defaults to an empty string when the partition is system.
|
||||
// Otherwise, capitalize with a leading _
|
||||
if jniLib.partition == "system" {
|
||||
partitionTag = ""
|
||||
} else {
|
||||
split := strings.Split(jniLib.partition, "/")
|
||||
partitionTag = "_" + strings.ToUpper(split[len(split)-1])
|
||||
}
|
||||
entries.AddStrings("LOCAL_SOONG_JNI_LIBS_PARTITION_"+jniLib.target.Arch.ArchType.String(),
|
||||
jniLib.name+":"+partitionTag)
|
||||
}
|
||||
}
|
||||
|
||||
if len(app.jniCoverageOutputs) > 0 {
|
||||
|
Reference in New Issue
Block a user