| // This file is generated by cargo2android.py --run --dependencies --tests --device --features=default,extra_traits,std --patch=patches/Android.bp.patch. |
| |
| rust_defaults { |
| name: "rust_libc_defaults", |
| crate_name: "libc", |
| srcs: ["src/lib.rs"], |
| test_suites: ["general-tests"], |
| auto_gen_config: true, |
| edition: "2015", |
| features: [ |
| "default", |
| "extra_traits", |
| "std", |
| ], |
| flags: [ |
| "--cfg freebsd11", |
| "--cfg libc_align", |
| "--cfg libc_cfg_target_vendor", |
| "--cfg libc_const_size_of", |
| "--cfg libc_core_cvoid", |
| "--cfg libc_packedN", |
| "--cfg libc_priv_mod_use", |
| "--cfg libc_union", |
| ], |
| } |
| |
| rust_test_host { |
| name: "libc_host_test_src_lib", |
| defaults: ["rust_libc_defaults"], |
| } |
| |
| rust_test { |
| name: "libc_device_test_src_lib", |
| defaults: ["rust_libc_defaults"], |
| } |
| |
| rust_defaults { |
| name: "rust_libc_defaults_const_fn", |
| crate_name: "const_fn", |
| srcs: ["tests/const_fn.rs"], |
| test_suites: ["general-tests"], |
| auto_gen_config: true, |
| edition: "2015", |
| features: [ |
| "default", |
| "extra_traits", |
| "std", |
| ], |
| flags: [ |
| "--cfg freebsd11", |
| "--cfg libc_align", |
| "--cfg libc_cfg_target_vendor", |
| "--cfg libc_const_size_of", |
| "--cfg libc_core_cvoid", |
| "--cfg libc_packedN", |
| "--cfg libc_priv_mod_use", |
| "--cfg libc_union", |
| ], |
| rustlibs: [ |
| "liblibc", |
| ], |
| } |
| |
| rust_test_host { |
| name: "libc_host_test_tests_const_fn", |
| defaults: ["rust_libc_defaults_const_fn"], |
| } |
| |
| rust_test { |
| name: "libc_device_test_tests_const_fn", |
| defaults: ["rust_libc_defaults_const_fn"], |
| } |
| |
| rust_library { |
| name: "liblibc", |
| host_supported: true, |
| crate_name: "libc", |
| srcs: ["src/lib.rs"], |
| edition: "2015", |
| features: [ |
| "default", |
| "extra_traits", |
| "std", |
| ], |
| flags: [ |
| "--cfg freebsd11", |
| "--cfg libc_align", |
| "--cfg libc_cfg_target_vendor", |
| "--cfg libc_const_size_of", |
| "--cfg libc_core_cvoid", |
| "--cfg libc_packedN", |
| "--cfg libc_priv_mod_use", |
| "--cfg libc_union", |
| ], |
| apex_available: [ |
| "//apex_available:platform", |
| "com.android.resolv", |
| ], |
| min_sdk_version: "29", |
| } |