Mercurial
comparison gara/android/ndk/README.md @ 47:829623189a57
[Gara] Android commit. Bazelfied it.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sat, 13 Dec 2025 14:20:34 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 46:b9a40c633c93 | 47:829623189a57 |
|---|---|
| 1 # Android NDK with Bazel example | |
| 2 | |
| 3 ## Documentation | |
| 4 | |
| 5 For the full documentation, please visit the [Bazel documentation page](https://bazel.build/docs/android-ndk). | |
| 6 | |
| 7 ## Instructions | |
| 8 | |
| 9 1) Launch emulator | |
| 10 2) Run `bazel mobile-install //app/src/main:app --android_platforms=//:x86 --start_app` | |
| 11 | |
| 12 <img src="images/result.png" width="400px" /> | |
| 13 | |
| 14 ## Build graph | |
| 15 | |
| 16  | |
| 17 | |
| 18 - JNI/C++ sources goes into the `cc_library` target, `//app/src/main:jni_lib`. | |
| 19 - Java sources, resource files, and assets go into the `android_library` | |
| 20 target, `//app/src/main:lib`. This target depends on the `cc_library` target. | |
| 21 - The APK is built from the `android_binary` target, `//app/src/main:app`. This | |
| 22 target depends on the `android_library` target. | |
| 23 | |
| 24 NOTE: This graph omits the Google Maven AAR dependencies. |