aboutsummaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-03-28 15:47:22 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-03-28 15:47:22 -0400
commit0c8a64942e087038806b353949c900e03fd764a8 (patch)
treea427ff9d8702ad5dbc6e5ede8851930662d010ef /protocols
parentMerge pull request #1638 from swaywm/swaybg-layers (diff)
downloadsway-0c8a64942e087038806b353949c900e03fd764a8.tar.gz
sway-0c8a64942e087038806b353949c900e03fd764a8.tar.zst
sway-0c8a64942e087038806b353949c900e03fd764a8.zip
Add initial layer shell skeleton
Diffstat (limited to 'protocols')
-rw-r--r--protocols/meson.build55
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
17protocols = [ 17wayland_scanner_server = generator(
18 wayland_scanner,
19 output: '@BASENAME@-protocol.h',
20 arguments: ['server-header', '@INPUT@', '@OUTPUT@'],
21)
22
23client_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
22wl_protos_src = [] 28server_protocols = [
23wl_protos_headers = [] 29 ['wlr-layer-shell-unstable-v1.xml']
30]
31
32client_protos_src = []
33client_protos_headers = []
34
35server_protos_src = []
36server_protos_headers = []
24 37
25foreach p : protocols 38foreach 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)
29endforeach 42endforeach
30 43
31lib_wl_protos = static_library('wl_protos', wl_protos_src + wl_protos_headers, 44foreach 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)
48endforeach
49
50lib_client_protos = static_library(
51 'client_protos',
52 client_protos_src + client_protos_headers,
53 dependencies: [wayland_client]
54) # for the include directory
55
56client_protos = declare_dependency(
57 link_with: lib_client_protos,
58 sources: client_protos_headers,
59)
60
61lib_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
34sway_protos = declare_dependency( 67server_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)