Added DX12 recipe.
This commit is contained in:
		
							parent
							
								
									946cfc57ce
								
							
						
					
					
						commit
						0dcd8b383c
					
				
							
								
								
									
										23
									
								
								recipes/directx12/recipe.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								recipes/directx12/recipe.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import os
 | 
				
			||||||
 | 
					from SCons.Script import *
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def available(env: Environment):
 | 
				
			||||||
 | 
					    if os.name != 'nt':
 | 
				
			||||||
 | 
					        return 'DirectX12 is only available on Windows.'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def versions(env: Environment, update: bool = False):
 | 
				
			||||||
 | 
					    if os.name == 'nt':
 | 
				
			||||||
 | 
					        return [(0, 0, 0)]
 | 
				
			||||||
 | 
					    else:
 | 
				
			||||||
 | 
					        return []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def dependencies(env: Environment, version) -> 'dict':
 | 
				
			||||||
 | 
					    return {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def cook(env: Environment, version) -> dict:
 | 
				
			||||||
 | 
					    return {
 | 
				
			||||||
 | 
					        'LIBS': ['dxgi', 'd3d12']
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user