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 gen_android_bp.py. Do not edit. 16 17// GN: Package-Artificial 18package { 19 default_applicable_licenses: [ 20 "external_cronet_license", 21 ], 22} 23 24// GN: //build/rust/tests/bindgen_static_fns_test:bindgen_static_fns_test_lib__testing 25rust_ffi_static { 26 name: "libbuild_srust_stests_sbindgen_ustatic_ufns_utest_cbindgen_ustatic_ufns_utest_ulib__f44d85e251d4c74e", 27 srcs: [ 28 "src/lib.rs", 29 ], 30 host_cross_supported: false, 31 apex_available: [ 32 "com.android.tethering", 33 ], 34 min_sdk_version: "30", 35 visibility: [ 36 "//external/cronet:__subpackages__", 37 ], 38 crate_name: "build_srust_stests_sbindgen_ustatic_ufns_utest_cbindgen_ustatic_ufns_utest_ulib", 39 crate_root: "src/lib.rs", 40 rustlibs: [ 41 "libbuild_srust_stests_sbindgen_ustatic_ufns_utest_cc_ulib_ubindgen__dc584dbe23119bfd", 42 "libchromium__eb6193a5492aad4d", 43 ], 44 target: { 45 android_arm: { 46 edition: "2021", 47 cfgs: [ 48 "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", 49 ], 50 flags: [ 51 "-Dunsafe_op_in_unsafe_fn", 52 "-Dwarnings", 53 "-Aunused-imports", 54 "-Cforce-unwind-tables=yes", 55 "-Crelocation-model=pic", 56 "-Coverflow-checks=on", 57 "-Cdefault-linker-libraries", 58 "-Clto=no", 59 "-Ccodegen-units=1", 60 "-Copt-level=s", 61 "-Cdebuginfo=1", 62 ], 63 }, 64 android_arm64: { 65 edition: "2021", 66 cfgs: [ 67 "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", 68 ], 69 flags: [ 70 "-Dunsafe_op_in_unsafe_fn", 71 "-Dwarnings", 72 "-Aunused-imports", 73 "-Cforce-unwind-tables=yes", 74 "-Crelocation-model=pic", 75 "-Coverflow-checks=on", 76 "-Cdefault-linker-libraries", 77 "-Clto=no", 78 "-Ccodegen-units=1", 79 "-Copt-level=3", 80 "-Cdebuginfo=1", 81 ], 82 }, 83 android_riscv64: { 84 edition: "2021", 85 cfgs: [ 86 "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", 87 ], 88 flags: [ 89 "-Dunsafe_op_in_unsafe_fn", 90 "-Dwarnings", 91 "-Aunused-imports", 92 "-Cforce-unwind-tables=yes", 93 "-Crelocation-model=pic", 94 "-Coverflow-checks=on", 95 "-Cdefault-linker-libraries", 96 "-Clto=no", 97 "-Ccodegen-units=1", 98 "-Copt-level=s", 99 "-Cdebuginfo=1", 100 ], 101 }, 102 android_x86: { 103 edition: "2021", 104 cfgs: [ 105 "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", 106 ], 107 flags: [ 108 "-Dunsafe_op_in_unsafe_fn", 109 "-Dwarnings", 110 "-Aunused-imports", 111 "-Cforce-unwind-tables=yes", 112 "-Crelocation-model=pic", 113 "-Coverflow-checks=on", 114 "-Cdefault-linker-libraries", 115 "-Clto=no", 116 "-Ccodegen-units=1", 117 "-Copt-level=s", 118 "-Cdebuginfo=1", 119 ], 120 }, 121 android_x86_64: { 122 edition: "2021", 123 cfgs: [ 124 "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", 125 ], 126 flags: [ 127 "-Dunsafe_op_in_unsafe_fn", 128 "-Dwarnings", 129 "-Aunused-imports", 130 "-Cforce-unwind-tables=yes", 131 "-Crelocation-model=pic", 132 "-Coverflow-checks=on", 133 "-Cdefault-linker-libraries", 134 "-Clto=no", 135 "-Ccodegen-units=1", 136 "-Copt-level=3", 137 "-Cdebuginfo=1", 138 ], 139 }, 140 host: { 141 compile_multilib: "64", 142 }, 143 }, 144} 145 146// GN: //build/rust/tests/bindgen_static_fns_test:c_lib_bindgen_generator__testing 147rust_bindgen { 148 name: "libstable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator__testing", 149 host_cross_supported: false, 150 header_libs: [ 151 "stable_cronet_repository_root_include_dirs_anchor", 152 ], 153 apex_available: [ 154 "com.android.tethering", 155 ], 156 min_sdk_version: "30", 157 visibility: [ 158 "//external/cronet:__subpackages__", 159 ], 160 crate_name: "stable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator__testing", 161 source_stem: "bindings", 162 wrapper_src: "lib.h", 163 handle_static_inline: true, 164 static_inline_library: "libstable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator_static_fns__testing", 165 target: { 166 host: { 167 compile_multilib: "64", 168 }, 169 }, 170} 171 172// GN: //build/rust/tests/bindgen_static_fns_test:c_lib_bindgen_generator_static_fns__testing 173cc_library_static { 174 name: "libstable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator_static_fns__testing", 175 srcs: [ 176 ":libstable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator__testing", 177 ], 178 host_cross_supported: false, 179 defaults: [ 180 "stable_cronet_cc_defaults", 181 ], 182 cflags: [ 183 "-DANDROID", 184 "-DANDROID_NDK_VERSION_ROLL=r27_1", 185 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 186 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 187 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 188 "-DHAVE_SYS_UIO_H", 189 "-DNDEBUG", 190 "-DNVALGRIND", 191 "-DOFFICIAL_BUILD", 192 "-DTMP_REBUILD_HACK", 193 "-D_GNU_SOURCE", 194 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 195 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 196 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 197 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 198 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 199 "-D__STDC_CONSTANT_MACROS", 200 "-D__STDC_FORMAT_MACROS", 201 "-fdata-sections", 202 "-ffunction-sections", 203 "-fstack-protector", 204 "-fvisibility-inlines-hidden", 205 "-fvisibility=hidden", 206 "-g1", 207 ], 208 include_dirs: [ 209 ".", 210 "external/cronet/stable/", 211 "external/cronet/stable/buildtools/third_party/libc++/", 212 "external/cronet/stable/third_party/libc++/src/include", 213 "external/cronet/stable/third_party/libc++abi/src/include", 214 ], 215 cpp_std: "c++20", 216 ldflags: [ 217 "-Wl,--as-needed", 218 "-Wl,--gc-sections", 219 "-Wl,--icf=all", 220 ], 221 visibility: [ 222 "//external/cronet:__subpackages__", 223 ], 224 target: { 225 android_arm: { 226 cflags: [ 227 "-D_FORTIFY_SOURCE=2", 228 ], 229 }, 230 android_arm64: { 231 cflags: [ 232 "-D_FORTIFY_SOURCE=2", 233 "-D__ARM_NEON__=1", 234 "-O2", 235 "-mno-outline", 236 ], 237 }, 238 android_x86: { 239 cflags: [ 240 "-D_FORTIFY_SOURCE=2", 241 "-msse3", 242 ], 243 }, 244 android_x86_64: { 245 cflags: [ 246 "-D_FORTIFY_SOURCE=2", 247 "-O2", 248 "-msse3", 249 ], 250 }, 251 }, 252} 253 254// GN: //build/rust/tests/bindgen_static_fns_test:bindgen_static_fns_test__testing 255rust_binary { 256 name: "stable_cronet_build_rust_tests_bindgen_static_fns_test_bindgen_static_fns_test__testing", 257 srcs: [ 258 "main.rs", 259 ], 260 whole_static_libs: [ 261 "libstable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator_static_fns__testing", 262 "stable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib__testing", 263 "stable_cronet_buildtools_third_party_libc___libc____testing", 264 "stable_cronet_buildtools_third_party_libc__abi_libc__abi__testing", 265 ], 266 apex_available: [ 267 "com.android.tethering", 268 ], 269 min_sdk_version: "30", 270 visibility: [ 271 "//external/cronet:__subpackages__", 272 "//packages/modules/Connectivity:__subpackages__", 273 ], 274 crate_name: "bindgen_static_fns_test", 275 crate_root: "main.rs", 276 rustlibs: [ 277 "libbuild_srust_stests_sbindgen_ustatic_ufns_utest_cbindgen_ustatic_ufns_utest_ulib__f44d85e251d4c74e", 278 "libbuild_srust_stests_sbindgen_ustatic_ufns_utest_cc_ulib_ubindgen__dc584dbe23119bfd", 279 "libchromium__eb6193a5492aad4d", 280 ], 281 target: { 282 android_arm: { 283 edition: "2021", 284 cfgs: [ 285 "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", 286 ], 287 flags: [ 288 "-Dunsafe_op_in_unsafe_fn", 289 "-Dwarnings", 290 "-Aunused-imports", 291 "-Cforce-unwind-tables=yes", 292 "-Crelocation-model=pic", 293 "-Coverflow-checks=on", 294 "-Cdefault-linker-libraries", 295 "-Clto=no", 296 "-Ccodegen-units=1", 297 "-Copt-level=s", 298 "-Cdebuginfo=1", 299 "-Funsafe_code", 300 ], 301 }, 302 android_arm64: { 303 edition: "2021", 304 cfgs: [ 305 "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", 306 ], 307 flags: [ 308 "-Dunsafe_op_in_unsafe_fn", 309 "-Dwarnings", 310 "-Aunused-imports", 311 "-Cforce-unwind-tables=yes", 312 "-Crelocation-model=pic", 313 "-Coverflow-checks=on", 314 "-Cdefault-linker-libraries", 315 "-Clto=no", 316 "-Ccodegen-units=1", 317 "-Copt-level=3", 318 "-Cdebuginfo=1", 319 "-Funsafe_code", 320 ], 321 }, 322 android_riscv64: { 323 edition: "2021", 324 cfgs: [ 325 "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", 326 ], 327 flags: [ 328 "-Dunsafe_op_in_unsafe_fn", 329 "-Dwarnings", 330 "-Aunused-imports", 331 "-Cforce-unwind-tables=yes", 332 "-Crelocation-model=pic", 333 "-Coverflow-checks=on", 334 "-Cdefault-linker-libraries", 335 "-Clto=no", 336 "-Ccodegen-units=1", 337 "-Copt-level=s", 338 "-Cdebuginfo=1", 339 "-Funsafe_code", 340 ], 341 }, 342 android_x86: { 343 edition: "2021", 344 cfgs: [ 345 "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", 346 ], 347 flags: [ 348 "-Dunsafe_op_in_unsafe_fn", 349 "-Dwarnings", 350 "-Aunused-imports", 351 "-Cforce-unwind-tables=yes", 352 "-Crelocation-model=pic", 353 "-Coverflow-checks=on", 354 "-Cdefault-linker-libraries", 355 "-Clto=no", 356 "-Ccodegen-units=1", 357 "-Copt-level=s", 358 "-Cdebuginfo=1", 359 "-Funsafe_code", 360 ], 361 }, 362 android_x86_64: { 363 edition: "2021", 364 cfgs: [ 365 "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", 366 ], 367 flags: [ 368 "-Dunsafe_op_in_unsafe_fn", 369 "-Dwarnings", 370 "-Aunused-imports", 371 "-Cforce-unwind-tables=yes", 372 "-Crelocation-model=pic", 373 "-Coverflow-checks=on", 374 "-Cdefault-linker-libraries", 375 "-Clto=no", 376 "-Ccodegen-units=1", 377 "-Copt-level=3", 378 "-Cdebuginfo=1", 379 "-Funsafe_code", 380 ], 381 }, 382 host: { 383 compile_multilib: "64", 384 }, 385 }, 386} 387 388// GN: //build/rust/tests/bindgen_static_fns_test:c_lib__testing 389cc_library_static { 390 name: "stable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib__testing", 391 srcs: [ 392 "lib.c", 393 ], 394 host_cross_supported: false, 395 defaults: [ 396 "stable_cronet_cc_defaults", 397 ], 398 cflags: [ 399 "-DANDROID", 400 "-DANDROID_NDK_VERSION_ROLL=r27_1", 401 "-DCOMPONENT_IMPLEMENTATION", 402 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 403 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 404 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 405 "-DHAVE_SYS_UIO_H", 406 "-DNDEBUG", 407 "-DNVALGRIND", 408 "-DOFFICIAL_BUILD", 409 "-DTMP_REBUILD_HACK", 410 "-D_GNU_SOURCE", 411 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 412 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 413 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 414 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 415 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 416 "-D__STDC_CONSTANT_MACROS", 417 "-D__STDC_FORMAT_MACROS", 418 "-fdata-sections", 419 "-ffunction-sections", 420 "-fstack-protector", 421 "-fvisibility-inlines-hidden", 422 "-fvisibility=hidden", 423 "-g1", 424 ], 425 include_dirs: [ 426 "external/cronet/stable/", 427 "external/cronet/stable/buildtools/third_party/libc++/", 428 "external/cronet/stable/third_party/libc++/src/include", 429 "external/cronet/stable/third_party/libc++abi/src/include", 430 ], 431 cpp_std: "c++20", 432 ldflags: [ 433 "-Wl,--as-needed", 434 "-Wl,--gc-sections", 435 "-Wl,--icf=all", 436 ], 437 visibility: [ 438 "//external/cronet:__subpackages__", 439 ], 440 target: { 441 android_arm: { 442 cflags: [ 443 "-D_FORTIFY_SOURCE=2", 444 ], 445 }, 446 android_arm64: { 447 cflags: [ 448 "-D_FORTIFY_SOURCE=2", 449 "-D__ARM_NEON__=1", 450 "-O2", 451 "-mno-outline", 452 ], 453 }, 454 android_x86: { 455 cflags: [ 456 "-D_FORTIFY_SOURCE=2", 457 "-msse3", 458 ], 459 }, 460 android_x86_64: { 461 cflags: [ 462 "-D_FORTIFY_SOURCE=2", 463 "-O2", 464 "-msse3", 465 ], 466 }, 467 }, 468} 469