summaryrefslogtreecommitdiffstats
path: root/source/platform/platform_include.h
blob: 99d6e60d7c2d3b0c5de34dcab3d228c70173fc8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef PLATFORM_INCLUDE_H
#define PLATFORM_INCLUDE_H

// NOTE: window, input and presenting. sits on top of base, base never includes this.

#ifndef X11
#define X11 0
#endif
#ifndef WAYLAND
#define WAYLAND 0
#endif

#if PLATFORM_LINUX

#include <linux/input-event-codes.h>

#if X11
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
#elif WAYLAND
#include <wayland-client.h>
#include <poll.h>
#endif

#endif // PLATFORM_LINUX

//-
#include "platform.h"

#if PLATFORM_LINUX
#include "platform_linux.h"

#if X11
#include "platform_linux_x11.h"
#include "platform_linux_x11.cpp"
#elif WAYLAND
#include "platform_linux_wayland.h"
#include "platform_linux_xdg.cpp"
#include "platform_linux_wayland.cpp"
#endif

#elif PLATFORM_WINDOWS
#include "platform_win32.h"
#include "platform_win32.cpp"
#endif

#endif // PLATFORM_INCLUDE_H