// Copyright (C) 2022 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // This file is automatically generated by gen_android_bp.py. Do not edit. // GN: Package-Artificial package { default_applicable_licenses: [ "external_cronet_license", ], } // GN: //build/rust/tests/bindgen_static_fns_test:bindgen_static_fns_test_lib__testing rust_ffi_static { name: "libbuild_srust_stests_sbindgen_ustatic_ufns_utest_cbindgen_ustatic_ufns_utest_ulib__f44d85e251d4c74e", srcs: [ "src/lib.rs", ], host_cross_supported: false, apex_available: [ "com.android.tethering", ], min_sdk_version: "30", visibility: [ "//external/cronet:__subpackages__", ], crate_name: "build_srust_stests_sbindgen_ustatic_ufns_utest_cbindgen_ustatic_ufns_utest_ulib", crate_root: "src/lib.rs", rustlibs: [ "libbuild_srust_stests_sbindgen_ustatic_ufns_utest_cc_ulib_ubindgen__dc584dbe23119bfd", "libchromium__eb6193a5492aad4d", ], target: { android_arm: { edition: "2021", cfgs: [ "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", ], flags: [ "-Dunsafe_op_in_unsafe_fn", "-Dwarnings", "-Aunused-imports", "-Cforce-unwind-tables=yes", "-Crelocation-model=pic", "-Coverflow-checks=on", "-Cdefault-linker-libraries", "-Clto=no", "-Ccodegen-units=1", "-Copt-level=s", "-Cdebuginfo=1", ], }, android_arm64: { edition: "2021", cfgs: [ "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", ], flags: [ "-Dunsafe_op_in_unsafe_fn", "-Dwarnings", "-Aunused-imports", "-Cforce-unwind-tables=yes", "-Crelocation-model=pic", "-Coverflow-checks=on", "-Cdefault-linker-libraries", "-Clto=no", "-Ccodegen-units=1", "-Copt-level=3", "-Cdebuginfo=1", ], }, android_riscv64: { edition: "2021", cfgs: [ "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", ], flags: [ "-Dunsafe_op_in_unsafe_fn", "-Dwarnings", "-Aunused-imports", "-Cforce-unwind-tables=yes", "-Crelocation-model=pic", "-Coverflow-checks=on", "-Cdefault-linker-libraries", "-Clto=no", "-Ccodegen-units=1", "-Copt-level=s", "-Cdebuginfo=1", ], }, android_x86: { edition: "2021", cfgs: [ "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", ], flags: [ "-Dunsafe_op_in_unsafe_fn", "-Dwarnings", "-Aunused-imports", "-Cforce-unwind-tables=yes", "-Crelocation-model=pic", "-Coverflow-checks=on", "-Cdefault-linker-libraries", "-Clto=no", "-Ccodegen-units=1", "-Copt-level=s", "-Cdebuginfo=1", ], }, android_x86_64: { edition: "2021", cfgs: [ "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", ], flags: [ "-Dunsafe_op_in_unsafe_fn", "-Dwarnings", "-Aunused-imports", "-Cforce-unwind-tables=yes", "-Crelocation-model=pic", "-Coverflow-checks=on", "-Cdefault-linker-libraries", "-Clto=no", "-Ccodegen-units=1", "-Copt-level=3", "-Cdebuginfo=1", ], }, host: { compile_multilib: "64", }, }, } // GN: //build/rust/tests/bindgen_static_fns_test:c_lib_bindgen_generator__testing rust_bindgen { name: "libstable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator__testing", host_cross_supported: false, header_libs: [ "stable_cronet_repository_root_include_dirs_anchor", ], apex_available: [ "com.android.tethering", ], min_sdk_version: "30", visibility: [ "//external/cronet:__subpackages__", ], crate_name: "stable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator__testing", source_stem: "bindings", wrapper_src: "lib.h", handle_static_inline: true, static_inline_library: "libstable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator_static_fns__testing", target: { host: { compile_multilib: "64", }, }, } // GN: //build/rust/tests/bindgen_static_fns_test:c_lib_bindgen_generator_static_fns__testing cc_library_static { name: "libstable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator_static_fns__testing", srcs: [ ":libstable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator__testing", ], host_cross_supported: false, defaults: [ "stable_cronet_cc_defaults", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r27_1", "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", "-DDYNAMIC_ANNOTATIONS_ENABLED=0", "-DHAVE_SYS_UIO_H", "-DNDEBUG", "-DNVALGRIND", "-DOFFICIAL_BUILD", "-DTMP_REBUILD_HACK", "-D_GNU_SOURCE", "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", "-D__STDC_CONSTANT_MACROS", "-D__STDC_FORMAT_MACROS", "-fdata-sections", "-ffunction-sections", "-fstack-protector", "-fvisibility-inlines-hidden", "-fvisibility=hidden", "-g1", ], include_dirs: [ ".", "external/cronet/stable/", "external/cronet/stable/buildtools/third_party/libc++/", "external/cronet/stable/third_party/libc++/src/include", "external/cronet/stable/third_party/libc++abi/src/include", ], cpp_std: "c++20", ldflags: [ "-Wl,--as-needed", "-Wl,--gc-sections", "-Wl,--icf=all", ], visibility: [ "//external/cronet:__subpackages__", ], target: { android_arm: { cflags: [ "-D_FORTIFY_SOURCE=2", ], }, android_arm64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-D__ARM_NEON__=1", "-O2", "-mno-outline", ], }, android_x86: { cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, android_x86_64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-O2", "-msse3", ], }, }, } // GN: //build/rust/tests/bindgen_static_fns_test:bindgen_static_fns_test__testing rust_binary { name: "stable_cronet_build_rust_tests_bindgen_static_fns_test_bindgen_static_fns_test__testing", srcs: [ "main.rs", ], whole_static_libs: [ "libstable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib_bindgen_generator_static_fns__testing", "stable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib__testing", "stable_cronet_buildtools_third_party_libc___libc____testing", "stable_cronet_buildtools_third_party_libc__abi_libc__abi__testing", ], apex_available: [ "com.android.tethering", ], min_sdk_version: "30", visibility: [ "//external/cronet:__subpackages__", "//packages/modules/Connectivity:__subpackages__", ], crate_name: "bindgen_static_fns_test", crate_root: "main.rs", rustlibs: [ "libbuild_srust_stests_sbindgen_ustatic_ufns_utest_cbindgen_ustatic_ufns_utest_ulib__f44d85e251d4c74e", "libbuild_srust_stests_sbindgen_ustatic_ufns_utest_cc_ulib_ubindgen__dc584dbe23119bfd", "libchromium__eb6193a5492aad4d", ], target: { android_arm: { edition: "2021", cfgs: [ "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", ], flags: [ "-Dunsafe_op_in_unsafe_fn", "-Dwarnings", "-Aunused-imports", "-Cforce-unwind-tables=yes", "-Crelocation-model=pic", "-Coverflow-checks=on", "-Cdefault-linker-libraries", "-Clto=no", "-Ccodegen-units=1", "-Copt-level=s", "-Cdebuginfo=1", "-Funsafe_code", ], }, android_arm64: { edition: "2021", cfgs: [ "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", ], flags: [ "-Dunsafe_op_in_unsafe_fn", "-Dwarnings", "-Aunused-imports", "-Cforce-unwind-tables=yes", "-Crelocation-model=pic", "-Coverflow-checks=on", "-Cdefault-linker-libraries", "-Clto=no", "-Ccodegen-units=1", "-Copt-level=3", "-Cdebuginfo=1", "-Funsafe_code", ], }, android_riscv64: { edition: "2021", cfgs: [ "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", ], flags: [ "-Dunsafe_op_in_unsafe_fn", "-Dwarnings", "-Aunused-imports", "-Cforce-unwind-tables=yes", "-Crelocation-model=pic", "-Coverflow-checks=on", "-Cdefault-linker-libraries", "-Clto=no", "-Ccodegen-units=1", "-Copt-level=s", "-Cdebuginfo=1", "-Funsafe_code", ], }, android_x86: { edition: "2021", cfgs: [ "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", ], flags: [ "-Dunsafe_op_in_unsafe_fn", "-Dwarnings", "-Aunused-imports", "-Cforce-unwind-tables=yes", "-Crelocation-model=pic", "-Coverflow-checks=on", "-Cdefault-linker-libraries", "-Clto=no", "-Ccodegen-units=1", "-Copt-level=s", "-Cdebuginfo=1", "-Funsafe_code", ], }, android_x86_64: { edition: "2021", cfgs: [ "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"", ], flags: [ "-Dunsafe_op_in_unsafe_fn", "-Dwarnings", "-Aunused-imports", "-Cforce-unwind-tables=yes", "-Crelocation-model=pic", "-Coverflow-checks=on", "-Cdefault-linker-libraries", "-Clto=no", "-Ccodegen-units=1", "-Copt-level=3", "-Cdebuginfo=1", "-Funsafe_code", ], }, host: { compile_multilib: "64", }, }, } // GN: //build/rust/tests/bindgen_static_fns_test:c_lib__testing cc_library_static { name: "stable_cronet_build_rust_tests_bindgen_static_fns_test_c_lib__testing", srcs: [ "lib.c", ], host_cross_supported: false, defaults: [ "stable_cronet_cc_defaults", ], cflags: [ "-DANDROID", "-DANDROID_NDK_VERSION_ROLL=r27_1", "-DCOMPONENT_IMPLEMENTATION", "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", "-DDYNAMIC_ANNOTATIONS_ENABLED=0", "-DHAVE_SYS_UIO_H", "-DNDEBUG", "-DNVALGRIND", "-DOFFICIAL_BUILD", "-DTMP_REBUILD_HACK", "-D_GNU_SOURCE", "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", "-D__STDC_CONSTANT_MACROS", "-D__STDC_FORMAT_MACROS", "-fdata-sections", "-ffunction-sections", "-fstack-protector", "-fvisibility-inlines-hidden", "-fvisibility=hidden", "-g1", ], include_dirs: [ "external/cronet/stable/", "external/cronet/stable/buildtools/third_party/libc++/", "external/cronet/stable/third_party/libc++/src/include", "external/cronet/stable/third_party/libc++abi/src/include", ], cpp_std: "c++20", ldflags: [ "-Wl,--as-needed", "-Wl,--gc-sections", "-Wl,--icf=all", ], visibility: [ "//external/cronet:__subpackages__", ], target: { android_arm: { cflags: [ "-D_FORTIFY_SOURCE=2", ], }, android_arm64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-D__ARM_NEON__=1", "-O2", "-mno-outline", ], }, android_x86: { cflags: [ "-D_FORTIFY_SOURCE=2", "-msse3", ], }, android_x86_64: { cflags: [ "-D_FORTIFY_SOURCE=2", "-O2", "-msse3", ], }, }, }