Merge "Ensure extracted JNIs are stored properly in APKs" into main am: a7c5278fbe
am: 928eaccad0
am: 1c7fe15d9c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2681735 Change-Id: Iabadd592bedc4837207d6837b9f00e896cf32590 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -268,12 +268,24 @@ func TransformJniLibsToJar(
|
||||
Args: args,
|
||||
})
|
||||
if len(prebuiltJniPackages) > 0 {
|
||||
var mergeJniJarPath android.WritablePath = android.PathForModuleOut(ctx, "mergeJniJarOutput.zip")
|
||||
if !uncompressJNI {
|
||||
mergeJniJarPath = outputFile
|
||||
}
|
||||
ctx.Build(pctx, android.BuildParams{
|
||||
Rule: mergeAssetsRule,
|
||||
Description: "merge prebuilt JNI packages",
|
||||
Inputs: append(prebuiltJniPackages, jniJarPath),
|
||||
Output: outputFile,
|
||||
Output: mergeJniJarPath,
|
||||
})
|
||||
|
||||
if uncompressJNI {
|
||||
ctx.Build(pctx, android.BuildParams{
|
||||
Rule: uncompressEmbeddedJniLibsRule,
|
||||
Input: mergeJniJarPath,
|
||||
Output: outputFile,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user