xref: /aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/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_syn_v2_license",
21    ],
22}
23
24// GN: License-Artificial
25license {
26    name: "external_cronet_third_party_rust_syn_v2_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/syn/v2:lib
39rust_library_rlib {
40    name: "libsyn_cronet_aml_third_party_rust_syn_v2_lib",
41    srcs: [
42        "src/attr.rs",
43        "src/bigint.rs",
44        "src/buffer.rs",
45        "src/custom_keyword.rs",
46        "src/custom_punctuation.rs",
47        "src/data.rs",
48        "src/derive.rs",
49        "src/discouraged.rs",
50        "src/drops.rs",
51        "src/error.rs",
52        "src/export.rs",
53        "src/expr.rs",
54        "src/ext.rs",
55        "src/file.rs",
56        "src/gen/clone.rs",
57        "src/gen/debug.rs",
58        "src/gen/eq.rs",
59        "src/gen/fold.rs",
60        "src/gen/hash.rs",
61        "src/gen/visit.rs",
62        "src/gen/visit_mut.rs",
63        "src/gen_helper.rs",
64        "src/generics.rs",
65        "src/group.rs",
66        "src/ident.rs",
67        "src/item.rs",
68        "src/lib.rs",
69        "src/lifetime.rs",
70        "src/lit.rs",
71        "src/lookahead.rs",
72        "src/mac.rs",
73        "src/macros.rs",
74        "src/meta.rs",
75        "src/op.rs",
76        "src/parse.rs",
77        "src/parse_macro_input.rs",
78        "src/parse_quote.rs",
79        "src/pat.rs",
80        "src/path.rs",
81        "src/print.rs",
82        "src/punctuated.rs",
83        "src/restriction.rs",
84        "src/sealed.rs",
85        "src/span.rs",
86        "src/spanned.rs",
87        "src/stmt.rs",
88        "src/thread.rs",
89        "src/token.rs",
90        "src/tt.rs",
91        "src/ty.rs",
92        "src/verbatim.rs",
93        "src/whitespace.rs",
94    ],
95    host_supported: true,
96    device_supported: false,
97    apex_available: [
98        "com.android.tethering",
99    ],
100    min_sdk_version: "30",
101    visibility: [
102        "//external/cronet:__subpackages__",
103    ],
104    crate_name: "syn",
105    crate_root: "src/lib.rs",
106    host_cross_supported: false,
107    rustlibs: [
108        "libproc_macro2_cronet_aml_third_party_rust_proc_macro2_v1_lib",
109        "libquote_cronet_aml_third_party_rust_quote_v1_lib",
110        "libunicode_ident_cronet_aml_third_party_rust_unicode_ident_v1_lib",
111    ],
112    target: {
113        host: {
114            edition: "2021",
115            cfgs: [
116                "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"",
117            ],
118            features: [
119                "clone-impls",
120                "derive",
121                "extra-traits",
122                "full",
123                "parsing",
124                "printing",
125                "proc-macro",
126                "quote",
127            ],
128            flags: [
129                "-Cmetadata=syn-2",
130                "-Cforce-unwind-tables=no",
131                "-Crelocation-model=pic",
132                "-Coverflow-checks=on",
133                "-Cdefault-linker-libraries",
134                "-Clto=no",
135                "-Copt-level=3",
136                "-Cdebuginfo=1",
137                "--cap-lints=allow",
138                "-Dunsafe_op_in_unsafe_fn",
139                "-Dwarnings",
140                "-Aunused-imports",
141            ],
142            compile_multilib: "64",
143        },
144    },
145}
146
147// GN: //third_party/rust/syn/v2:lib__testing
148rust_library_rlib {
149    name: "libsyn_cronet_aml_third_party_rust_syn_v2_lib__testing",
150    srcs: [
151        "src/attr.rs",
152        "src/bigint.rs",
153        "src/buffer.rs",
154        "src/custom_keyword.rs",
155        "src/custom_punctuation.rs",
156        "src/data.rs",
157        "src/derive.rs",
158        "src/discouraged.rs",
159        "src/drops.rs",
160        "src/error.rs",
161        "src/export.rs",
162        "src/expr.rs",
163        "src/ext.rs",
164        "src/file.rs",
165        "src/gen/clone.rs",
166        "src/gen/debug.rs",
167        "src/gen/eq.rs",
168        "src/gen/fold.rs",
169        "src/gen/hash.rs",
170        "src/gen/visit.rs",
171        "src/gen/visit_mut.rs",
172        "src/gen_helper.rs",
173        "src/generics.rs",
174        "src/group.rs",
175        "src/ident.rs",
176        "src/item.rs",
177        "src/lib.rs",
178        "src/lifetime.rs",
179        "src/lit.rs",
180        "src/lookahead.rs",
181        "src/mac.rs",
182        "src/macros.rs",
183        "src/meta.rs",
184        "src/op.rs",
185        "src/parse.rs",
186        "src/parse_macro_input.rs",
187        "src/parse_quote.rs",
188        "src/pat.rs",
189        "src/path.rs",
190        "src/print.rs",
191        "src/punctuated.rs",
192        "src/restriction.rs",
193        "src/sealed.rs",
194        "src/span.rs",
195        "src/spanned.rs",
196        "src/stmt.rs",
197        "src/thread.rs",
198        "src/token.rs",
199        "src/tt.rs",
200        "src/ty.rs",
201        "src/verbatim.rs",
202        "src/whitespace.rs",
203    ],
204    host_supported: true,
205    device_supported: false,
206    apex_available: [
207        "com.android.tethering",
208    ],
209    min_sdk_version: "30",
210    visibility: [
211        "//external/cronet:__subpackages__",
212    ],
213    crate_name: "syn",
214    crate_root: "src/lib.rs",
215    host_cross_supported: false,
216    rustlibs: [
217        "libproc_macro2_cronet_aml_third_party_rust_proc_macro2_v1_lib__testing",
218        "libquote_cronet_aml_third_party_rust_quote_v1_lib__testing",
219        "libunicode_ident_cronet_aml_third_party_rust_unicode_ident_v1_lib__testing",
220    ],
221    target: {
222        host: {
223            edition: "2021",
224            cfgs: [
225                "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"",
226            ],
227            features: [
228                "clone-impls",
229                "derive",
230                "extra-traits",
231                "full",
232                "parsing",
233                "printing",
234                "proc-macro",
235                "quote",
236            ],
237            flags: [
238                "-Cmetadata=syn-2",
239                "-Cforce-unwind-tables=no",
240                "-Crelocation-model=pic",
241                "-Coverflow-checks=on",
242                "-Cdefault-linker-libraries",
243                "-Clto=no",
244                "-Copt-level=3",
245                "-Cdebuginfo=1",
246                "--cap-lints=allow",
247                "-Dunsafe_op_in_unsafe_fn",
248                "-Dwarnings",
249                "-Aunused-imports",
250            ],
251            compile_multilib: "64",
252        },
253    },
254}
255