diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-28 15:47:22 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-28 15:47:22 -0400 |
commit | 0c8a64942e087038806b353949c900e03fd764a8 (patch) | |
tree | a427ff9d8702ad5dbc6e5ede8851930662d010ef /protocols | |
parent | Merge pull request #1638 from swaywm/swaybg-layers (diff) | |
download | sway-0c8a64942e087038806b353949c900e03fd764a8.tar.gz sway-0c8a64942e087038806b353949c900e03fd764a8.tar.zst sway-0c8a64942e087038806b353949c900e03fd764a8.zip |
Add initial layer shell skeleton
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/meson.build | 55 |
1 files changed, 44 insertions, 11 deletions
diff --git a/protocols/meson.build b/protocols/meson.build index 1fda600e..3f79e719 100644 --- a/protocols/meson.build +++ b/protocols/meson.build | |||
@@ -14,24 +14,57 @@ wayland_scanner_client = generator( | |||
14 | arguments: ['client-header', '@INPUT@', '@OUTPUT@'], | 14 | arguments: ['client-header', '@INPUT@', '@OUTPUT@'], |
15 | ) | 15 | ) |
16 | 16 | ||
17 | protocols = [ | 17 | wayland_scanner_server = generator( |
18 | wayland_scanner, | ||
19 | output: '@BASENAME@-protocol.h', | ||
20 | arguments: ['server-header', '@INPUT@', '@OUTPUT@'], | ||
21 | ) | ||
22 | |||
23 | client_protocols = [ | ||
18 | [wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'], | 24 | [wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'], |
19 | ['wlr-layer-shell-unstable-v1.xml'] | 25 | ['wlr-layer-shell-unstable-v1.xml'] |
20 | ] | 26 | ] |
21 | 27 | ||
22 | wl_protos_src = [] | 28 | server_protocols = [ |
23 | wl_protos_headers = [] | 29 | ['wlr-layer-shell-unstable-v1.xml'] |
30 | ] | ||
31 | |||
32 | client_protos_src = [] | ||
33 | client_protos_headers = [] | ||
34 | |||
35 | server_protos_src = [] | ||
36 | server_protos_headers = [] | ||
24 | 37 | ||
25 | foreach p : protocols | 38 | foreach p : client_protocols |
26 | xml = join_paths(p) | 39 | xml = join_paths(p) |
27 | wl_protos_src += wayland_scanner_code.process(xml) | 40 | client_protos_src += wayland_scanner_code.process(xml) |
28 | wl_protos_headers += wayland_scanner_client.process(xml) | 41 | client_protos_headers += wayland_scanner_client.process(xml) |
29 | endforeach | 42 | endforeach |
30 | 43 | ||
31 | lib_wl_protos = static_library('wl_protos', wl_protos_src + wl_protos_headers, | 44 | foreach p : server_protocols |
32 | dependencies: [wayland_client]) # for the include directory | 45 | xml = join_paths(p) |
46 | server_protos_src += wayland_scanner_code.process(xml) | ||
47 | server_protos_headers += wayland_scanner_server.process(xml) | ||
48 | endforeach | ||
49 | |||
50 | lib_client_protos = static_library( | ||
51 | 'client_protos', | ||
52 | client_protos_src + client_protos_headers, | ||
53 | dependencies: [wayland_client] | ||
54 | ) # for the include directory | ||
55 | |||
56 | client_protos = declare_dependency( | ||
57 | link_with: lib_client_protos, | ||
58 | sources: client_protos_headers, | ||
59 | ) | ||
60 | |||
61 | lib_server_protos = static_library( | ||
62 | 'server_protos', | ||
63 | server_protos_src + server_protos_headers, | ||
64 | dependencies: [wayland_client] | ||
65 | ) # for the include directory | ||
33 | 66 | ||
34 | sway_protos = declare_dependency( | 67 | server_protos = declare_dependency( |
35 | link_with: lib_wl_protos, | 68 | link_with: lib_server_protos, |
36 | sources: wl_protos_headers, | 69 | sources: server_protos_headers, |
37 | ) | 70 | ) |