Skip to content

Commit 87b29ee

Browse files
committed
Table
1 parent 1bee04b commit 87b29ee

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,15 @@ These can be overridden by command-line arguments.
118118

119119
These environment variables are exported for use in build scripts and other downstream use cases:
120120

121-
- `CARGO_NDK_ANDROID_PLATFORM`: the Android platform API number as an integer (e.g. `21`)
122-
- `CARGO_NDK_OUTPUT_PATH`: the output path as specified with the `-o` flag
123-
- `CARGO_NDK_SYSROOT_PATH`: path to the sysroot inside the Android NDK
124-
- `CARGO_NDK_SYSROOT_TARGET`: the target name for the files inside the sysroot (differs slightly from the standard LLVM triples)
125-
- `CARGO_NDK_SYSROOT_LIBS_PATH`: path to the libraries inside the sysroot with the given sysroot target (e.g. `$CARGO_NDK_SYSROOT_PATH/usr/lib/$CARGO_NDK_SYSROOT_TARGET`)
126-
- `ANDROID_PLATFORM`: the platform version being used (e.g. `21`)
127-
- `ANDROID_ABI`: the "target triple" used in Android land (e.g. `armeabi-v7a`)
121+
| Variable | Description | Example |
122+
|----------|-------------|---------|
123+
| `CARGO_NDK_ANDROID_PLATFORM` | The Android platform API number as an integer | `21` |
124+
| `CARGO_NDK_OUTPUT_PATH` | The output path as specified with the `-o` flag | `./jniLibs` |
125+
| `CARGO_NDK_SYSROOT_PATH` | Path to the sysroot inside the Android NDK | `/path/to/ndk/toolchains/llvm/prebuilt/...` |
126+
| `CARGO_NDK_SYSROOT_TARGET` | The target name for files inside the sysroot (differs from LLVM triples) | `aarch64-linux-android` |
127+
| `CARGO_NDK_SYSROOT_LIBS_PATH` | Path to libraries in sysroot with target (`$CARGO_NDK_SYSROOT_PATH/usr/lib/$CARGO_NDK_SYSROOT_TARGET`) | `/path/to/ndk/.../usr/lib/aarch64-linux-android` |
128+
| `ANDROID_PLATFORM` | The platform version being used | `21` |
129+
| `ANDROID_ABI` | The Android ABI name | `armeabi-v7a` |
128130

129131
Environment variables for bindgen are automatically configured and exported as well.
130132

0 commit comments

Comments
 (0)