From 68f9ee7e0b3fdddfa42fa11a15d9ae84460d5e19 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Sun, 1 Oct 2017 21:16:49 +0100 Subject: wayland_common: rewrite from scratch The wayland code was written more than 4 years ago when wayland wasn't even at version 1.0. This commit rewrites everything in a more modern way, switches to using the new xdg v6 shell interface which solves a lot of bugs and makes mpv tiling-friedly, adds support for drag and drop, adds support for touchscreens, adds support for KDE's server decorations protocol, and finally adds support for the new idle-inhibitor protocol. It does not yet use the frame callback as a main rendering loop driver, this will happen with a later commit. --- waftools/checks/custom.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'waftools/checks/custom.py') diff --git a/waftools/checks/custom.py b/waftools/checks/custom.py index d8065a35f2..698742406f 100644 --- a/waftools/checks/custom.py +++ b/waftools/checks/custom.py @@ -4,7 +4,7 @@ from waflib import Utils import os __all__ = ["check_pthreads", "check_iconv", "check_lua", - "check_cocoa", "check_openal"] + "check_cocoa", "check_openal", "check_wl_protocols"] pthreads_program = load_fragment('pthreads.c') @@ -83,6 +83,15 @@ def check_lua(ctx, dependency_identifier): return True return False +def check_wl_protocols(ctx, dependency_identifier): + def fn(ctx, dependency_identifier): + ret = check_pkg_config_datadir("wayland-protocols") + ret = ret(ctx, dependency_identifier) + if ret != None: + ctx.env.WL_PROTO_DIR = ret.split()[0] + return ret + return fn(ctx, dependency_identifier) + def check_cocoa(ctx, dependency_identifier): fn = check_cc( fragment = load_fragment('cocoa.m'), -- cgit v1.2.3