24 lines
458 B
Python
24 lines
458 B
Python
|
|
|
|
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']
|
|
}
|