File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
examples/demo-apps/android/LlamaDemo Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ build_executorch() {
20
20
rm -rf cmake-out && mkdir cmake-out
21
21
ANDROID_NDK=/opt/ndk BUCK2=$( which buck2) FLATC=$( which flatc) ANDROID_ABI=arm64-v8a \
22
22
bash examples/demo-apps/android/ExecuTorchDemo/setup.sh
23
+ ANDROID_NDK=/opt/ndk BUCK2=$( which buck2) FLATC=$( which flatc) ANDROID_ABI=arm64-v8a \
24
+ bash examples/demo-apps/android/LlamaDemo/setup.sh
23
25
}
24
26
25
27
build_android_demo_app () {
@@ -28,5 +30,12 @@ build_android_demo_app() {
28
30
popd
29
31
}
30
32
33
+ build_android_llama_demo_app () {
34
+ pushd examples/demo-apps/android/LlamaDemo
35
+ ANDROID_HOME=/opt/android/sdk ./gradlew build
36
+ popd
37
+ }
38
+
31
39
build_executorch
32
40
build_android_demo_app
41
+ build_android_llama_demo_app
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
# Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
# All rights reserved.
4
4
#
@@ -48,7 +48,3 @@ cmake --build "${CMAKE_OUT}"/extension/android -j "${CMAKE_JOBS}"
48
48
JNI_LIBS_PATH=" examples/demo-apps/android/LlamaDemo/app/src/main/jniLibs"
49
49
mkdir -p " ${JNI_LIBS_PATH} /${ANDROID_ABI} "
50
50
cp " ${CMAKE_OUT} " /extension/android/libexecutorch_llama_jni.so " ${JNI_LIBS_PATH} /${ANDROID_ABI} /"
51
-
52
- pushd extension/android
53
- ./gradlew build
54
- popd
You can’t perform that action at this time.
0 commit comments