| 
									
										
										
										
											2022-11-02 20:11:55 +01:00
										 |  |  | #!/usr/bin/env python | 
					
						
							| 
									
										
										
										
											2024-06-11 15:19:07 -05:00
										 |  |  | from misc.utility.scons_hints import * | 
					
						
							| 
									
										
										
										
											2022-11-02 20:11:55 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | Import("env") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-08 17:11:20 -05:00
										 |  |  | File = env.File | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-02 20:11:55 +01:00
										 |  |  | source_files = [ | 
					
						
							| 
									
										
										
										
											2025-10-08 17:11:20 -05:00
										 |  |  |     File("display_server_x11.cpp"), | 
					
						
							|  |  |  |     File("key_mapping_x11.cpp"), | 
					
						
							| 
									
										
										
										
											2022-11-02 20:11:55 +01:00
										 |  |  | ] | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-15 14:13:56 +02:00
										 |  |  | if env["use_sowrap"]: | 
					
						
							|  |  |  |     source_files.append( | 
					
						
							|  |  |  |         [ | 
					
						
							| 
									
										
										
										
											2025-10-08 17:11:20 -05:00
										 |  |  |             File("dynwrappers/xlib-so_wrap.c"), | 
					
						
							|  |  |  |             File("dynwrappers/xcursor-so_wrap.c"), | 
					
						
							|  |  |  |             File("dynwrappers/xinerama-so_wrap.c"), | 
					
						
							|  |  |  |             File("dynwrappers/xinput2-so_wrap.c"), | 
					
						
							|  |  |  |             File("dynwrappers/xrandr-so_wrap.c"), | 
					
						
							|  |  |  |             File("dynwrappers/xrender-so_wrap.c"), | 
					
						
							|  |  |  |             File("dynwrappers/xext-so_wrap.c"), | 
					
						
							| 
									
										
										
										
											2023-02-15 14:13:56 +02:00
										 |  |  |         ] | 
					
						
							|  |  |  |     ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-02 20:11:55 +01:00
										 |  |  | if env["vulkan"]: | 
					
						
							| 
									
										
										
										
											2025-10-08 17:11:20 -05:00
										 |  |  |     source_files.append(File("rendering_context_driver_vulkan_x11.cpp")) | 
					
						
							| 
									
										
										
										
											2022-11-02 20:11:55 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | if env["opengl3"]: | 
					
						
							| 
									
										
										
										
											2022-11-29 12:03:06 +01:00
										 |  |  |     env.Append(CPPDEFINES=["GLAD_GLX_NO_X11"]) | 
					
						
							| 
									
										
										
										
											2023-09-22 10:55:55 +03:00
										 |  |  |     source_files.append( | 
					
						
							| 
									
										
										
										
											2025-10-08 17:11:20 -05:00
										 |  |  |         [ | 
					
						
							|  |  |  |             File("gl_manager_x11_egl.cpp"), | 
					
						
							|  |  |  |             File("gl_manager_x11.cpp"), | 
					
						
							|  |  |  |             File("detect_prime_x11.cpp"), | 
					
						
							|  |  |  |             File("#thirdparty/glad/glx.c"), | 
					
						
							|  |  |  |         ] | 
					
						
							| 
									
										
										
										
											2023-09-22 10:55:55 +03:00
										 |  |  |     ) | 
					
						
							| 
									
										
										
										
											2022-11-02 20:11:55 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-08 17:11:20 -05:00
										 |  |  | Return("source_files") |