Skip to content

Commit 4600bb9

Browse files
authored
Merge pull request Rust-SDL2#960 from rlabrecque/vs2019-build-fix
Fix errors building on Windows with bundled Rust-SDL2#958
2 parents a10c75f + b1c0451 commit 4600bb9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sdl2-sys/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fn patch_sdl2(sdl2_source_path: &Path) {
126126
let patches: Vec<(&str, &'static str)> = vec![
127127
// No patches at this time. If needed, add them like this:
128128
// ("SDL-2.x.y-filename.patch", include_str!("patches/SDL-2.x.y-filename.patch")),
129-
("SDL2-2.0.9-CMakeLists.txt.patch", include_str!("patches/SDL2-2.0.9-CMakeLists.txt.patch")),
129+
("SDL2-2.0.10-CMakeLists.txt.patch", include_str!("patches/SDL2-2.0.10-CMakeLists.txt.patch")),
130130
];
131131
let sdl_version = format!("SDL2-{}", LASTEST_SDL2_VERSION);
132132

Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
--- CMakeLists.txt 2018-10-31 08:07:22.000000000 -0700
22
+++ CMakeLists.txt 2019-12-04 21:50:07.606700200 -0800
3-
@@ -1294,6 +1294,10 @@
3+
@@ -1337,6 +1337,10 @@
44
# Libraries for Win32 native and MinGW
5-
list(APPEND EXTRA_LIBS user32 gdi32 winmm imm32 ole32 oleaut32 version uuid advapi32 shell32)
5+
list(APPEND EXTRA_LIBS user32 gdi32 winmm imm32 ole32 oleaut32 version uuid advapi32 setupapi shell32)
66

77
+ if(MSVC AND NOT ${MSVC_VERSION} LESS 1920)
88
+ list(APPEND EXTRA_LIBS vcruntime)
99
+ endif()
1010
+
11-
# TODO: in configure.in the check for timers is set on
11+
# TODO: in configure.ac the check for timers is set on
1212
# cygwin | mingw32* - does this include mingw32CE?
1313
if(SDL_TIMERS)

0 commit comments

Comments
 (0)