mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-10-29 05:40:12 -04:00 
			
		
		
		
	meson: Fix protocol includes for compositor examples
This commit is contained in:
		
							parent
							
								
									57ffb35de0
								
							
						
					
					
						commit
						70a084c119
					
				
					 3 changed files with 14 additions and 6 deletions
				
			
		|  | @ -53,14 +53,15 @@ foreach name, path : protocols | |||
| 	) | ||||
| 	wlr_files += code | ||||
| 
 | ||||
| 	wlr_files += custom_target( | ||||
| 	server_header = custom_target( | ||||
| 		name.underscorify() + '_server_h', | ||||
| 		input: path, | ||||
| 		output: '@BASENAME@-protocol.h', | ||||
| 		command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'], | ||||
| 	) | ||||
| 	wlr_files += server_header | ||||
| 
 | ||||
| 	header = custom_target( | ||||
| 	client_header = custom_target( | ||||
| 		name.underscorify() + '_client_h', | ||||
| 		input: path, | ||||
| 		output: '@BASENAME@-client-protocol.h', | ||||
|  | @ -69,5 +70,6 @@ foreach name, path : protocols | |||
| 	) | ||||
| 
 | ||||
| 	set_variable(name.underscorify() + '_c', code) | ||||
| 	set_variable(name.underscorify() + '_h', header) | ||||
| 	set_variable(name.underscorify() + '_server_h', server_header) | ||||
| 	set_variable(name.underscorify() + '_client_h', client_header) | ||||
| endforeach | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Scott Anderson
						Scott Anderson