revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.07k stars 197 forks source link

sdl2 better feature and system detection #920

Closed EduardoRFS closed 4 years ago

EduardoRFS commented 4 years ago

Why?

By removing the use of uname we can cross compile from Linux to Mac / Window and from Mac to Linux / Windows. It's a neat tooling for development as compiling from a powerful Linux computer is a lot faster than compiling on Windows(especially for me).

Also used the SDL_config.h to detect features available, this should also fix wayland and it's half of the problem regarding iOS and Android.

Why not full feature detection?

Feature detection for this specific case is quite hard, I plan to have it, but in the futuru, also there is some options with are inherently system based. So this is a middle ground for now but may change in the future.