diff options
Diffstat (limited to 'protocols/meson.build')
-rw-r--r-- | protocols/meson.build | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/protocols/meson.build b/protocols/meson.build index 73a6fda5..1fda600e 100644 --- a/protocols/meson.build +++ b/protocols/meson.build | |||
@@ -2,12 +2,6 @@ wl_protocol_dir = wayland_protos.get_pkgconfig_variable('pkgdatadir') | |||
2 | 2 | ||
3 | wayland_scanner = find_program('wayland-scanner') | 3 | wayland_scanner = find_program('wayland-scanner') |
4 | 4 | ||
5 | wayland_scanner_server = generator( | ||
6 | wayland_scanner, | ||
7 | output: '@BASENAME@-protocol.h', | ||
8 | arguments: ['server-header', '@INPUT@', '@OUTPUT@'], | ||
9 | ) | ||
10 | |||
11 | wayland_scanner_code = generator( | 5 | wayland_scanner_code = generator( |
12 | wayland_scanner, | 6 | wayland_scanner, |
13 | output: '@BASENAME@-protocol.c', | 7 | output: '@BASENAME@-protocol.c', |
@@ -20,10 +14,9 @@ wayland_scanner_client = generator( | |||
20 | arguments: ['client-header', '@INPUT@', '@OUTPUT@'], | 14 | arguments: ['client-header', '@INPUT@', '@OUTPUT@'], |
21 | ) | 15 | ) |
22 | 16 | ||
23 | protocols = [] | 17 | protocols = [ |
24 | 18 | [wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'], | |
25 | client_protocols = [ | 19 | ['wlr-layer-shell-unstable-v1.xml'] |
26 | 'wlr-layer-shell-unstable-v1.xml', | ||
27 | ] | 20 | ] |
28 | 21 | ||
29 | wl_protos_src = [] | 22 | wl_protos_src = [] |
@@ -32,11 +25,6 @@ wl_protos_headers = [] | |||
32 | foreach p : protocols | 25 | foreach p : protocols |
33 | xml = join_paths(p) | 26 | xml = join_paths(p) |
34 | wl_protos_src += wayland_scanner_code.process(xml) | 27 | wl_protos_src += wayland_scanner_code.process(xml) |
35 | wl_protos_headers += wayland_scanner_server.process(xml) | ||
36 | endforeach | ||
37 | |||
38 | foreach p : client_protocols | ||
39 | xml = join_paths(p) | ||
40 | wl_protos_headers += wayland_scanner_client.process(xml) | 28 | wl_protos_headers += wayland_scanner_client.process(xml) |
41 | endforeach | 29 | endforeach |
42 | 30 | ||