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 5package { 6 default_applicable_licenses: ["external_rust_cros-libva_license"], 7} 8 9rust_binary_host { 10 name: "cros_libva_bindgen_build", 11 srcs: ["build.rs"], 12 rustlibs: [ 13 "libbindgen", 14 "libbindgen_cmd", 15 ], 16 lints: "android", 17 clippy_lints: "android", 18 19 vendor: true, 20 enabled: false, 21 arch: { 22 x86_64: { 23 enabled: true, 24 }, 25 }, 26} 27 28rust_bindgen { 29 name: "libcros_libva_bindgen", 30 crate_name: "cros_libva_bindgen", 31 custom_bindgen: "cros_libva_bindgen_build", 32 wrapper_src: "android_wrapper.h", 33 source_stem: "bindings", 34 cflags: ["-I external/rust/cros-libva/lib"], 35 visibility: ["//external/rust/cros-libva/lib"], 36 37 vendor: true, 38 enabled: false, 39 arch: { 40 x86_64: { 41 enabled: true, 42 // Libva headers that bindings source is generated from. 43 header_libs: ["libva_headers"], 44 }, 45 }, 46} 47