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_cxx_v1_license", 21 ], 22} 23 24// GN: License-Artificial 25license { 26 name: "external_cronet_third_party_rust_cxx_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/cxx/v1:lib 39rust_ffi_static { 40 name: "libcxx_cronet_aml_third_party_rust_cxx_v1_lib__FFI", 41 srcs: [ 42 "src/c_char.rs", 43 "src/cxx_string.rs", 44 "src/cxx_vector.rs", 45 "src/exception.rs", 46 "src/extern_type.rs", 47 "src/fmt.rs", 48 "src/function.rs", 49 "src/hash.rs", 50 "src/lib.rs", 51 "src/lossy.rs", 52 "src/macros/assert.rs", 53 "src/macros/mod.rs", 54 "src/memory.rs", 55 "src/opaque.rs", 56 "src/result.rs", 57 "src/rust_slice.rs", 58 "src/rust_str.rs", 59 "src/rust_string.rs", 60 "src/rust_type.rs", 61 "src/rust_vec.rs", 62 "src/shared_ptr.rs", 63 "src/sip.rs", 64 "src/symbols/exception.rs", 65 "src/symbols/mod.rs", 66 "src/symbols/rust_slice.rs", 67 "src/symbols/rust_str.rs", 68 "src/symbols/rust_string.rs", 69 "src/symbols/rust_vec.rs", 70 "src/type_id.rs", 71 "src/unique_ptr.rs", 72 "src/unwind.rs", 73 "src/vector.rs", 74 "src/weak_ptr.rs", 75 ], 76 apex_available: [ 77 "com.android.tethering", 78 ], 79 min_sdk_version: "30", 80 visibility: [ 81 "//external/cronet:__subpackages__", 82 ], 83 crate_name: "cxx", 84 crate_root: "src/lib.rs", 85 proc_macros: [ 86 "libcxxbridge_macro_cronet_aml_third_party_rust_cxxbridge_macro_v1_lib__proc_macro", 87 ], 88 target: { 89 android_arm: { 90 edition: "2021", 91 cfgs: [ 92 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 93 ], 94 features: [ 95 "alloc", 96 "std", 97 ], 98 flags: [ 99 "-Cmetadata=cxx-1", 100 "-Cforce-unwind-tables=no", 101 "-Crelocation-model=pic", 102 "-Coverflow-checks=on", 103 "-Cdefault-linker-libraries", 104 "-Clto=no", 105 "-Ccodegen-units=1", 106 "-Cpanic=abort", 107 "-Copt-level=s", 108 "-Cdebuginfo=1", 109 "--cap-lints=allow", 110 "-Dunsafe_op_in_unsafe_fn", 111 "-Dwarnings", 112 "-Aunused-imports", 113 ], 114 }, 115 android_arm64: { 116 edition: "2021", 117 cfgs: [ 118 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 119 ], 120 features: [ 121 "alloc", 122 "std", 123 ], 124 flags: [ 125 "-Cmetadata=cxx-1", 126 "-Cforce-unwind-tables=no", 127 "-Crelocation-model=pic", 128 "-Coverflow-checks=on", 129 "-Cdefault-linker-libraries", 130 "-Clto=no", 131 "-Ccodegen-units=1", 132 "-Cpanic=abort", 133 "-Copt-level=3", 134 "-Cdebuginfo=1", 135 "--cap-lints=allow", 136 "-Dunsafe_op_in_unsafe_fn", 137 "-Dwarnings", 138 "-Aunused-imports", 139 ], 140 }, 141 android_riscv64: { 142 edition: "2021", 143 cfgs: [ 144 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 145 ], 146 features: [ 147 "alloc", 148 "std", 149 ], 150 flags: [ 151 "-Cmetadata=cxx-1", 152 "-Cforce-unwind-tables=no", 153 "-Crelocation-model=pic", 154 "-Coverflow-checks=on", 155 "-Cdefault-linker-libraries", 156 "-Clto=no", 157 "-Ccodegen-units=1", 158 "-Cpanic=abort", 159 "-Copt-level=s", 160 "-Cdebuginfo=1", 161 "--cap-lints=allow", 162 "-Dunsafe_op_in_unsafe_fn", 163 "-Dwarnings", 164 "-Aunused-imports", 165 ], 166 }, 167 android_x86: { 168 edition: "2021", 169 cfgs: [ 170 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 171 ], 172 features: [ 173 "alloc", 174 "std", 175 ], 176 flags: [ 177 "-Cmetadata=cxx-1", 178 "-Cforce-unwind-tables=no", 179 "-Crelocation-model=pic", 180 "-Coverflow-checks=on", 181 "-Cdefault-linker-libraries", 182 "-Clto=no", 183 "-Ccodegen-units=1", 184 "-Cpanic=abort", 185 "-Copt-level=s", 186 "-Cdebuginfo=1", 187 "--cap-lints=allow", 188 "-Dunsafe_op_in_unsafe_fn", 189 "-Dwarnings", 190 "-Aunused-imports", 191 ], 192 }, 193 android_x86_64: { 194 edition: "2021", 195 cfgs: [ 196 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 197 ], 198 features: [ 199 "alloc", 200 "std", 201 ], 202 flags: [ 203 "-Cmetadata=cxx-1", 204 "-Cforce-unwind-tables=no", 205 "-Crelocation-model=pic", 206 "-Coverflow-checks=on", 207 "-Cdefault-linker-libraries", 208 "-Clto=no", 209 "-Ccodegen-units=1", 210 "-Cpanic=abort", 211 "-Copt-level=s", 212 "-Cdebuginfo=1", 213 "--cap-lints=allow", 214 "-Dunsafe_op_in_unsafe_fn", 215 "-Dwarnings", 216 "-Aunused-imports", 217 ], 218 }, 219 }, 220} 221 222// GN: //third_party/rust/cxx/v1:lib__testing 223rust_library_rlib { 224 name: "libcxx_cronet_aml_third_party_rust_cxx_v1_lib__testing", 225 srcs: [ 226 "src/c_char.rs", 227 "src/cxx_string.rs", 228 "src/cxx_vector.rs", 229 "src/exception.rs", 230 "src/extern_type.rs", 231 "src/fmt.rs", 232 "src/function.rs", 233 "src/hash.rs", 234 "src/lib.rs", 235 "src/lossy.rs", 236 "src/macros/assert.rs", 237 "src/macros/mod.rs", 238 "src/memory.rs", 239 "src/opaque.rs", 240 "src/result.rs", 241 "src/rust_slice.rs", 242 "src/rust_str.rs", 243 "src/rust_string.rs", 244 "src/rust_type.rs", 245 "src/rust_vec.rs", 246 "src/shared_ptr.rs", 247 "src/sip.rs", 248 "src/symbols/exception.rs", 249 "src/symbols/mod.rs", 250 "src/symbols/rust_slice.rs", 251 "src/symbols/rust_str.rs", 252 "src/symbols/rust_string.rs", 253 "src/symbols/rust_vec.rs", 254 "src/type_id.rs", 255 "src/unique_ptr.rs", 256 "src/unwind.rs", 257 "src/vector.rs", 258 "src/weak_ptr.rs", 259 ], 260 host_supported: true, 261 apex_available: [ 262 "com.android.tethering", 263 ], 264 min_sdk_version: "30", 265 visibility: [ 266 "//external/cronet:__subpackages__", 267 ], 268 crate_name: "cxx", 269 crate_root: "src/lib.rs", 270 proc_macros: [ 271 "libcxxbridge_macro_cronet_aml_third_party_rust_cxxbridge_macro_v1_lib__proc_macro__testing", 272 ], 273 target: { 274 android_arm: { 275 edition: "2021", 276 cfgs: [ 277 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 278 ], 279 features: [ 280 "alloc", 281 "std", 282 ], 283 flags: [ 284 "-Cmetadata=cxx-1", 285 "-Cforce-unwind-tables=no", 286 "-Crelocation-model=pic", 287 "-Coverflow-checks=on", 288 "-Cdefault-linker-libraries", 289 "-Clto=no", 290 "-Ccodegen-units=1", 291 "-Copt-level=s", 292 "-Cdebuginfo=1", 293 "--cap-lints=allow", 294 "-Dunsafe_op_in_unsafe_fn", 295 "-Dwarnings", 296 "-Aunused-imports", 297 ], 298 }, 299 android_arm64: { 300 edition: "2021", 301 cfgs: [ 302 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 303 ], 304 features: [ 305 "alloc", 306 "std", 307 ], 308 flags: [ 309 "-Cmetadata=cxx-1", 310 "-Cforce-unwind-tables=no", 311 "-Crelocation-model=pic", 312 "-Coverflow-checks=on", 313 "-Cdefault-linker-libraries", 314 "-Clto=no", 315 "-Ccodegen-units=1", 316 "-Copt-level=3", 317 "-Cdebuginfo=1", 318 "--cap-lints=allow", 319 "-Dunsafe_op_in_unsafe_fn", 320 "-Dwarnings", 321 "-Aunused-imports", 322 ], 323 }, 324 android_riscv64: { 325 edition: "2021", 326 cfgs: [ 327 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 328 ], 329 features: [ 330 "alloc", 331 "std", 332 ], 333 flags: [ 334 "-Cmetadata=cxx-1", 335 "-Cforce-unwind-tables=no", 336 "-Crelocation-model=pic", 337 "-Coverflow-checks=on", 338 "-Cdefault-linker-libraries", 339 "-Clto=no", 340 "-Ccodegen-units=1", 341 "-Copt-level=s", 342 "-Cdebuginfo=1", 343 "--cap-lints=allow", 344 "-Dunsafe_op_in_unsafe_fn", 345 "-Dwarnings", 346 "-Aunused-imports", 347 ], 348 }, 349 android_x86: { 350 edition: "2021", 351 cfgs: [ 352 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 353 ], 354 features: [ 355 "alloc", 356 "std", 357 ], 358 flags: [ 359 "-Cmetadata=cxx-1", 360 "-Cforce-unwind-tables=no", 361 "-Crelocation-model=pic", 362 "-Coverflow-checks=on", 363 "-Cdefault-linker-libraries", 364 "-Clto=no", 365 "-Ccodegen-units=1", 366 "-Copt-level=s", 367 "-Cdebuginfo=1", 368 "--cap-lints=allow", 369 "-Dunsafe_op_in_unsafe_fn", 370 "-Dwarnings", 371 "-Aunused-imports", 372 ], 373 }, 374 android_x86_64: { 375 edition: "2021", 376 cfgs: [ 377 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 378 ], 379 features: [ 380 "alloc", 381 "std", 382 ], 383 flags: [ 384 "-Cmetadata=cxx-1", 385 "-Cforce-unwind-tables=no", 386 "-Crelocation-model=pic", 387 "-Coverflow-checks=on", 388 "-Cdefault-linker-libraries", 389 "-Clto=no", 390 "-Ccodegen-units=1", 391 "-Copt-level=s", 392 "-Cdebuginfo=1", 393 "--cap-lints=allow", 394 "-Dunsafe_op_in_unsafe_fn", 395 "-Dwarnings", 396 "-Aunused-imports", 397 ], 398 }, 399 host: { 400 edition: "2021", 401 cfgs: [ 402 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 403 ], 404 features: [ 405 "alloc", 406 "std", 407 ], 408 flags: [ 409 "-Cmetadata=cxx-1", 410 "-Cforce-unwind-tables=no", 411 "-Crelocation-model=pic", 412 "-Coverflow-checks=on", 413 "-Cdefault-linker-libraries", 414 "-Clto=no", 415 "-Ccodegen-units=1", 416 "-Copt-level=3", 417 "-Cdebuginfo=1", 418 "--cap-lints=allow", 419 "-Dunsafe_op_in_unsafe_fn", 420 "-Dwarnings", 421 "-Aunused-imports", 422 ], 423 compile_multilib: "64", 424 }, 425 }, 426} 427 428// GN: //third_party/rust/cxx/v1:lib__testing 429rust_ffi_static { 430 name: "libcxx_cronet_aml_third_party_rust_cxx_v1_lib__testing__FFI", 431 srcs: [ 432 "src/c_char.rs", 433 "src/cxx_string.rs", 434 "src/cxx_vector.rs", 435 "src/exception.rs", 436 "src/extern_type.rs", 437 "src/fmt.rs", 438 "src/function.rs", 439 "src/hash.rs", 440 "src/lib.rs", 441 "src/lossy.rs", 442 "src/macros/assert.rs", 443 "src/macros/mod.rs", 444 "src/memory.rs", 445 "src/opaque.rs", 446 "src/result.rs", 447 "src/rust_slice.rs", 448 "src/rust_str.rs", 449 "src/rust_string.rs", 450 "src/rust_type.rs", 451 "src/rust_vec.rs", 452 "src/shared_ptr.rs", 453 "src/sip.rs", 454 "src/symbols/exception.rs", 455 "src/symbols/mod.rs", 456 "src/symbols/rust_slice.rs", 457 "src/symbols/rust_str.rs", 458 "src/symbols/rust_string.rs", 459 "src/symbols/rust_vec.rs", 460 "src/type_id.rs", 461 "src/unique_ptr.rs", 462 "src/unwind.rs", 463 "src/vector.rs", 464 "src/weak_ptr.rs", 465 ], 466 host_supported: true, 467 apex_available: [ 468 "com.android.tethering", 469 ], 470 min_sdk_version: "30", 471 visibility: [ 472 "//external/cronet:__subpackages__", 473 ], 474 crate_name: "cxx", 475 crate_root: "src/lib.rs", 476 proc_macros: [ 477 "libcxxbridge_macro_cronet_aml_third_party_rust_cxxbridge_macro_v1_lib__proc_macro__testing", 478 ], 479 target: { 480 android_arm: { 481 edition: "2021", 482 cfgs: [ 483 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 484 ], 485 features: [ 486 "alloc", 487 "std", 488 ], 489 flags: [ 490 "-Cmetadata=cxx-1", 491 "-Cforce-unwind-tables=no", 492 "-Crelocation-model=pic", 493 "-Coverflow-checks=on", 494 "-Cdefault-linker-libraries", 495 "-Clto=no", 496 "-Ccodegen-units=1", 497 "-Copt-level=s", 498 "-Cdebuginfo=1", 499 "--cap-lints=allow", 500 "-Dunsafe_op_in_unsafe_fn", 501 "-Dwarnings", 502 "-Aunused-imports", 503 ], 504 }, 505 android_arm64: { 506 edition: "2021", 507 cfgs: [ 508 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 509 ], 510 features: [ 511 "alloc", 512 "std", 513 ], 514 flags: [ 515 "-Cmetadata=cxx-1", 516 "-Cforce-unwind-tables=no", 517 "-Crelocation-model=pic", 518 "-Coverflow-checks=on", 519 "-Cdefault-linker-libraries", 520 "-Clto=no", 521 "-Ccodegen-units=1", 522 "-Copt-level=3", 523 "-Cdebuginfo=1", 524 "--cap-lints=allow", 525 "-Dunsafe_op_in_unsafe_fn", 526 "-Dwarnings", 527 "-Aunused-imports", 528 ], 529 }, 530 android_riscv64: { 531 edition: "2021", 532 cfgs: [ 533 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 534 ], 535 features: [ 536 "alloc", 537 "std", 538 ], 539 flags: [ 540 "-Cmetadata=cxx-1", 541 "-Cforce-unwind-tables=no", 542 "-Crelocation-model=pic", 543 "-Coverflow-checks=on", 544 "-Cdefault-linker-libraries", 545 "-Clto=no", 546 "-Ccodegen-units=1", 547 "-Copt-level=s", 548 "-Cdebuginfo=1", 549 "--cap-lints=allow", 550 "-Dunsafe_op_in_unsafe_fn", 551 "-Dwarnings", 552 "-Aunused-imports", 553 ], 554 }, 555 android_x86: { 556 edition: "2021", 557 cfgs: [ 558 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 559 ], 560 features: [ 561 "alloc", 562 "std", 563 ], 564 flags: [ 565 "-Cmetadata=cxx-1", 566 "-Cforce-unwind-tables=no", 567 "-Crelocation-model=pic", 568 "-Coverflow-checks=on", 569 "-Cdefault-linker-libraries", 570 "-Clto=no", 571 "-Ccodegen-units=1", 572 "-Copt-level=s", 573 "-Cdebuginfo=1", 574 "--cap-lints=allow", 575 "-Dunsafe_op_in_unsafe_fn", 576 "-Dwarnings", 577 "-Aunused-imports", 578 ], 579 }, 580 android_x86_64: { 581 edition: "2021", 582 cfgs: [ 583 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 584 ], 585 features: [ 586 "alloc", 587 "std", 588 ], 589 flags: [ 590 "-Cmetadata=cxx-1", 591 "-Cforce-unwind-tables=no", 592 "-Crelocation-model=pic", 593 "-Coverflow-checks=on", 594 "-Cdefault-linker-libraries", 595 "-Clto=no", 596 "-Ccodegen-units=1", 597 "-Copt-level=s", 598 "-Cdebuginfo=1", 599 "--cap-lints=allow", 600 "-Dunsafe_op_in_unsafe_fn", 601 "-Dwarnings", 602 "-Aunused-imports", 603 ], 604 }, 605 host: { 606 edition: "2021", 607 cfgs: [ 608 "cr_rustc_revision=\"ab71ee7a9214c2793108a41efb065aa77aeb7326-2-llvmorg-19-init-8091-gab037c4f\"", 609 ], 610 features: [ 611 "alloc", 612 "std", 613 ], 614 flags: [ 615 "-Cmetadata=cxx-1", 616 "-Cforce-unwind-tables=no", 617 "-Crelocation-model=pic", 618 "-Coverflow-checks=on", 619 "-Cdefault-linker-libraries", 620 "-Clto=no", 621 "-Ccodegen-units=1", 622 "-Copt-level=3", 623 "-Cdebuginfo=1", 624 "--cap-lints=allow", 625 "-Dunsafe_op_in_unsafe_fn", 626 "-Dwarnings", 627 "-Aunused-imports", 628 ], 629 compile_multilib: "64", 630 }, 631 }, 632} 633