1// This file is generated by cargo_embargo. 2// Do not modify this file after the first "rust_*" or "genrule" module 3// because the changes will be overridden on upgrade. 4// Content before the first "rust_*" or "genrule" module is preserved. 5 6package { 7 // See: http://go/android-license-faq 8 // A large-scale-change added 'default_applicable_licenses' to import 9 // all of the 'license_kinds' from "external_crosvm_license" 10 // to get the below license kinds: 11 // SPDX-license-identifier-BSD 12 default_applicable_licenses: ["external_crosvm_license"], 13} 14 15rust_ffi_shared { 16 name: "libcrosvm_control_shared", 17 defaults: ["crosvm_inner_defaults"], 18 host_supported: true, 19 crate_name: "crosvm_control", 20 cargo_env_compat: true, 21 cargo_pkg_version: "0.1.0", 22 srcs: ["src/lib.rs"], 23 edition: "2021", 24 rustlibs: [ 25 "libbase_rust", 26 "liblibc", 27 "libswap", 28 "libvm_control", 29 ], 30 // The build.rs file compiles the generated C header just as a test, which 31 // tricks cargo_embargo into thinking there is a library dependency that 32 // doesn't actually exist. 33 // 34 // static_libs: ["libcrosvm_control_test"], 35} 36 37rust_ffi_static { 38 name: "libcrosvm_control_static", 39 defaults: ["crosvm_inner_defaults"], 40 host_supported: true, 41 crate_name: "crosvm_control", 42 cargo_env_compat: true, 43 cargo_pkg_version: "0.1.0", 44 srcs: ["src/lib.rs"], 45 edition: "2021", 46 rustlibs: [ 47 "libbase_rust", 48 "liblibc", 49 "libswap", 50 "libvm_control", 51 ], 52 // The build.rs file compiles the generated C header just as a test, which 53 // tricks cargo_embargo into thinking there is a library dependency that 54 // doesn't actually exist. 55 // 56 // static_libs: ["libcrosvm_control_test"], 57} 58