diff options
author | Chih-Hung Hsieh <chh@google.com> | 2019-10-30 00:46:17 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-10-30 00:46:17 -0700 |
commit | 411d8f7558debe7439e645e994b2140a4c0d57d9 (patch) | |
tree | 34af63ea025161a9504f9e4a30a4ad4b359d3aff | |
parent | 61d28e97e98c5aa72f32c786410250975e80ed3c (diff) | |
parent | ba9e0fccc475db50193c480eab0a920a245c75a4 (diff) | |
download | proc-macro2-411d8f7558debe7439e645e994b2140a4c0d57d9.tar.gz |
Add rust_test modules. am: bc731e2778
am: ba9e0fccc4
Change-Id: Ic0fcfa86ce570235b34a4f7149956b0c95f0bc87
-rw-r--r-- | Android.bp | 49 |
1 files changed, 49 insertions, 0 deletions
@@ -19,3 +19,52 @@ rust_library_rlib { "libunicode_xid", ], } + +rust_test { + name: "proc-macro2_test_src_lib", + host_supported: true, + crate_name: "proc_macro2", + srcs: ["src/lib.rs"], + relative_install_path: "rust/proc-macro2", + edition: "2018", + features: [ + "default", + "proc-macro", + ], + flags: [ + "--cfg proc_macro_span", + "--cfg use_proc_macro", + "--cfg wrap_proc_macro", + ], + rlibs: [ + "libquote", + "libunicode_xid", + ], +} + +rust_test { + name: "proc-macro2_tests_test", + host_supported: true, + crate_name: "proc_macro2", + srcs: [ + "tests/features.rs", + "tests/marker.rs", + "tests/test.rs", + ], + relative_install_path: "rust/proc-macro2", + edition: "2018", + features: [ + "default", + "proc-macro", + ], + flags: [ + "--cfg proc_macro_span", + "--cfg use_proc_macro", + "--cfg wrap_proc_macro", + ], + rlibs: [ + "libproc_macro2", + "libquote", + "libunicode_xid", + ], +} |