xref: /aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.80/Android.bp (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1// Copyright (C) 2022 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// This file is automatically generated by gn2bp/gen_android_bp.py. Do not edit.
16
17// GN: Package-Artificial
18package {
19    default_applicable_licenses: [
20        "external_cronet_third_party_rust_proc_macro2_v1_license",
21    ],
22}
23
24// GN: License-Artificial
25license {
26    name: "external_cronet_third_party_rust_proc_macro2_v1_license",
27    visibility: [
28        ":__subpackages__",
29    ],
30    license_text: [
31        "LICENSE",
32    ],
33    license_kinds: [
34        "SPDX-license-identifier-Apache-2.0",
35    ],
36}
37
38// GN: //third_party/rust/proc_macro2/v1:lib
39rust_library_rlib {
40    name: "libproc_macro2_cronet_aml_third_party_rust_proc_macro2_v1_lib",
41    srcs: [
42        "src/detection.rs",
43        "src/extra.rs",
44        "src/fallback.rs",
45        "src/lib.rs",
46        "src/location.rs",
47        "src/marker.rs",
48        "src/parse.rs",
49        "src/rcvec.rs",
50        "src/wrapper.rs",
51    ],
52    host_cross_supported: false,
53    host_supported: true,
54    device_supported: false,
55    apex_available: [
56        "com.android.tethering",
57    ],
58    min_sdk_version: "30",
59    visibility: [
60        "//external/cronet:__subpackages__",
61    ],
62    crate_name: "proc_macro2",
63    crate_root: "src/lib.rs",
64    rustlibs: [
65        "libunicode_ident_cronet_aml_third_party_rust_unicode_ident_v1_lib",
66    ],
67    target: {
68        host: {
69            edition: "2021",
70            cfgs: [
71                "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"",
72                "proc_macro_span",
73                "span_locations",
74                "wrap_proc_macro",
75            ],
76            features: [
77                "proc-macro",
78                "span-locations",
79            ],
80            flags: [
81                "-Cmetadata=proc_macro2-1",
82                "-Cforce-unwind-tables=no",
83                "-Crelocation-model=pic",
84                "-Coverflow-checks=on",
85                "-Cdefault-linker-libraries",
86                "-Clto=no",
87                "-Copt-level=3",
88                "-Cdebuginfo=1",
89                "--cap-lints=allow",
90                "-Dunsafe_op_in_unsafe_fn",
91                "-Dwarnings",
92                "-Aunused-imports",
93            ],
94            compile_multilib: "64",
95        },
96    },
97}
98
99// GN: //third_party/rust/proc_macro2/v1:lib__testing
100rust_library_rlib {
101    name: "libproc_macro2_cronet_aml_third_party_rust_proc_macro2_v1_lib__testing",
102    srcs: [
103        "src/detection.rs",
104        "src/extra.rs",
105        "src/fallback.rs",
106        "src/lib.rs",
107        "src/location.rs",
108        "src/marker.rs",
109        "src/parse.rs",
110        "src/rcvec.rs",
111        "src/wrapper.rs",
112    ],
113    host_cross_supported: false,
114    host_supported: true,
115    device_supported: false,
116    apex_available: [
117        "com.android.tethering",
118    ],
119    min_sdk_version: "30",
120    visibility: [
121        "//external/cronet:__subpackages__",
122    ],
123    crate_name: "proc_macro2",
124    crate_root: "src/lib.rs",
125    rustlibs: [
126        "libunicode_ident_cronet_aml_third_party_rust_unicode_ident_v1_lib__testing",
127    ],
128    target: {
129        host: {
130            edition: "2021",
131            cfgs: [
132                "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"",
133                "proc_macro_span",
134                "span_locations",
135                "wrap_proc_macro",
136            ],
137            features: [
138                "proc-macro",
139                "span-locations",
140            ],
141            flags: [
142                "-Cmetadata=proc_macro2-1",
143                "-Cforce-unwind-tables=no",
144                "-Crelocation-model=pic",
145                "-Coverflow-checks=on",
146                "-Cdefault-linker-libraries",
147                "-Clto=no",
148                "-Copt-level=3",
149                "-Cdebuginfo=1",
150                "--cap-lints=allow",
151                "-Dunsafe_op_in_unsafe_fn",
152                "-Dwarnings",
153                "-Aunused-imports",
154            ],
155            compile_multilib: "64",
156        },
157    },
158}
159