#ifndef PLATFORM_INCLUDE_H #define PLATFORM_INCLUDE_H // NOTE: window and input. sits on top of base + core, the renderer only sees the raw // wl_display / wl_surface through PlatformWindow. #ifndef WAYLAND #define WAYLAND 0 #endif #if PLATFORM_LINUX && WAYLAND #include #include #include #include #include // NOTE: generated by wayland-scanner in compile.sh, the glue .c files are linked separately #include "xdg-shell-client.h" // NOTE: get_layer_surface has a parameter called `namespace`, a c++ keyword #define namespace layer_namespace #include "wlr-layer-shell-unstable-v1-client.h" #undef namespace #include "cursor-shape-v1-client.h" #include "xdg-decoration-unstable-v1-client.h" #include "platform.h" #include "platform_linux_wayland.h" #include "platform_linux_wayland.cpp" #else #error only wayland on linux is implemented #endif #endif // PLATFORM_INCLUDE_H