blob: 69b9661ea1b80849c47de468853e32797501d058 [file] [log] [blame]
Jiyong Park0d452fd2020-12-07 15:50:22 +09001// This file is generated by cargo2android.py --run --dependencies --device --tests --copy-out --patch=patches/Android.bp.patch.
Chih-Hung Hsieh905c18a2020-10-25 03:57:56 -07002
Bob Badourc9244b72021-02-12 15:42:51 -08003package {
4 default_applicable_licenses: [
5 "external_rust_crates_proc-macro-nested_license",
6 ],
7}
8
9// Added automatically by a large-scale-change that took the approach of
10// 'apply every license found to every target'. While this makes sure we respect
11// every license restriction, it may not be entirely correct.
12//
13// e.g. GPL in an MIT project might only apply to the contrib/ directory.
14//
15// Please consider splitting the single license below into multiple licenses,
16// taking care not to lose any license_kind information, and overriding the
17// default license using the 'licenses: [...]' property on targets as needed.
18//
19// For unused files, consider creating a 'fileGroup' with "//visibility:private"
20// to attach the license to, and including a comment whether the files may be
21// used in the current project.
22//
23// large-scale-change included anything that looked like it might be a license
24// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
25//
26// Please consider removing redundant or irrelevant files from 'license_text:'.
27// See: http://go/android-license-faq
28license {
29 name: "external_rust_crates_proc-macro-nested_license",
30 visibility: [":__subpackages__"],
31 license_kinds: [
32 "SPDX-license-identifier-Apache-2.0",
33 "SPDX-license-identifier-MIT",
34 ],
35 license_text: [
36 "LICENSE-APACHE",
37 "LICENSE-MIT",
38 ],
39}
40
Chih-Hung Hsieh905c18a2020-10-25 03:57:56 -070041genrule {
42 name: "copy_proc-macro-nested_build_out",
43 srcs: ["out/*"],
44 cmd: "cp $(in) $(genDir)",
45 out: ["count.rs"],
46}
Jason Macnakbbac34b2020-03-25 01:28:44 +000047
Matthew Maurerfe7c85d2020-07-06 13:22:35 -070048rust_library {
Jason Macnakbbac34b2020-03-25 01:28:44 +000049 name: "libproc_macro_nested",
Matthew Maurerfe7c85d2020-07-06 13:22:35 -070050 host_supported: true,
Chih-Hung Hsieh0d4cc522020-07-12 14:29:40 -070051 crate_name: "proc_macro_nested",
Chih-Hung Hsieh905c18a2020-10-25 03:57:56 -070052 srcs: [
53 "src/lib.rs",
54 ":copy_proc-macro-nested_build_out",
55 ],
Jason Macnakbbac34b2020-03-25 01:28:44 +000056 edition: "2015",
Jiyong Park0d452fd2020-12-07 15:50:22 +090057 apex_available: [
58 "//apex_available:platform",
59 "com.android.virt",
60 ],
Jason Macnakbbac34b2020-03-25 01:28:44 +000061}
Chih-Hung Hsiehad0828c2020-07-16 16:27:46 -070062
63rust_defaults {
64 name: "proc-macro-nested_defaults",
65 crate_name: "proc_macro_nested",
Chih-Hung Hsieh905c18a2020-10-25 03:57:56 -070066 srcs: [
67 "src/lib.rs",
68 ":copy_proc-macro-nested_build_out",
69 ],
Chih-Hung Hsiehad0828c2020-07-16 16:27:46 -070070 test_suites: ["general-tests"],
71 auto_gen_config: true,
72 edition: "2015",
73}
74
75rust_test_host {
76 name: "proc-macro-nested_host_test_src_lib",
77 defaults: ["proc-macro-nested_defaults"],
78}
79
80rust_test {
81 name: "proc-macro-nested_device_test_src_lib",
82 defaults: ["proc-macro-nested_defaults"],
83}