mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 18:29:11 +08:00
0a262e7d61
* [sdl2] Update to 2.0.14
* Revert "[sdl2] Update to 2.0.14"
This reverts commit b8e82e0dac
.
* [sdl2] Update to 2.0.14
* [sdl2] Fix manifest formatting
* [sdl2] Change the shared library preprocessor symbol name to DLL_EXPORT for compatibility with SDL 2.0.14
Co-authored-by: Rémy Tassoux <rt2@rasterizedworld.com>
26 lines
754 B
Diff
26 lines
754 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1395,8 +1395,13 @@
|
|
endif()
|
|
endif()
|
|
|
|
+ if(WINDOWS_STORE)
|
|
+ file(GLOB WINRT_MISC_SOURCES ${SDL2_SOURCE_DIR}/src/misc/winrt/*.cpp)
|
|
+ set(SOURCE_FILES ${SOURCE_FILES} ${WINRT_MISC_SOURCES})
|
|
+ else()
|
|
file(GLOB MISC_SOURCES ${SDL2_SOURCE_DIR}/src/misc/windows/*.c)
|
|
set(SOURCE_FILES ${SOURCE_FILES} ${MISC_SOURCES})
|
|
+ endif()
|
|
set(HAVE_SDL_MISC TRUE)
|
|
|
|
# Check for DirectX
|
|
@@ -1522,7 +1522,7 @@
|
|
set(HAVE_SDL_THREADS TRUE)
|
|
endif()
|
|
|
|
- if(SDL_SENSOR AND HAVE_SENSORSAPI_H)
|
|
+ if(SDL_SENSOR AND HAVE_SENSORSAPI_H AND NOT WINDOWS_STORE)
|
|
set(SDL_SENSOR_WINDOWS 1)
|
|
set(HAVE_SDL_SENSORS TRUE)
|
|
file(GLOB WINDOWS_SENSOR_SOURCES ${SDL2_SOURCE_DIR}/src/sensor/windows/*.c)
|