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