Skip to content

Commit

Permalink
ndk-sys: Regenerate against NDK r25.0 (build 8775105)
Browse files Browse the repository at this point in the history
Note that an `enum` suffix had to be added to `AMidi.h` to prevent
`bindgen` from erroring out on:

    ~/Android/Sdk/ndk/25.0.8775105/toolchains/llvm/prebuilt/linux-x86_64/sysroot//usr/include/amidi/AMidi.h:230:1: error: must use 'enum' tag to refer to type 'AMidiDevice_Protocol'
    ~/Android/Sdk/ndk/25.0.8775105/toolchains/llvm/prebuilt/linux-x86_64/sysroot//usr/include/amidi/AMidi.h:230:1: error: must use 'enum' tag to refer to type 'AMidiDevice_Protocol', err: true
    thread 'main' panicked at 'Unable to generate bindings: ()', src/main.rs:52:36
    stack backtrace:
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Also list this NDK version in the `ndk-sys` version metadata, exposing
it on the crates.io frontpage.
  • Loading branch information
MarijnS95 committed Jul 26, 2022
1 parent 9a8be25 commit 80fa818
Show file tree
Hide file tree
Showing 6 changed files with 11,492 additions and 3,761 deletions.
2 changes: 1 addition & 1 deletion ndk-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ndk-sys"
version = "0.4.0"
version = "0.4.0+25.0.8775105"
authors = ["The Rust Windowing contributors"]
edition = "2018"
description = "FFI bindings for the Android NDK"
Expand Down
3 changes: 3 additions & 0 deletions ndk-sys/generate_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ while read ARCH && read TARGET ; do
--newtype-enum 'AHdrMetadataType' \
--newtype-enum 'AIMAGE_FORMATS' \
--newtype-enum 'AMediaDrmEventType' \
--newtype-enum 'AMediaDrmKeyRequestType' \
--newtype-enum 'AMediaDrmKeyType' \
--newtype-enum 'AMediaKeyStatusType' \
--newtype-enum 'AMidiDevice_Protocol' \
--newtype-enum 'AMotionClassification' \
--newtype-enum 'ANativeWindowTransform' \
--newtype-enum 'ANativeWindow_ChangeFrameRateStrategy' \
--newtype-enum 'ANativeWindow_FrameRateCompatibility' \
Expand Down
Loading

0 comments on commit 80fa818

Please sign in to comment.