#ifndef PLATFORM_INCLUDE_H #define PLATFORM_INCLUDE_H // NOTE: window and input. sits on top of base + core, the renderer only sees the native // handles (wl_display / wl_surface, HINSTANCE / HWND) through PlatformWindowNativeHandles. #ifndef WAYLAND #define WAYLAND 0 #endif #if PLATFORM_LINUX #include #include #include #include #include #include // NOTE: xlib / xkb have struct members called `internal`, which base #defines to static #pragma push_macro("internal") #undef internal #include #include #include #include #include #pragma pop_macro("internal") // 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_x11.h" #include "platform_linux.h" #include "platform_linux.cpp" #include "platform_linux_wayland.cpp" #include "platform_linux_x11.cpp" #elif PLATFORM_WINDOWS #include #include "platform_keysyms.h" #include "platform.h" #include "platform_win32.h" #include "platform_win32.cpp" #elif PLATFORM_APPLE #include "platform_keysyms.h" #include "platform.h" #include "platform_macos.h" // NOTE: the implementation is platform_macos.mm, its own objective-c++ translation unit #else #error unsupported platform #endif #endif // PLATFORM_INCLUDE_H