You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,13 +118,15 @@ These can be overridden by command-line arguments.
118
118
119
119
These environment variables are exported for use in build scripts and other downstream use cases:
120
120
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`|
128
130
129
131
Environment variables for bindgen are automatically configured and exported as well.
0 commit comments