diff options
author | Matthew Maurer <mmaurer@google.com> | 2019-11-13 17:43:28 -0800 |
---|---|---|
committer | Matthew Maurer <mmaurer@google.com> | 2019-11-14 09:02:37 -0800 |
commit | aacdcaa0b0950df55761e2a08025c8b9e682d953 (patch) | |
tree | 92e81746ddec21e664fd08f98fb387217844b7d0 | |
parent | bc731e2778d4cb550b4205cd9177e220f8f115b5 (diff) | |
download | proc-macro2-aacdcaa0b0950df55761e2a08025c8b9e682d953.tar.gz |
Make crates depending on proc-macro host-only
These crates are used to generate Rust source, and do not belong on the
device.
Test: m checkbuild
Change-Id: Ied561fe3543841e5fb3f5762f1d1469d317e3426
-rw-r--r-- | Android.bp | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1,8 +1,7 @@ // This file is generated by cargo2android.py. -rust_library_rlib { +rust_library_host_rlib { name: "libproc_macro2", - host_supported: true, crate_name: "proc_macro2", srcs: ["src/lib.rs"], edition: "2018", @@ -20,9 +19,8 @@ rust_library_rlib { ], } -rust_test { +rust_test_host { name: "proc-macro2_test_src_lib", - host_supported: true, crate_name: "proc_macro2", srcs: ["src/lib.rs"], relative_install_path: "rust/proc-macro2", @@ -42,9 +40,8 @@ rust_test { ], } -rust_test { +rust_test_host { name: "proc-macro2_tests_test", - host_supported: true, crate_name: "proc_macro2", srcs: [ "tests/features.rs", |