Name: d3dcompiler_42
Description: Microsoft d3dcompiler_42.dll
Provider: Microsoft
License: Microsoft EULA
License_url: https://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm
Dependencies: []
Steps:
- action: download_archive
  file_name: directx_Jun2010_redist.exe
  url: https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe
  file_checksum: 822e4c516600e81dc7fb16d9a77ec6d4
  file_size: 100275120

- action: get_from_cab
  source: directx_Jun2010_redist.exe
  file_name: Aug2009_D3DCompiler_42_x86.cab
  dest: temp/d3dcompiler_42_x86/

- action: get_from_cab
  source: directx_Jun2010_redist.exe
  file_name: Aug2009_D3DCompiler_42_x64.cab
  dest: temp/d3dcompiler_42_x64/
  for:
    - win64
  
- action: get_from_cab
  source: d3dcompiler_42_x86/Aug2009_D3DCompiler_42_x86.cab
  file_name: D3DCompiler_42.dll
  dest: win32
  rename: d3dcompiler_42.dll

- action: get_from_cab
  source: d3dcompiler_42_x64/Aug2009_D3DCompiler_42_x64.cab
  file_name: D3DCompiler_42.dll
  dest: win64/
  rename: d3dcompiler_42.dll
  for:
    - win64
  
- action: override_dll
  dll: d3dcompiler_42
  type: native,builtin
