diff options
-rw-r--r-- | Android.bp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..d46dbfa --- /dev/null +++ b/Android.bp @@ -0,0 +1,38 @@ +// This file is generated by cargo_embargo. +// Do not modify this file after the first "rust_*" or "genrule" module +// because the changes will be overridden on upgrade. +// Content before the first "rust_*" or "genrule" module is preserved. + +package { + default_applicable_licenses: ["external_rust_crates_uniffi_license"], +} + +// See: http://go/android-license-faq +license { + name: "external_rust_crates_uniffi_license", + visibility: [":__subpackages__"], + license_kinds: ["SPDX-license-identifier-MPL-2.0"], + license_text: ["LICENSE"], +} + +rust_library { + name: "libuniffi", + host_supported: true, + crate_name: "uniffi", + cargo_env_compat: true, + cargo_pkg_version: "0.27.1", + srcs: ["src/lib.rs"], + edition: "2021", + features: ["default"], + rustlibs: [ + "libanyhow", + "libuniffi_core", + ], + proc_macros: ["libuniffi_macros"], + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], + product_available: true, + vendor_available: true, +} |