1// This file is generated by cargo2android.py --config cargo2android.json. 2// Do not modify this file as changes will be overridden on upgrade. 3 4package { 5 default_applicable_licenses: ["external_rust_crates_proc-macro2_license"], 6} 7 8// Added automatically by a large-scale-change that took the approach of 9// 'apply every license found to every target'. While this makes sure we respect 10// every license restriction, it may not be entirely correct. 11// 12// e.g. GPL in an MIT project might only apply to the contrib/ directory. 13// 14// Please consider splitting the single license below into multiple licenses, 15// taking care not to lose any license_kind information, and overriding the 16// default license using the 'licenses: [...]' property on targets as needed. 17// 18// For unused files, consider creating a 'fileGroup' with "//visibility:private" 19// to attach the license to, and including a comment whether the files may be 20// used in the current project. 21// 22// large-scale-change included anything that looked like it might be a license 23// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. 24// 25// Please consider removing redundant or irrelevant files from 'license_text:'. 26// See: http://go/android-license-faq 27license { 28 name: "external_rust_crates_proc-macro2_license", 29 visibility: [":__subpackages__"], 30 license_kinds: [ 31 "SPDX-license-identifier-Apache-2.0", 32 "SPDX-license-identifier-MIT", 33 ], 34 license_text: [ 35 "LICENSE-APACHE", 36 "LICENSE-MIT", 37 ], 38} 39 40rust_library_host { 41 name: "libproc_macro2", 42 crate_name: "proc_macro2", 43 cargo_env_compat: true, 44 cargo_pkg_version: "1.0.36", 45 srcs: ["src/lib.rs"], 46 edition: "2018", 47 features: [ 48 "default", 49 "proc-macro", 50 "span-locations", 51 ], 52 cfgs: [ 53 "span_locations", 54 "use_proc_macro", 55 "wrap_proc_macro", 56 ], 57 rustlibs: [ 58 "libunicode_xid", 59 ], 60 compile_multilib: "first", 61} 62 63rust_defaults { 64 name: "proc-macro2_test_defaults", 65 crate_name: "proc_macro2", 66 cargo_env_compat: true, 67 cargo_pkg_version: "1.0.36", 68 test_suites: ["general-tests"], 69 auto_gen_config: true, 70 edition: "2018", 71 features: [ 72 "default", 73 "proc-macro", 74 "span-locations", 75 ], 76 cfgs: [ 77 "span_locations", 78 "use_proc_macro", 79 "wrap_proc_macro", 80 ], 81 rustlibs: [ 82 "libproc_macro2", 83 "libquote", 84 "libunicode_xid", 85 ], 86} 87 88rust_test_host { 89 name: "proc-macro2_test_tests_comments", 90 defaults: ["proc-macro2_test_defaults"], 91 srcs: ["tests/comments.rs"], 92 test_options: { 93 unit_test: true, 94 }, 95} 96 97rust_test_host { 98 name: "proc-macro2_test_tests_features", 99 defaults: ["proc-macro2_test_defaults"], 100 srcs: ["tests/features.rs"], 101 test_options: { 102 unit_test: true, 103 }, 104} 105 106rust_test_host { 107 name: "proc-macro2_test_tests_marker", 108 defaults: ["proc-macro2_test_defaults"], 109 srcs: ["tests/marker.rs"], 110 test_options: { 111 unit_test: true, 112 }, 113} 114 115rust_test_host { 116 name: "proc-macro2_test_tests_test", 117 defaults: ["proc-macro2_test_defaults"], 118 srcs: ["tests/test.rs"], 119 test_options: { 120 unit_test: true, 121 }, 122} 123 124rust_test_host { 125 name: "proc-macro2_test_tests_test_fmt", 126 defaults: ["proc-macro2_test_defaults"], 127 srcs: ["tests/test_fmt.rs"], 128 test_options: { 129 unit_test: true, 130 }, 131} 132