Skip to content

Commit

Permalink
Refresh Android docs with iree-test-deps and icons. (#14882)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd authored Aug 30, 2023
1 parent bdc6217 commit 627e7b5
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docs/website/docs/building-from-source/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ system architecture):
either pushed to the target to run natively or is bundled into an Android
[APK](https://en.wikipedia.org/wiki/Android_application_package)

## Prerequisites
## :octicons-download-16: Prerequisites

### Host environment setup

Expand All @@ -43,7 +43,7 @@ ADB (the Android Debug Bridge) is also needed to communicate with Android
devices from the command line. Install it following the
[official user guide](https://developer.android.com/studio/command-line/adb).

## Configure and build
## :octicons-sliders-16: Configure and build

### Host configuration

Expand Down Expand Up @@ -110,22 +110,29 @@ Build the runtime using the Android NDK toolchain:
The specific `ANDROID_ABI` and `ANDROID_PLATFORM` used should match your
target device.

## Running Android tests
## :octicons-code-16: Running Android tests

Make sure you
[enable developer options and USB debugging](https://developer.android.com/studio/debug/dev-options#enable)
on your Android device and can see your it when you run `adb devices`, then run
all built tests through
[CTest](https://gitlab.kitware.com/cmake/community/-/wikis/doc/ctest/Testing-With-CTest):
all tests through
[ctest](https://cmake.org/cmake/help/latest/manual/ctest.1.html):

``` shell
# Build test dependencies
cmake --build ../iree-build-android/ --target iree-test-deps

# Ensure that your Android device is visible
adb devices

# Run tests
ctest --test-dir ../iree-build-android/ --output-on-failure
```

This will automatically upload build artifacts to the connected Android device,
run the tests, then report the status back to your host machine.

## Running tools directly
## :octicons-code-16: Running tools directly

Invoke the host compiler tools to produce a bytecode module FlatBuffer:

Expand Down

0 comments on commit 627e7b5

Please sign in to comment.