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_library { 16 name: "librutabaga_gfx", 17 defaults: ["crosvm_inner_defaults"], 18 host_supported: true, 19 crate_name: "rutabaga_gfx", 20 cargo_env_compat: true, 21 cargo_pkg_version: "0.1.3", 22 crate_root: "src/lib.rs", 23 edition: "2021", 24 features: [ 25 "gfxstream", 26 "virgl_renderer", 27 ], 28 rustlibs: [ 29 "libcfg_if", 30 "liblibc", 31 "liblog_rust", 32 "libnix", 33 "libserde", 34 "libserde_json", 35 "libthiserror", 36 "libzerocopy", 37 ], 38 proc_macros: ["libremain"], 39 cfgs: [ 40 "gfxstream_unstable", 41 ], 42 shared_libs: [ 43 "libc++", 44 "libbase", 45 ], 46 target: { 47 android: { 48 shared_libs: [ 49 "libnativewindow", 50 "libcutils", 51 "liblog", 52 ], 53 }, 54 host: { 55 features: ["vulkano"], 56 rustlibs: [ 57 "libvulkano", 58 ], 59 }, 60 }, 61 static_libs: [ 62 "libepoxy", 63 "libgfxstream_backend", 64 "libvirglrenderer", 65 ], 66} 67 68rust_library { 69 name: "librutabaga_gfx_gfxstream", 70 host_supported: true, 71 vendor_available: true, 72 crate_name: "rutabaga_gfx", 73 cargo_env_compat: true, 74 cargo_pkg_version: "0.1.2", 75 srcs: ["src/lib.rs"], 76 edition: "2021", 77 rustlibs: [ 78 "libcfg_if", 79 "liblibc", 80 "liblog_rust", 81 "libnix", 82 "libserde", 83 "libserde_json", 84 "libthiserror", 85 "libzerocopy", 86 ], 87 proc_macros: ["libremain"], 88 target: { 89 host: { 90 cfgs: [ 91 "fence_passing_option1", 92 "gfxstream_unstable", 93 ], 94 features: [ 95 "gfxstream", 96 "vulkano", 97 ], 98 shared_libs: [ 99 "libgfxstream_backend", 100 ], 101 compile_multilib: "64", 102 rustlibs: [ 103 "libvulkano", 104 ], 105 }, 106 android: { 107 cfgs: [ 108 "fence_passing_option1", 109 "gfxstream_unstable", 110 ], 111 }, 112 }, 113} 114 115rust_test { 116 name: "rutabaga_gfx_test_src_lib", 117 defaults: ["crosvm_inner_defaults"], 118 host_supported: true, 119 crate_name: "rutabaga_gfx", 120 cargo_env_compat: true, 121 cargo_pkg_version: "0.1.3", 122 crate_root: "src/lib.rs", 123 test_suites: ["general-tests"], 124 auto_gen_config: true, 125 test_options: { 126 unit_test: true, 127 }, 128 edition: "2021", 129 features: [ 130 "gfxstream", 131 "virgl_renderer", 132 ], 133 rustlibs: [ 134 "libcfg_if", 135 "liblibc", 136 "liblog_rust", 137 "libnix", 138 "libserde", 139 "libserde_json", 140 "libthiserror", 141 "libzerocopy", 142 ], 143 proc_macros: ["libremain"], 144 shared_libs: [ 145 "libepoxy", 146 "libgfxstream_backend", 147 "libvirglrenderer", 148 ], 149} 150