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.
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.