Skip to content

Commit afcec1d

Browse files
authored
[Android] Rename build script
It's not only for LLM demo, but for general use case as well
1 parent 8f509e1 commit afcec1d

File tree

9 files changed

+8
-8
lines changed

9 files changed

+8
-8
lines changed

.github/workflows/_android.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
3030
3131
# Build LLM Demo for Android
32-
bash build/build_android_llm_demo.sh ${ARTIFACTS_DIR_NAME}
32+
bash build/build_android_library.sh ${ARTIFACTS_DIR_NAME}
3333
3434
# Running Android emulator directly on the runner and not using Docker
3535
run-emulator:

.github/workflows/android-perf.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ jobs:
363363
PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
364364
365365
export ANDROID_ABIS="arm64-v8a"
366-
PYTHON_EXECUTABLE=python EXECUTORCH_BUILD_QNN=ON QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029 bash build/build_android_llm_demo.sh ${ARTIFACTS_DIR_NAME}
366+
PYTHON_EXECUTABLE=python EXECUTORCH_BUILD_QNN=ON QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029 bash build/build_android_library.sh ${ARTIFACTS_DIR_NAME}
367367
368368
# Let's see how expensive this job is, we might want to tone it down by running it periodically
369369
benchmark-on-device:

.github/workflows/android-release-artifacts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
5454
5555
# Build LLM Demo for Android
56-
bash build/build_android_llm_demo.sh ${ARTIFACTS_DIR_NAME}
56+
bash build/build_android_library.sh ${ARTIFACTS_DIR_NAME}
5757
5858
shasum -a 256 "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar"
5959
File renamed without changes.

examples/demo-apps/android/LlamaDemo/docs/delegates/mediatek_README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ The Mediatek runner (`examples/mediatek/executor_runner/mtk_llama_runner.cpp`) c
123123

124124
Next we need to build and compile the MediaTek backend and MediaTek Llama runner. By setting `NEURON_BUFFER_ALLOCATOR_LIB`, the script will build the MediaTek backend.
125125
```
126-
sh build/build_android_llm_demo.sh
126+
sh build/build_android_library.sh
127127
```
128128

129129
**Output**: This will generate an .aar file that is already imported into the expected directory for the Android app. It will live in `examples/demo-apps/android/Llamademo/app/libs`.

examples/demo-apps/android/LlamaDemo/setup-with-qnn.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [ -z "$QNN_SDK_ROOT" ]; then
1313
fi
1414

1515
BASEDIR=$(dirname "$0")
16-
source "$BASEDIR"/../../../../build/build_android_llm_demo.sh
16+
source "$BASEDIR"/../../../../build/build_android_library.sh
1717

1818
BUILD_AAR_DIR="$(mktemp -d)"
1919
export BUILD_AAR_DIR

examples/demo-apps/android/LlamaDemo/setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
set -eu
99

1010
BASEDIR=$(dirname "$0")
11-
source "$BASEDIR"/../../../../build/build_android_llm_demo.sh
11+
source "$BASEDIR"/../../../../build/build_android_library.sh
1212

1313
BUILD_AAR_DIR="$(mktemp -d)"
1414
export BUILD_AAR_DIR

extension/android_test/setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BUILD_AAR_DIR="$(mktemp -d)"
1111
export BUILD_AAR_DIR
1212

1313
BASEDIR=$(dirname "$0")
14-
source "$BASEDIR"/../../build/build_android_llm_demo.sh
14+
source "$BASEDIR"/../../build/build_android_library.sh
1515

1616
build_native_library() {
1717
ANDROID_ABI="$1"

extension/benchmark/android/benchmark/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Minibench is usedful for giving reference performance data when developers integ
1515
You will need executorch AAR for Java and JNI dependencies.
1616
```
1717
export ANDROID_NDK=<path_to_android_ndk>
18-
sh build/build_android_llm_demo.sh
18+
sh build/build_android_library.sh
1919
```
2020
and copy the AAR to `app/libs`.
2121
```

0 commit comments

Comments
 (0)