Skip to content

Commit 95c1766

Browse files
kirklandsignpytorchbot
authored andcommitted
Rename so file to match soname (#3810)
Summary: Pull Request resolved: #3810 Test Plan: Use artifact from https://gha-artifacts.s3.amazonaws.com/pytorch/executorch/9356134478/artifact/executorch-llama.aar to build demo app Reviewed By: shoumikhin Differential Revision: D58100605 Pulled By: kirklandsign fbshipit-source-id: a1febda12a546b7bf53c1059a603fece0e5553c5 (cherry picked from commit 2c00ade)
1 parent 6c74717 commit 95c1766

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

build/test_android_ci.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,24 @@ build_android_llama_demo_app() {
3737
popd
3838
}
3939

40+
build_aar() {
41+
cp extension/android/build/libs/executorch.jar build_aar/libs
42+
echo \<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\" \
43+
package=\"org.pytorch.executorch\"\> \
44+
\<uses-sdk android:minSdkVersion=\"19\" /\> \
45+
\</manifest\> > build_aar/AndroidManifest.xml
46+
pushd build_aar
47+
mv jni/arm64-v8a/libexecutorch_jni.so jni/arm64-v8a/libexecutorch.so
48+
mv jni/x86_64/libexecutorch_jni.so jni/x86_64/libexecutorch.so
49+
zip -r executorch.aar libs jni AndroidManifest.xml
50+
51+
rm jni/arm64-v8a/libexecutorch.so jni/x86_64/libexecutorch.so
52+
zip -r executorch-llama.aar libs jni AndroidManifest.xml
53+
popd
54+
}
55+
56+
mkdir -p build_aar/jni/arm64-v8a build_aar/jni/x86_64 build_aar/libs
57+
4058
build_android_native_library arm64-v8a
4159
build_android_native_library x86_64
4260
export_model

0 commit comments

Comments
 (0)