Closed mtytel closed 1 week ago
So 'Linux' actually wasn't matching CMAKE_SYSTEM_NAME and removing the single quotes makes it match so it turned on WAYLAND by default in the build above. That exposed some missing definitions and library linkage so I've fixed that here.
I also turned off wayland by default which is how it was behaving originally (because it never matched 'Linux')
Disclaimer: not a maintainer.
So 'Linux' actually wasn't matching CMAKE_SYSTEM_NAME and removing the single quotes makes it match so it turned on WAYLAND by default in the build above. That exposed some missing definitions and library linkage so I've fixed that here.
I also turned off wayland by default which is how it was behaving originally (because it never matched 'Linux')
I think wayland is supposed to be turned on by default: #234 I haven't updated bgfx.cmake to test, so maybe #232 wasn't actually fixed. This would also explain #249
There was a lot of push recently in the distro and DE space this year to ditch XOrg finally. I would prefer to keep Wayland as default as long as it's working.
It actually wasn't enabled by default before, it just looked like it was. I turned it on by default it the last couple commits though and added some installation requirements for CI.
Alright squashed my changes.
It looks like the bgfx.cmake's bgfx amalgamated build doesn't work with wayland enabled but it compiles on newer bgfx. So I could update the bgfx ref.
I bumped bgfx version so the amalgamated build with wayland enabled works. CI is passing in my fork.
@bwrsandman this is ready to pull in.
In newer versions of cmake this line triggers a CMP0127 warning. Removing the quotes because they're not needed in older versions of cmake and doesn't trigger the warning in newer version of cmake.