1// This file is generated by cargo2android.py --run --device --tests --dependencies --global_defaults=crosvm_defaults --add_workspace. 2// Do not modify this file as changes will be overridden on upgrade. 3 4package { 5 // See: http://go/android-license-faq 6 // A large-scale-change added 'default_applicable_licenses' to import 7 // all of the 'license_kinds' from "external_crosvm_license" 8 // to get the below license kinds: 9 // SPDX-license-identifier-BSD 10 default_applicable_licenses: ["external_crosvm_license"], 11} 12 13rust_library { 14 name: "libtempfile", 15 defaults: ["crosvm_defaults"], 16 host_supported: true, 17 crate_name: "tempfile", 18 srcs: ["src/lib.rs"], 19 edition: "2018", 20 rustlibs: [ 21 "liblibc", 22 ], 23} 24 25rust_defaults { 26 name: "tempfile_defaults", 27 defaults: ["crosvm_defaults"], 28 crate_name: "tempfile", 29 srcs: ["src/lib.rs"], 30 test_suites: ["general-tests"], 31 auto_gen_config: true, 32 edition: "2018", 33 rustlibs: [ 34 "liblibc", 35 ], 36} 37 38rust_test_host { 39 name: "tempfile_host_test_src_lib", 40 defaults: ["tempfile_defaults"], 41 test_options: { 42 unit_test: true, 43 }, 44} 45 46rust_test { 47 name: "tempfile_device_test_src_lib", 48 defaults: ["tempfile_defaults"], 49} 50 51// dependent_library ["feature_list"] 52// libc-0.2.93 "default,std" 53