commit | a1704be974e216b40cd40449989c688d079b1cc6 | [log] [tgz] |
---|---|---|
author | Marcin Radomski <dextero@google.com> | Tue Mar 05 11:00:10 2024 +0000 |
committer | Marcin Radomski <dextero@google.com> | Mon Mar 18 18:29:34 2024 +0000 |
tree | a3aae894ab120271e87f7da52bdcb2035b6eba44 | |
parent | 2d533abeaa34dbdc21b031ce39279d324b220017 [diff] |
libdrm: add bindgen-generated Rust bindings This provides the bindings necessary to use the Rust drm crate within Android source tree. Bindgen flags used in the rust_bindgen definition, as well as the workaround described in wrapper.h were based on drm-ffi crate's build.rs [1]. Looking at other rust_bindgen modules, they are generally defined alongside the native module they provide bindings to. Details: go/drm-gbm-rust-crates-for-android [1] https://github.com/Smithay/drm-rs/blob/328742fddc675b3370057b382eb54acbc9b48c79/drm-ffi/drm-sys/build.rs#L126 Bug: 328178122 Test: lunch aosp_cf_x86_64_only_phone-trunk_staging-userdebug && m Test: m libdrm_sys Change-Id: I18ea318dcd4a0734d647fe7a703e8c3ab7442a52