add wayland cross-compilation support (#140)
* add wayland-headers include path * add wayland protocols header to wayland target includes * move `xkb_unicode.c` to `sources_linux.c` * glfw: document where wayland generated sources come from * glfw: update sdk-linux-x86_64 to include Wayland protocol sources See https://github.com/hexops/sdk-linux-x86_64/pull/2 Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ad8e1a4292
commit
38cab2e423
4 changed files with 21 additions and 8 deletions
|
|
@ -3,4 +3,5 @@
|
|||
// General Linux-like sources
|
||||
#include "posix_time.c"
|
||||
#include "posix_thread.c"
|
||||
#include "linux_joystick.c"
|
||||
#include "linux_joystick.c"
|
||||
#include "xkb_unicode.c"
|
||||
|
|
@ -2,3 +2,12 @@
|
|||
#include "wl_monitor.c"
|
||||
#include "wl_window.c"
|
||||
#include "wl_init.c"
|
||||
|
||||
// Note: These sources are generated by wayland-scanner, and distributed in sdk-linux-*
|
||||
// See e.g. https://github.com/hexops/sdk-linux-x86_64/blob/main/generate-wayland.sh
|
||||
#include "wayland-viewporter-client-protocol.c"
|
||||
#include "wayland-xdg-decoration-client-protocol.c"
|
||||
#include "wayland-xdg-shell-client-protocol.c"
|
||||
#include "wayland-idle-inhibit-unstable-v1-client-protocol.c"
|
||||
#include "wayland-pointer-constraints-unstable-v1-client-protocol.c"
|
||||
#include "wayland-relative-pointer-unstable-v1-client-protocol.c"
|
||||
|
|
@ -2,5 +2,4 @@
|
|||
#include "x11_init.c"
|
||||
#include "x11_window.c"
|
||||
#include "x11_monitor.c"
|
||||
#include "xkb_unicode.c"
|
||||
#include "glx_context.c"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue