Re: [PATCH xserver] meson: Fix xwayland build since xwayland-keyboard-grab.

2017-08-02 Thread Peter Hutterer
On Tue, Aug 01, 2017 at 01:11:25PM -0700, Eric Anholt wrote:
> The version detect was erroring out with 1.9 protos installed, and we
> weren't building the new code.
> 
> Signed-off-by: Eric Anholt 

oops, sorry about that.

   0a448d133..2d50e32e0  master -> master

Cheers,
   Peter


> ---
>  hw/xwayland/meson.build | 3 +++
>  meson.build | 2 +-
>  2 files changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/hw/xwayland/meson.build b/hw/xwayland/meson.build
> index d2791fe14bee..b619a66a7ce0 100644
> --- a/hw/xwayland/meson.build
> +++ b/hw/xwayland/meson.build
> @@ -18,6 +18,7 @@ protodir = 
> protocols_dep.get_pkgconfig_variable('pkgdatadir')
>  pointer_xml = join_paths(protodir, 'unstable', 'pointer-constraints', 
> 'pointer-constraints-unstable-v1.xml')
>  relative_xml = join_paths(protodir, 'unstable', 'relative-pointer', 
> 'relative-pointer-unstable-v1.xml')
>  tablet_xml = join_paths(protodir, 'unstable', 'tablet', 
> 'tablet-unstable-v2.xml')
> +kbgrab_xml = join_paths(protodir, 'unstable', 'xwayland-keyboard-grab', 
> 'xwayland-keyboard-grab-unstable-v1.xml')
>  
>  client_header = generator(scanner,
>  output : '@BASENAME@-client-protocol.h',
> @@ -30,9 +31,11 @@ code = generator(scanner,
>  srcs += client_header.process(relative_xml)
>  srcs += client_header.process(pointer_xml)
>  srcs += client_header.process(tablet_xml)
> +srcs += client_header.process(kbgrab_xml)
>  srcs += code.process(relative_xml)
>  srcs += code.process(pointer_xml)
>  srcs += code.process(tablet_xml)
> +srcs += code.process(kbgrab_xml)
>  
>  xwayland_glamor = []
>  if gbm_dep.found()
> diff --git a/meson.build b/meson.build
> index a36ae9da7ac6..3efec0def027 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -98,7 +98,7 @@ if (host_machine.system() != 'darwin' and
>  
>  xwayland_dep = [
>  dependency('wayland-client', version: '>= 1.3.0', required: 
> xwayland_required),
> -dependency('wayland-protocols', version: '>= 1.9.0', required: 
> xwayland_required),
> +dependency('wayland-protocols', version: '>= 1.9', required: 
> xwayland_required),
>  dependency('libdrm', version: '>= 2.3.1', required: 
> xwayland_required),
>  dependency('epoxy', required: xwayland_required),
>  ]
> -- 
> 2.13.3
> 
> ___
> xorg-devel@lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: https://lists.x.org/mailman/listinfo/xorg-devel
> 
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

[PATCH xserver] meson: Fix xwayland build since xwayland-keyboard-grab.

2017-08-01 Thread Eric Anholt
The version detect was erroring out with 1.9 protos installed, and we
weren't building the new code.

Signed-off-by: Eric Anholt 
---
 hw/xwayland/meson.build | 3 +++
 meson.build | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/hw/xwayland/meson.build b/hw/xwayland/meson.build
index d2791fe14bee..b619a66a7ce0 100644
--- a/hw/xwayland/meson.build
+++ b/hw/xwayland/meson.build
@@ -18,6 +18,7 @@ protodir = protocols_dep.get_pkgconfig_variable('pkgdatadir')
 pointer_xml = join_paths(protodir, 'unstable', 'pointer-constraints', 
'pointer-constraints-unstable-v1.xml')
 relative_xml = join_paths(protodir, 'unstable', 'relative-pointer', 
'relative-pointer-unstable-v1.xml')
 tablet_xml = join_paths(protodir, 'unstable', 'tablet', 
'tablet-unstable-v2.xml')
+kbgrab_xml = join_paths(protodir, 'unstable', 'xwayland-keyboard-grab', 
'xwayland-keyboard-grab-unstable-v1.xml')
 
 client_header = generator(scanner,
 output : '@BASENAME@-client-protocol.h',
@@ -30,9 +31,11 @@ code = generator(scanner,
 srcs += client_header.process(relative_xml)
 srcs += client_header.process(pointer_xml)
 srcs += client_header.process(tablet_xml)
+srcs += client_header.process(kbgrab_xml)
 srcs += code.process(relative_xml)
 srcs += code.process(pointer_xml)
 srcs += code.process(tablet_xml)
+srcs += code.process(kbgrab_xml)
 
 xwayland_glamor = []
 if gbm_dep.found()
diff --git a/meson.build b/meson.build
index a36ae9da7ac6..3efec0def027 100644
--- a/meson.build
+++ b/meson.build
@@ -98,7 +98,7 @@ if (host_machine.system() != 'darwin' and
 
 xwayland_dep = [
 dependency('wayland-client', version: '>= 1.3.0', required: 
xwayland_required),
-dependency('wayland-protocols', version: '>= 1.9.0', required: 
xwayland_required),
+dependency('wayland-protocols', version: '>= 1.9', required: 
xwayland_required),
 dependency('libdrm', version: '>= 2.3.1', required: 
xwayland_required),
 dependency('epoxy', required: xwayland_required),
 ]
-- 
2.13.3

___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel