Skip to content

Commit 1ea5b32

Browse files
authored
Merge branch 'master' into feat/amidi
2 parents 129edc2 + 9b94b63 commit 1ea5b32

28 files changed

+5131
-3480
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
> ndk-build | https://github.com/rust-mobile/cargo-apk |
1010
> cargo-apk | https://github.com/rust-mobile/cargo-apk |
1111
12-
[![Rust](https://github.com/rust-mobile/ndk/workflows/Rust/badge.svg)](https://github.com/rust-mobile/ndk/actions) ![MIT license](https://img.shields.io/badge/License-MIT-green.svg) ![APACHE2 license](https://img.shields.io/badge/License-APACHE2-green.svg)
12+
[![ci](https://github.com/rust-mobile/ndk/actions/workflows/rust.yml/badge.svg)](https://github.com/rust-mobile/ndk/actions/workflows/rust.yml) ![MIT license](https://img.shields.io/badge/License-MIT-green.svg) ![APACHE2 license](https://img.shields.io/badge/License-APACHE2-green.svg)
1313

1414
Rust bindings to the [Android NDK](https://developer.android.com/ndk)
1515

1616
Name | Description | Badges
1717
--- | --- | ---
18-
[`ndk-sys`](./ndk-sys) | Raw FFI bindings to the NDK | [![crates.io](https://img.shields.io/crates/v/ndk-sys.svg)](https://crates.io/crates/ndk-sys) [![crates.io](https://docs.rs/ndk-sys/badge.svg)](https://docs.rs/ndk-sys) [![MSRV](https://img.shields.io/badge/rustc-1.60.0+-ab6000.svg)](https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html)
19-
[`ndk`](./ndk) | Safe abstraction of the bindings | [![crates.io](https://img.shields.io/crates/v/ndk.svg)](https://crates.io/crates/ndk) [![crates.io](https://docs.rs/ndk/badge.svg)](https://docs.rs/ndk) [![MSRV](https://img.shields.io/badge/rustc-1.64.0+-ab6000.svg)](https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html)
20-
18+
[`ndk-sys`](./ndk-sys) | Raw FFI bindings to the NDK | [![crates.io](https://img.shields.io/crates/v/ndk-sys.svg)](https://crates.io/crates/ndk-sys) [![Docs](https://docs.rs/ndk-sys/badge.svg)](https://docs.rs/ndk-sys) [![MSRV](https://img.shields.io/badge/rustc-1.60.0+-ab6000.svg)](https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html)
19+
[`ndk`](./ndk) | Safe abstraction of the bindings | [![crates.io](https://img.shields.io/crates/v/ndk.svg)](https://crates.io/crates/ndk) [![Docs](https://docs.rs/ndk/badge.svg)](https://docs.rs/ndk) [![MSRV](https://img.shields.io/badge/rustc-1.64.0+-ab6000.svg)](https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html)
2120

2221
See these [`ndk-examples`](https://github.com/rust-mobile/cargo-apk/tree/main/examples/examples) and these [`rust-android-examples`](https://github.com/rust-mobile/rust-android-examples) for examples using the NDK.

ndk-sys/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Unreleased
22

3+
# 0.5.0-beta.0 (2023-08-15)
4+
35
- **Breaking:** Regenerate against NDK `25.2.9519653` with `rust-bindgen 0.66.0`. (#324, #370)
6+
- Add `font`, `font_matcher`, `system_fonts` bindings. (#397)
47

58
# 0.4.1 (2022-11-23)
69

ndk-sys/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "ndk-sys"
3-
version = "0.4.0+25.0.8775105" # Current source contains 25.2.9519653
3+
version = "0.5.0-beta.0+25.2.9519653"
44
authors = ["The Rust Windowing contributors"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "FFI bindings for the Android NDK"
77
license = "MIT OR Apache-2.0"
88
keywords = ["android", "ndk"]

ndk-sys/generate_bindings.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#!/bin/sh
22

3-
sysroot="${ANDROID_NDK_ROOT}"/toolchains/llvm/prebuilt/linux-x86_64/sysroot/
3+
os=$(uname -s)
4+
5+
if [[ "$os" == "Darwin" ]]; then
6+
host_tag="darwin-x86_64"
7+
elif [[ "$os" == "CYGWIN"* ]]; then
8+
host_tag="windows-x86_64"
9+
else
10+
host_tag="linux-x86_64"
11+
fi
12+
13+
sysroot="${ANDROID_NDK_ROOT}"/toolchains/llvm/prebuilt/${host_tag}/sysroot/
414
[ ! -d "$sysroot" ] && echo "Android sysroot $sysroot does not exist!" && exit 1
515

616
while read ARCH && read TARGET ; do

0 commit comments

Comments
 (0)