mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-18 18:56:36 +02:00
add mingw-w64 support
This commit is contained in:
@ -39,6 +39,10 @@ else()
|
||||
target_link_libraries(sdl_service glad)
|
||||
endif()
|
||||
|
||||
if(VCPKG_TARGET_TRIPLET)
|
||||
target_link_libraries(sdl_service SDL2::SDL2 SDL2::SDL2main SDL2::SDL2-static)
|
||||
endif()
|
||||
|
||||
if(BUILD_TESTING)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
@ -34,6 +34,9 @@ SDLService::SDLService(uint32_t _sdl_init_flags) {
|
||||
//#ifdef __EMSCRIPTEN__
|
||||
//_sdl_init_flags &= ~SDL_INIT_HAPTIC;
|
||||
//#endif
|
||||
#if 1 // hack for mingw + wine
|
||||
_sdl_init_flags &= ~SDL_INIT_SENSOR;
|
||||
#endif
|
||||
|
||||
sdl_init_flags = _sdl_init_flags;
|
||||
}
|
||||
|
Reference in New Issue
Block a user