I’ve (mostly) managed to build GLFW wayland static variant from source using meson with wayland-scanner. The only thing I’m missing is the following macros inside
#define wl_display_flush _glfw.wl.client.display_flush #define wl_display_cancel_read _glfw.wl.client.display_cancel_read #define wl_display_dispatch_pending _glfw.wl.client.display_dispatch_pending ...
So what i understand is that the wayland-client functions are imported from
<wayland-client-core.h>. But then they are overriden by these defines and i don’t really understand what they are for (maybe for dynamic linking or smth? I read in the wiki that static linking is default in CMake but i couldn’t find much about this behavior ). Here’s the meson.build i used
If i remove such defines the library compiles and works as expected. I’d like to get this to work with unmodified codebase so i can directly use GLFW as a submodule. Any help or knowledge would be much appreciated.
Best regards, krr.