1- wl_protocol_dir = wayland_protos.get_pkgconfig_variable(' pkgdatadir' )
2-
1+ wl_protocol_dir = wayland_protos.get_variable (pkgconfig : ' pkgdatadir' , internal : ' pkgdatadir' )
32wayland_scanner = find_program (' wayland-scanner' )
43
54wayland_scanner_code = generator (
@@ -15,25 +14,26 @@ wayland_scanner_client = generator(
1514)
1615
1716client_protocols = [
18- ' wlr-foreign-toplevel-management-unstable-v1.xml' ,
19- ' wlr-screencopy.xml' ,
20- wayfire.get_pkgconfig_variable(' pkgdatadir' ) / ' unstable' / ' wayfire-shell-unstable-v2.xml' ,
17+ [wl_protocol_dir, ' unstable/xdg-output/xdg-output-unstable-v1.xml' ],
18+ [wl_protocol_dir, ' unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml' ],
19+ [wl_protocol_dir, ' staging/ext-foreign-toplevel-list/ext-foreign-toplevel-list-v1.xml' ],
20+ [wl_protocol_dir, ' staging/ext-image-capture-source/ext-image-capture-source-v1.xml' ],
21+ [wl_protocol_dir, ' staging/ext-image-copy-capture/ext-image-copy-capture-v1.xml' ],
22+ ' wlr-foreign-toplevel-management-unstable-v1.xml' ,
23+ ' wlr-screencopy.xml' ,
24+ wayfire.get_pkgconfig_variable(' pkgdatadir' ) / ' unstable' / ' wayfire-shell-unstable-v2.xml' ,
2125]
2226
23- if gbm.found() and drm.found() and not get_option (' live-previews-dmabuf' ).disabled()
24- client_protocols += [join_paths (wl_protocol_dir, ' unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml' )]
25- endif
26-
27- wl_protos_src = []
27+ wl_protos_client_src = []
2828wl_protos_headers = []
2929
3030foreach p : client_protocols
3131 xml = join_paths (p)
32+ wl_protos_client_src += wayland_scanner_code.process(xml)
3233 wl_protos_headers += wayland_scanner_client.process(xml)
33- wl_protos_src += wayland_scanner_code.process(xml)
3434endforeach
3535
36- lib_wl_protos = static_library (' wl_protos' , wl_protos_src + wl_protos_headers,
36+ lib_wl_protos = static_library (' wl_protos' , wl_protos_client_src + wl_protos_headers,
3737 dependencies : [wayland_client]) # for the include directory
3838
3939wf_protos = declare_dependency (
0 commit comments