forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits

Android.bp63 lines, 1.6 KiBHistoryRawDownload
1// Copyright 2024 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// This file is generated by cargo_embargo.
6// Do not modify this file because the changes will be overridden on upgrade.
7
8package {
9 default_applicable_licenses: ["external_rust_cros-libva_license"],
10}
11
12soong_config_module_type_import {
13 from: "system/cros-codecs/Android.bp",
14 module_types: [
15 "rust_defaults_cros_codecs_protected_content",
16 ],
17}
18
19rust_defaults_cros_codecs_protected_content {
20 name: "cros_libva_protected_content_rust_library_defaults",
21 soong_config_variables: {
22 intel_protected_content: {
23 features: ["intel-protected-content-headers"],
24 },
25 },
26}
27
28rust_library {
29 name: "libcros_libva",
30 crate_name: "cros_libva",
31 cargo_env_compat: true,
32 cargo_pkg_version: "0.0.8",
33 crate_root: "src/lib.rs",
34 edition: "2021",
35 defaults: ["cros_libva_protected_content_rust_library_defaults"],
36 rustlibs: [
37 "libbitflags",
38 "liblog_rust",
39 "libthiserror",
40 ],
41 apex_available: [
42 "//apex_available:platform",
43 "//apex_available:anyapex",
44 ],
45
46 cfgs: [
47 "libva_1_21_or_higher",
48 "libva_1_20_or_higher",
49 "libva_1_19_or_higher",
50 "libva_1_16_or_higher",
51 ],
52
53 vendor: true,
54 enabled: false,
55 arch: {
56 x86_64: {
57 enabled: true,
58 // Bindgen-generated bindings of our local libva headers.
59 srcs: [":libcros_libva_bindgen"],
60 shared_libs: ["libva"],
61 },
62 },
63}