summaryrefslogtreecommitdiffstats
path: root/src/compositor/configure.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/compositor/configure.json')
-rw-r--r--src/compositor/configure.json38
1 files changed, 34 insertions, 4 deletions
diff --git a/src/compositor/configure.json b/src/compositor/configure.json
index 9527bbf67..2af92ea67 100644
--- a/src/compositor/configure.json
+++ b/src/compositor/configure.json
@@ -9,14 +9,34 @@
"libraries": {
"wayland-server": {
"label": "wayland-server",
- "test": "wayland",
+ "headers": "wayland-version.h",
+ "test": {
+ "main": [
+ "#if WAYLAND_VERSION_MAJOR < 1",
+ "# error Wayland 1.8.0 or higher required",
+ "#endif",
+ "#if WAYLAND_VERSION_MAJOR == 1",
+ "# if WAYLAND_VERSION_MINOR < 8",
+ "# error Wayland 1.8.0 or higher required",
+ "# endif",
+ "# if WAYLAND_VERSION_MINOR == 8",
+ "# if WAYLAND_VERSION_MICRO < 0",
+ "# error Wayland 1.8.0 or higher required",
+ "# endif",
+ "# endif",
+ "#endif"
+ ]
+ },
"sources": [
{ "type": "pkgConfig", "args": "wayland-server" },
"-lwayland-server"
]
},
"wayland-egl": {
- "test": "wayland_egl",
+ "headers": "wayland-egl.h",
+ "test": {
+ "main": "struct wl_egl_window *window = wl_egl_window_create(0, 100, 100);"
+ },
"sources": [
{ "type": "pkgConfig", "args": "wayland-egl" },
"-lwayland-egl",
@@ -45,14 +65,24 @@
]
},
"xcomposite": {
- "test": "xcomposite",
+ "headers": "X11/extensions/Xcomposite.h",
+ "test": {
+ "main": "XCompositeRedirectWindow((Display *)0,(Window) 0, CompositeRedirectManual);"
+ },
"sources": [
{ "type": "pkgConfig", "args": "xcomposite" },
"-lxcomposite"
]
},
"glx": {
- "test": "glx",
+ "headers": "GL/glx.h",
+ "test": {
+ "main": [
+ "Display *dpy = XOpenDisplay(0);",
+ "int items = 0;",
+ "GLXFBConfig *fbc = glXChooseFBConfig(dpy, DefaultScreen(dpy), 0 , &items);"
+ ]
+ },
"sources": [
{ "type": "pkgConfig", "args": "x11 gl" },
"-lX11 -lGl"