diff options
author | 2022-11-25 10:51:20 +0100 | |
---|---|---|
committer | 2022-11-25 10:51:20 +0100 | |
commit | af8a5a8918ef42336194fb1077b008a736de7af9 (patch) | |
tree | c75c268d82f38a5bc4101fee40b985e3f12b5fea | |
parent | build: drop "server" from target name for protocol code (diff) | |
download | sway-af8a5a8918ef42336194fb1077b008a736de7af9.tar.gz sway-af8a5a8918ef42336194fb1077b008a736de7af9.tar.zst sway-af8a5a8918ef42336194fb1077b008a736de7af9.zip |
build: drop intermediate libraries for protocols
-rw-r--r-- | protocols/meson.build | 27 | ||||
-rw-r--r-- | sway/meson.build | 3 | ||||
-rw-r--r-- | swaybar/meson.build | 4 | ||||
-rw-r--r-- | swaynag/meson.build | 2 |
4 files changed, 6 insertions, 30 deletions
diff --git a/protocols/meson.build b/protocols/meson.build index 0473b01f..e6fdec7d 100644 --- a/protocols/meson.build +++ b/protocols/meson.build | |||
@@ -20,7 +20,6 @@ protocols = [ | |||
20 | ] | 20 | ] |
21 | 21 | ||
22 | wl_protos_src = [] | 22 | wl_protos_src = [] |
23 | wl_protos_headers = [] | ||
24 | 23 | ||
25 | foreach xml : protocols | 24 | foreach xml : protocols |
26 | wl_protos_src += custom_target( | 25 | wl_protos_src += custom_target( |
@@ -29,38 +28,16 @@ foreach xml : protocols | |||
29 | output: '@BASENAME@-protocol.c', | 28 | output: '@BASENAME@-protocol.c', |
30 | command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'], | 29 | command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'], |
31 | ) | 30 | ) |
32 | wl_protos_headers += custom_target( | 31 | wl_protos_src += custom_target( |
33 | xml.underscorify() + '_server_h', | 32 | xml.underscorify() + '_server_h', |
34 | input: xml, | 33 | input: xml, |
35 | output: '@BASENAME@-protocol.h', | 34 | output: '@BASENAME@-protocol.h', |
36 | command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'], | 35 | command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'], |
37 | ) | 36 | ) |
38 | wl_protos_headers += custom_target( | 37 | wl_protos_src += custom_target( |
39 | xml.underscorify() + '_client_h', | 38 | xml.underscorify() + '_client_h', |
40 | input: xml, | 39 | input: xml, |
41 | output: '@BASENAME@-client-protocol.h', | 40 | output: '@BASENAME@-client-protocol.h', |
42 | command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'], | 41 | command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'], |
43 | ) | 42 | ) |
44 | endforeach | 43 | endforeach |
45 | |||
46 | lib_client_protos = static_library( | ||
47 | 'client_protos', | ||
48 | wl_protos_src + wl_protos_headers, | ||
49 | dependencies: wayland_client.partial_dependency(compile_args: true), | ||
50 | ) | ||
51 | |||
52 | client_protos = declare_dependency( | ||
53 | link_with: lib_client_protos, | ||
54 | sources: wl_protos_headers, | ||
55 | ) | ||
56 | |||
57 | lib_server_protos = static_library( | ||
58 | 'server_protos', | ||
59 | wl_protos_src + wl_protos_headers, | ||
60 | dependencies: wayland_server.partial_dependency(compile_args: true), | ||
61 | ) | ||
62 | |||
63 | server_protos = declare_dependency( | ||
64 | link_with: lib_server_protos, | ||
65 | sources: wl_protos_headers, | ||
66 | ) | ||
diff --git a/sway/meson.build b/sway/meson.build index 4d7dccfa..bb6bf88c 100644 --- a/sway/meson.build +++ b/sway/meson.build | |||
@@ -222,7 +222,6 @@ sway_deps = [ | |||
222 | pcre2, | 222 | pcre2, |
223 | glesv2, | 223 | glesv2, |
224 | pixman, | 224 | pixman, |
225 | server_protos, | ||
226 | threads, | 225 | threads, |
227 | wayland_server, | 226 | wayland_server, |
228 | wlroots, | 227 | wlroots, |
@@ -237,7 +236,7 @@ endif | |||
237 | 236 | ||
238 | executable( | 237 | executable( |
239 | 'sway', | 238 | 'sway', |
240 | sway_sources, | 239 | sway_sources + wl_protos_src, |
241 | include_directories: [sway_inc], | 240 | include_directories: [sway_inc], |
242 | dependencies: sway_deps, | 241 | dependencies: sway_deps, |
243 | link_with: [lib_sway_common], | 242 | link_with: [lib_sway_common], |
diff --git a/swaybar/meson.build b/swaybar/meson.build index 9feb3cd2..e5f1811e 100644 --- a/swaybar/meson.build +++ b/swaybar/meson.build | |||
@@ -8,7 +8,6 @@ tray_files = have_tray ? [ | |||
8 | 8 | ||
9 | swaybar_deps = [ | 9 | swaybar_deps = [ |
10 | cairo, | 10 | cairo, |
11 | client_protos, | ||
12 | gdk_pixbuf, | 11 | gdk_pixbuf, |
13 | jsonc, | 12 | jsonc, |
14 | math, | 13 | math, |
@@ -32,7 +31,8 @@ executable( | |||
32 | 'main.c', | 31 | 'main.c', |
33 | 'render.c', | 32 | 'render.c', |
34 | 'status_line.c', | 33 | 'status_line.c', |
35 | tray_files | 34 | tray_files, |
35 | wl_protos_src, | ||
36 | ], | 36 | ], |
37 | include_directories: [sway_inc], | 37 | include_directories: [sway_inc], |
38 | dependencies: swaybar_deps, | 38 | dependencies: swaybar_deps, |
diff --git a/swaynag/meson.build b/swaynag/meson.build index 71f2fc2d..f238bbb5 100644 --- a/swaynag/meson.build +++ b/swaynag/meson.build | |||
@@ -5,11 +5,11 @@ executable( | |||
5 | 'render.c', | 5 | 'render.c', |
6 | 'swaynag.c', | 6 | 'swaynag.c', |
7 | 'types.c', | 7 | 'types.c', |
8 | wl_protos_src, | ||
8 | ], | 9 | ], |
9 | include_directories: [sway_inc], | 10 | include_directories: [sway_inc], |
10 | dependencies: [ | 11 | dependencies: [ |
11 | cairo, | 12 | cairo, |
12 | client_protos, | ||
13 | pango, | 13 | pango, |
14 | pangocairo, | 14 | pangocairo, |
15 | wayland_client, | 15 | wayland_client, |