A working build is shipped in out/
. Installation and (re)building is only necessary if modifying source.
git clone https://github.com/brendankenny/angle-validator.git
cd angle-validator/
- Download, install, and activate the Emscripten SDK
git clone https://github.com/juj/emsdk.git ./emsdk/emsdk install latest ./emsdk/emsdk activate latest
git clone https://chromium.googlesource.com/angle/angle
(TODO: lock version)yarn build
yarn test
yarn lint
yarn type-check
Occasionally, the list of source files and compile flags will need to be regenerated as ANGLE is updated.
- Check for changes to shader translator sample
cd angle git fetch git diff origin/master -R -- samples/shader_translator/shader_translator.cpp git diff origin/master -R # optional, will be very large git pull # if desired cd ..
- If update needed, initialize ANGLE
cd angle python scripts/bootstrap.py gclient sync cd ..
yarn gen
- Compare to checked-in build config (
git diff build/build-config.json
) yarn build
if ANGLE or build changes require it
If ANGLE is updated, should update test expectation generator from ANGLE source.
yarn build --gt