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.
Set of license files for this library. To get the list of license files for a given build rule and all of its dependencies, you can use
Set of arbitrary strings which allow you to annotate a build rule with tags that can be searched for over an entire dependency tree using
buck query attrfilter().
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', ], )