blob: e1ae101c1091c289264a6f0be21a6b705f2989c5 [file] [log] [blame]
// Copyright 2024 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is generated by cargo_embargo.
// Do not modify this file because the changes will be overridden on upgrade.
package {
default_applicable_licenses: ["external_rust_cros-libva_license"],
}
soong_config_module_type_import {
from: "system/cros-codecs/Android.bp",
module_types: [
"rust_defaults_cros_codecs_protected_content",
],
}
rust_defaults_cros_codecs_protected_content {
name: "cros_libva_protected_content_rust_library_defaults",
soong_config_variables: {
intel_protected_content: {
features: ["intel-protected-content-headers"],
},
},
}
rust_library {
name: "libcros_libva",
crate_name: "cros_libva",
cargo_env_compat: true,
cargo_pkg_version: "0.0.8",
crate_root: "src/lib.rs",
edition: "2021",
defaults: ["cros_libva_protected_content_rust_library_defaults"],
rustlibs: [
"libbitflags",
"liblog_rust",
"libthiserror",
],
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
cfgs: [
"libva_1_21_or_higher",
"libva_1_20_or_higher",
"libva_1_19_or_higher",
"libva_1_16_or_higher",
],
vendor: true,
enabled: false,
arch: {
x86_64: {
enabled: true,
// Bindgen-generated bindings of our local libva headers.
srcs: [":libcros_libva_bindgen"],
shared_libs: ["libva"],
},
},
}