diff options
author | Martin Geisler <mgeisler@google.com> | 2024-05-16 12:36:52 +0000 |
---|---|---|
committer | Martin Geisler <mgeisler@google.com> | 2024-05-16 12:36:52 +0000 |
commit | 7e98559ea87ae20ea82e1b0456f959ae68a0f63e (patch) | |
tree | 0978cd786c7799bd83e071a56d0c84de8c834be4 | |
parent | 3c248f8cba4092d0a7eb068169cf12a81ee72ef4 (diff) | |
download | uniffi-main.tar.gz |
Revert^2 "Add Android.bp file for uniffi"main
1ea9ba387aa733ba08cd83a17d696022984bcff6
Change-Id: I944c731b747d163a1153948ee8b6d4c425aad148
-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, +} |