meson: Support building Xnest and Xorg on darwin
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
(cherry picked from commit ef8101560e)
			
			
This commit is contained in:
		
							parent
							
								
									433f53a1a0
								
							
						
					
					
						commit
						033d93a021
					
				|  | @ -75,7 +75,7 @@ endif | |||
| 
 | ||||
| if host_machine.system() == 'cygwin' or host_machine.system() == 'windows' | ||||
|     linker_export_flags = '-Wl,--export-all-symbols' | ||||
| elif host_machine.system() == 'sunos' | ||||
| elif host_machine.system() == 'sunos' or host_machine.system() == 'darwin' | ||||
|     linker_export_flags = [] | ||||
| else | ||||
|     linker_export_flags = '-Wl,--export-dynamic' | ||||
|  |  | |||
|  | @ -184,8 +184,7 @@ if with_dtrace | |||
| endif | ||||
| 
 | ||||
| build_xorg = false | ||||
| if (host_machine.system() != 'darwin' and | ||||
|     host_machine.system() != 'windows') | ||||
| if (host_machine.system() != 'windows') | ||||
|     if get_option('xorg') == 'auto' | ||||
|         build_xorg = (host_machine.system() != 'darwin' and | ||||
|                       host_machine.system() != 'windows') | ||||
|  | @ -197,8 +196,7 @@ xorgsdkdir = join_paths(get_option('prefix'), get_option('includedir'), 'xorg') | |||
| libxcvt_dep = dependency('libxcvt', required: build_xorg) | ||||
| 
 | ||||
| build_xnest = false | ||||
| if (host_machine.system() != 'darwin' and | ||||
|     host_machine.system() != 'windows') | ||||
| if (host_machine.system() != 'windows') | ||||
|     if get_option('xnest') != 'false' | ||||
|         xnest_required = get_option('xnest') == 'true' | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue