From 2a9eb7d9bb71a0e92dc2c832b098a13616870b98 Mon Sep 17 00:00:00 2001 From: Nathan Voglsam Date: Sat, 15 Jun 2024 14:06:34 +1000 Subject: [PATCH] Update readme and changelog --- README.md | 9 +++++++++ changelog.md | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index 15e964f88f..af8ff59605 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,15 @@ use_sdl2_mac_framework = ["sdl2/use_mac_framework"] Similarly for iOS you can follow the same process using the `use_ios_framework` feature. However official builds of the iOS framework are not available so you must compile your own SDL2.framework. +Using the iOS framework also requires adding the 'Frameworks' directory to your rpath so that the +dynamic linker can find SDL2.framework inside your app bundle. This is done by adding this to your +`build.rs`: + +```rust +#[cfg(target_os="ios")] +println!("cargo:rustc-link-arg=-Wl,-rpath,@loader_path/Frameworks"); +``` + #### Static linking on macOS using vcpkg Instructions to generate a static binary on macOS and other operating systems using [vcpkg][vcpkg] are [here][cargo-vcpkg-usage]. diff --git a/changelog.md b/changelog.md index 2610725fd2..c19ab71cde 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,10 @@ In this file will be listed the changes, especially the breaking ones that one should be careful of when upgrading from a version of rust-sdl2 to another. +### Next + +[PR #1407](https://github.com/Rust-SDL2/rust-sdl2/pull/1407) Add new use_ios_framework for linking to SDL2.framework on iOS + ### v0.37.0 [PR #1406](https://github.com/Rust-SDL2/rust-sdl2/pull/1406) Update bindings to SDL 2.0.26, add Event.is\_touch() for mouse events, upgrade wgpu to 0.20 in examples