Skip to content

jin/bazel-android-ndk-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Build C++ for Android using Bazel and NDK

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published