Skip to content

Commit

Permalink
Fix build in AOSP (#27)
Browse files Browse the repository at this point in the history
This patch is upstream of AOSP change. [1]

[1] https://android-review.git.corp.google.com/c/platform/external/rust/cros-libva/+/3393139

Co-authored-by: Hirokazu Honda <[email protected]>
  • Loading branch information
rosetta-jpn and Hirokazu Honda authored Dec 6, 2024
1 parent 83ff5c5 commit be639f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 32 deletions.
6 changes: 6 additions & 0 deletions android/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ rust_binary_host {
clippy_lints: "android",

vendor: true,
enabled: false,
arch: {
x86_64: {
enabled: true,
},
},
}

rust_bindgen {
Expand Down
1 change: 0 additions & 1 deletion cargo_embargo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
}
},
"run_cargo": false,
"tests": true
}
32 changes: 1 addition & 31 deletions lib/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,6 @@ package {
default_applicable_licenses: ["external_rust_cros-libva_license"],
}

rust_test {
name: "cros-libva_test_src_lib",
crate_name: "cros_libva",
cargo_env_compat: true,
cargo_pkg_version: "0.0.8",
crate_root: "src/lib.rs",
test_suites: ["general-tests"],
auto_gen_config: true,
test_options: {
unit_test: true,
},
edition: "2021",
rustlibs: [
"libbitflags",
"libcrc32fast",
"liblog_rust",
"libthiserror",
],

vendor: true,
enabled: false,
arch: {
x86_64: {
enabled: true,
// Bindgen-generated bindings of our local libva headers.
srcs: [":libcros_libva_bindgen"],
},
},
}

rust_library {
name: "libcros_libva",
crate_name: "cros_libva",
Expand Down Expand Up @@ -70,7 +40,7 @@ rust_library {
enabled: true,
// Bindgen-generated bindings of our local libva headers.
srcs: [":libcros_libva_bindgen"],
shared_libs: [ "libva" ],
shared_libs: ["libva"],
},
},
}

0 comments on commit be639f5

Please sign in to comment.