diff options
Diffstat (limited to 'protocols/meson.build')
-rw-r--r-- | protocols/meson.build | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/protocols/meson.build b/protocols/meson.build index 53441f38..904aead4 100644 --- a/protocols/meson.build +++ b/protocols/meson.build | |||
@@ -19,7 +19,6 @@ protocols = [ | |||
19 | ] | 19 | ] |
20 | 20 | ||
21 | wl_protos_src = [] | 21 | wl_protos_src = [] |
22 | wl_protos_headers = [] | ||
23 | 22 | ||
24 | foreach xml : protocols | 23 | foreach xml : protocols |
25 | wl_protos_src += custom_target( | 24 | wl_protos_src += custom_target( |
@@ -28,38 +27,16 @@ foreach xml : protocols | |||
28 | output: '@BASENAME@-protocol.c', | 27 | output: '@BASENAME@-protocol.c', |
29 | command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'], | 28 | command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'], |
30 | ) | 29 | ) |
31 | wl_protos_headers += custom_target( | 30 | wl_protos_src += custom_target( |
32 | xml.underscorify() + '_server_h', | 31 | xml.underscorify() + '_server_h', |
33 | input: xml, | 32 | input: xml, |
34 | output: '@BASENAME@-protocol.h', | 33 | output: '@BASENAME@-protocol.h', |
35 | command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'], | 34 | command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'], |
36 | ) | 35 | ) |
37 | wl_protos_headers += custom_target( | 36 | wl_protos_src += custom_target( |
38 | xml.underscorify() + '_client_h', | 37 | xml.underscorify() + '_client_h', |
39 | input: xml, | 38 | input: xml, |
40 | output: '@BASENAME@-client-protocol.h', | 39 | output: '@BASENAME@-client-protocol.h', |
41 | command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'], | 40 | command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'], |
42 | ) | 41 | ) |
43 | endforeach | 42 | endforeach |
44 | |||
45 | lib_client_protos = static_library( | ||
46 | 'client_protos', | ||
47 | wl_protos_src + wl_protos_headers, | ||
48 | dependencies: wayland_client.partial_dependency(compile_args: true), | ||
49 | ) | ||
50 | |||
51 | client_protos = declare_dependency( | ||
52 | link_with: lib_client_protos, | ||
53 | sources: wl_protos_headers, | ||
54 | ) | ||
55 | |||
56 | lib_server_protos = static_library( | ||
57 | 'server_protos', | ||
58 | wl_protos_src + wl_protos_headers, | ||
59 | dependencies: wayland_server.partial_dependency(compile_args: true), | ||
60 | ) | ||
61 | |||
62 | server_protos = declare_dependency( | ||
63 | link_with: lib_server_protos, | ||
64 | sources: wl_protos_headers, | ||
65 | ) | ||