2018-09-11, 23:24
(2018-09-11, 23:10)matthuisman Wrote: Looks like a headless patch for KODI 18 maybe a bit trickier with all the win system stuff.While I wouldn't deny per se, it would be much nicer if interested people help improving the architecture, so that this is not needed.
Maybe the best approach is to add a new platform / window system (like GBM did) that simply implements the WinSystem interface (but just does nothing).
https://github.com/xbmc/xbmc/tree/master/xbmc/windowing
https://github.com/xbmc/xbmc/blob/master...System.cpp
Then compile with
-DCORE_PLATFORM_NAME=headless
It would then stop the need for patching in everywhere the functions are called.
Also for compiling, you wouldn't need all the GLES / GL / X11 dependencies.
Something like that may also have a chance of being merged?