prebuilt_native_library()rule is used to bundle native libraries (i.e.,
.sofiles) for Android.
The short name for this build target.
Path to a directory containing native libraries. This directory has subdirectories for different architectures, such as
Normally native shared objects end up in a directory in the root of the APK named
lib/. If this parameter is set to
True, then these objects are placed in
assets/lib/. Placing shared objects in a non-standard location prevents Android from extracting them to the device's internal storage.
List of build target patterns that identify the build rules that can include this rule as a dependency, for example, by listing it in their
exported_depsattributes. For more information, see visibility.
ExamplesMost of the time, a
prebuilt_native_libraryis private to the
android_librarythat uses it:
prebuilt_native_library( name = 'native_libs', native_libs = 'libs', ) android_library( name = 'my_lib', srcs = glob(['*.java']), deps = [ ':native_libs', ], )