Mercurial
view gara/android/ndk/README.md @ 62:ea9ef388ab97
[Seobeo] Fixed issues with epoll or kqeue in different threads. Initizlied the event looop inside of the thread itself.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Tue, 23 Dec 2025 11:48:11 -0800 |
| parents | 829623189a57 |
| children |
line wrap: on
line source
# Android NDK with Bazel example ## Documentation For the full documentation, please visit the [Bazel documentation page](https://bazel.build/docs/android-ndk). ## Instructions 1) Launch emulator 2) Run `bazel mobile-install //app/src/main:app --android_platforms=//:x86 --start_app` <img src="images/result.png" width="400px" /> ## Build graph  - JNI/C++ sources goes into the `cc_library` target, `//app/src/main:jni_lib`. - Java sources, resource files, and assets go into the `android_library` target, `//app/src/main:lib`. This target depends on the `cc_library` target. - The APK is built from the `android_binary` target, `//app/src/main:app`. This target depends on the `android_library` target. NOTE: This graph omits the Google Maven AAR dependencies.