24 lines
		
	
	
		
			450 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			450 B
		
	
	
	
		
			Python
		
	
	
	
	
	
 | 
						|
 | 
						|
import os
 | 
						|
from SCons.Script import *
 | 
						|
 | 
						|
 | 
						|
def available(env: Environment):
 | 
						|
    if os.name != 'nt':
 | 
						|
        return 'Winsock2 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': ['Ws2_32']
 | 
						|
    }
 |