File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -196,8 +196,8 @@ jobs:
196
196
before_script :
197
197
- choco install nsis
198
198
- rm C:/ProgramData/chocolatey/bin/cpack.exe
199
- - curl http://libsdl.org/release/SDL2-devel- 2.0.14-VC .zip -o SDL2.zip
200
- - unzip SDL2.zip
199
+ - curl -s http://libsdl.org/release/SDL2-2.0.14.zip > SDL2-2.0.14 .zip
200
+ - unzip SDL2-2.0.14 .zip
201
201
- mv SDL2-2.0.14 3rdparty/SDL2
202
202
- git clone https://github.com/LuaJIT/LuaJIT 3rdparty/LuaJIT
203
203
- git clone https://github.com/Neargye/nameof 3rdparty/nameof
@@ -229,8 +229,8 @@ jobs:
229
229
before_script :
230
230
- choco install nsis
231
231
- rm C:/ProgramData/chocolatey/bin/cpack.exe
232
- - curl http://libsdl.org/release/SDL2-devel- 2.0.14-VC .zip -o SDL2.zip
233
- - unzip SDL2.zip
232
+ - curl -s http://libsdl.org/release/SDL2-2.0.14.zip > SDL2-2.0.14 .zip
233
+ - unzip SDL2-2.0.14 .zip
234
234
- mv SDL2-2.0.14 3rdparty/SDL2
235
235
- git clone https://github.com/LuaJIT/LuaJIT 3rdparty/LuaJIT
236
236
- git clone https://github.com/Neargye/nameof 3rdparty/nameof
Original file line number Diff line number Diff line change @@ -19,13 +19,14 @@ if(XASH_SDL)
19
19
target_include_directories (sdl2 INTERFACE ${SDL2_INCLUDE_DIR} )
20
20
if (MSVC )
21
21
string (REGEX REPLACE "lib$" "dll" SDL2_DLL "${SDL2_LIBRARY} " )
22
- install (FILES ${SDL2_DLL } DESTINATION "." OPTIONAL )
22
+ install (FILES ${SDL2_LIBRARY } DESTINATION "." OPTIONAL )
23
23
endif ()
24
24
else ()
25
25
if (MSVC )
26
26
add_definitions (-D_ftol2_sse=SDL_ftol2_sse ) # fix x86 compile
27
27
endif ()
28
28
set (DIRECTX OFF CACHE BOOL "" FORCE ) # win10 arm dont have dx8
29
+ set (LIBC ON CACHE BOOL "" FORCE ) # win10 arm dont have dx8
29
30
add_subdirectory (SDL2 EXCLUDE_FROM_ALL )
30
31
target_link_libraries (sdl2 INTERFACE SDL2-static )
31
32
endif ()
You can’t perform that action at this time.
0 commit comments