File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77protocols = [
88 ' wlr-layer-shell-unstable-v1.xml' ,
9- ' xdg-dialog-v1.xml' ,
109 join_paths (
1110 wayland_protocols.get_variable (pkgconfig : ' pkgdatadir' ),
1211 ' stable/xdg-shell/xdg-shell.xml' ),
1312]
1413
14+ if get_option (' tests' )
15+ protocols += ' xdg-dialog-v1.xml'
16+ endif
17+
1518gen_client_header = generator (prog_wayland_scanner,
1619 output : [' @BASENAME@-client.h' ],
1720 arguments : [' -c' , ' client-header' , ' @INPUT@' , ' @BUILD_DIR@/@BASENAME@-client.h' ])
@@ -29,8 +32,10 @@ server_protocol_srcs = []
2932
3033foreach protocol : protocols
3134 client_header = gen_client_header.process(protocol)
32- server_header = gen_server_header.process(protocol)
3335 code = gen_private_code.process(protocol)
3436 client_protocol_srcs += [client_header, code]
35- server_protocol_srcs += [server_header, code]
37+ if get_option (' tests' )
38+ server_header = gen_server_header.process(protocol)
39+ server_protocol_srcs += [server_header, code]
40+ endif
3641endforeach
You can’t perform that action at this time.
0 commit comments