https://github.com/jin/bazel-android-ndk-example
Build C++ for Android using Bazel and NDK
https://github.com/jin/bazel-android-ndk-example
android android-ndk bazel cpp
Last synced: about 1 year ago
JSON representation
Build C++ for Android using Bazel and NDK
- Host: GitHub
- URL: https://github.com/jin/bazel-android-ndk-example
- Owner: jin
- Created: 2018-07-08T22:52:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-08T23:01:30.000Z (almost 8 years ago)
- Last Synced: 2025-02-10T14:52:51.058Z (about 1 year ago)
- Topics: android, android-ndk, bazel, cpp
- Language: Python
- Size: 181 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Android NDK with Bazel example
## Instructions
1) Launch emulator
2) Run `bazel mobile-install //app/src/main:app --fat_apk_cpu=x86 --incremental --start_app`
3) Profit

## 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.
- 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.