Skip to content

Commit 2a9eb7d

Browse files
committed
Update readme and changelog
1 parent d5d9ea1 commit 2a9eb7d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ use_sdl2_mac_framework = ["sdl2/use_mac_framework"]
145145
Similarly for iOS you can follow the same process using the `use_ios_framework` feature. However
146146
official builds of the iOS framework are not available so you must compile your own SDL2.framework.
147147

148+
Using the iOS framework also requires adding the 'Frameworks' directory to your rpath so that the
149+
dynamic linker can find SDL2.framework inside your app bundle. This is done by adding this to your
150+
`build.rs`:
151+
152+
```rust
153+
#[cfg(target_os="ios")]
154+
println!("cargo:rustc-link-arg=-Wl,-rpath,@loader_path/Frameworks");
155+
```
156+
148157
#### Static linking on macOS using vcpkg
149158

150159
Instructions to generate a static binary on macOS and other operating systems using [vcpkg][vcpkg] are [here][cargo-vcpkg-usage].

changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
In this file will be listed the changes, especially the breaking ones that one should be careful of
22
when upgrading from a version of rust-sdl2 to another.
33

4+
### Next
5+
6+
[PR #1407](https://github.com/Rust-SDL2/rust-sdl2/pull/1407) Add new use_ios_framework for linking to SDL2.framework on iOS
7+
48
### v0.37.0
59

610
[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

0 commit comments

Comments
 (0)