258 Commits

Author SHA1 Message Date
Luke Street e282ef3acd Update SDL; add no-link feature 2022-02-07 15:16:20 -05:00
Cobrand b36d04851a Update to 0.35.2 2022-02-06 19:13:27 +01:00
JustAGod 29c3915fb2 updated sdl version 2021-12-26 18:41:42 +03:00
Matt Woelfel 49c42b6c10 Fix bundled build on Fedora
Fedora uses "lib64" for the CMake output directory. The current search
path is limited to "lib". This fix searches in "lib" and "lib64 for
applicable libraries in a bundled build.
2021-12-11 22:03:12 -06:00
Oleg Andreev d8a84060e5 Added new dependencies for static-link feature. 2021-10-29 17:54:17 +03:00
Cobrand 7c1c2104c7 Update to 0.35.1 2021-10-25 19:19:33 +02:00
timvisee 5b3b5eebbf Bump version-compare to 0.1.0, remove some unwraps 2021-10-14 23:04:31 +02:00
Cobrand 9d99d7f68a Update changlog and version to 0.35.0 2021-10-13 19:05:01 +02:00
Oleg Andreev 78e46e9907 Fixed changelog links. 2021-10-10 20:54:39 +03:00
Oleg Andreev c5b1b38ec0 Added extra libraries to link for Android static build (you still need to bundle hidapi yourselves as it is build in shared mode). 2021-10-05 20:00:26 +03:00
Oleg Andreev 2f934966b6 Automatically init submodules if there are no sources in sdl2-sys/SDL. 2021-10-05 20:00:26 +03:00
Oleg Andreev 8076e62287 Replaced downloading SDL2-2.0.14.tar.gz from libsdl.org with git submodule SDL
with tag release-2.0.16. Removed the old patches. Simplified the build script.
Added support for custom SDL2 toolchain and build profile. Removed bundled
include files.
2021-09-18 02:02:48 +03:00
Cobrand f6adc8daff Fix bindgen, update sdl_bindings.rs 2021-07-24 17:38:23 +02:00
Jalal El Mansouri 1b514a795b Update cfg-if 2021-07-19 14:38:29 +00:00
Cobrand a3b4e206f1 Update changlog and version to 0.34.5 2021-04-27 18:33:47 +02:00
Mike Waychison 71faa0297b Broaden to cover all !windows !emscripten
Also copy all files and symlinks in the lib dir, to avoid worrying about
platform specific prefixes/suffixes.
2021-04-23 11:29:01 -07:00
Mike Waychison 548a2a8509 Copy Linux dynamic libs and symlinks to output
Just like Windows, we should be copying the dynamic library to the
target directory and deps directory.  Otherwise, execution may fail,
or, more likely, silently pick up the system libSDL2 and not the
"bundled" one as asked.

This is evident when trying to run tests on a system with the libsdl2
package uninstalled, where all the example tests fail unless they pick
up the system .so.
2021-04-23 11:03:06 -07:00
Mike Waychison 9893cbcc8f Fix windows bundled example tests
Fixed by staging dll in deps directory.

This is required for running comment examples as tests, which otherwise
don't seem to be picking up the dll in library path when it is only
dropped in the top most target_path.

Fixes

```
 failures:
    src/sdl2\event.rs - event::EventSender::push_custom_event (line 2874)
    src/sdl2\event.rs - event::crate::EventSubsystem::add_event_watch (line 244)
    src/sdl2\event.rs - event::crate::EventSubsystem::push_custom_event (line 203)
    src/sdl2\event.rs - event::crate::EventSubsystem::register_event (line 135)
    src/sdl2\rect.rs - rect::Rect::has_intersection (line 482)
    src/sdl2\rect.rs - rect::Rect::intersection (line 504)
    src/sdl2\rect.rs - rect::Rect::union (line 536)
```

when running `cargo test --features bundled` on Windows.
2021-04-20 12:38:26 +00:00
Mike Waychison c5d8f5c3f2 Revert "Allow bundled debug build (#1081)"
Broke non-"static-link" builds on Windows when using "bundled" and non
release builds.

Closes #1088
2021-04-19 14:50:26 +00:00
Mike Waychison 26979a1958 Point at upstream vcpkg rev again
vcpkg has been updated to fix the link ordering of the brotli libraries.

This means that vcpkg rev can now point at upstream again. Version
a267ab1 is current HEAD.
2021-04-16 13:06:51 -07:00
Cobrand d2ce2c373a Update to 0.34.4 2021-04-02 21:22:33 +02:00
unknown d9790ea5c7 feat: add all code from sdl 2.0.14 release in include/ 2021-04-02 12:04:45 +02:00
unknown 6db5dcb127 feat: upgrade to feature bundled version of SDL to 2.0.14 2021-04-02 12:04:36 +02:00
waych 61f04d547e rust-sdl2: cherry pick vs2019 intrisics fix (#1084)
When building for "bundled" dynamic library on Windows, VS2019
encounters a link error as it is generating an intrinsic for memset but
the cmake build misses linking in the code for it.

Fix by cherrypicking upstream patch that works around the problem by
telling the compiler to generate actual function calls to it.

https://github.com/libsdl-org/SDL/issues/3865
2021-04-02 09:58:16 +00:00
waych 68aebc4419 sdl2-sys: Skip defining _fltused (#1082)
Upstream SDL2 will include _fltused in the libary artifact as a
__declspec(selectany) symbol.  This seems to cause problems however with
a definition already coming from the top-most rust link, as it already
gets defined elsewhere when building statically.

Rather than patching the upstream codebase with another patch, just
specify this flag in all cases as we don't require it in any of our rust
builds.
2021-04-02 09:56:27 +00:00