diff options
author | Martin Geisler <mgeisler@google.com> | 2024-05-06 23:34:24 +0200 |
---|---|---|
committer | Martin Geisler <mgeisler@google.com> | 2024-05-07 00:01:12 +0200 |
commit | c159cf8c03f4d78beccba737ad8ed14814ec6a77 (patch) | |
tree | 0978cd786c7799bd83e071a56d0c84de8c834be4 | |
parent | 4d59cf7074330d8fa15275ad132bcf439da1309b (diff) | |
download | uniffi-c159cf8c03f4d78beccba737ad8ed14814ec6a77.tar.gz |
Add Android.bp file for uniffi
Bug: 330713317
Test: m libuniffi
Change-Id: I3a117dfc5288c7453a0411f9350168b74183b1c5
-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, +} |