Skip to content

Latest commit

 

History

History
84 lines (63 loc) · 2.88 KB

BUILDING.md

File metadata and controls

84 lines (63 loc) · 2.88 KB

Building Shader Playground

Shader Playground depends on a significant number of compilers, and building these requires a number of different toolchains installed. These toolchains can be manually installed, or you can use a Docker image and container.

Building with the Docker image

Pre-requisites

The following must be installed:

Building

  1. First, ensure that Docker is running with Windows containers.

  2. Fetch the Shader Playground source:

# cd to your preferred location
git clone https://github.com/tgjones/shader-playground.git
cd shader-playground
  1. Build Docker image, container, and project:
.\build-docker.ps1

Be aware that this will take a long time, the first time, exceptionally so.

The build artifacts will copied into the project sub-directories.

Building without the Docker image

Pre-requisites

The following must be installed:

  • Visual Studio 2017
  • And these extra packages:
    • Microsoft.VisualStudio.Workload.VCTools
    • Microsoft.VisualStudio.Workload.NativeDesktop
    • Microsoft.VisualStudio.Component.VC.ATLMFC
    • Microsoft.Component.MSBuild
  • Visual Studio 2019
  • And these extra packages: Microsoft.VisualStudio.Component.VC.ATLMFC Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools Microsoft.VisualStudio.Workload.NetCoreBuildTools Microsoft.VisualStudio.Workload.WebBuildTools Microsoft.VisualStudio.Component.VC.ATLMFC
  • Windows SDK 19041
  • Windows SDK 17134
  • CMake
  • 7-Zip
    • 7zip.exe also be added to PATH
  • python2
    • PYTHON2 enviroment variable must point to python.exe. python.exe must not be on PATH
  • python3
    • PYTHON3 must be on PATH
  • depot_tools
    • This directory must be on PATH

Building

  1. Fetch the Shader Playground source:
# cd to your preferred location
git clone https://github.com/tgjones/shader-playground.git
cd shader-playground
  1. Build Docker image, container, and project:
.\build.ps1