Skip to content

brendankenny/angle-validator

Repository files navigation

angle-validator

A working build is shipped in out/. Installation and (re)building is only necessary if modifying source.

Init and Build (Mac/Linux)

  1. git clone https://github.com/brendankenny/angle-validator.git
  2. cd angle-validator/
  3. Download, install, and activate the Emscripten SDK
    git clone https://github.com/juj/emsdk.git
    ./emsdk/emsdk install latest
    ./emsdk/emsdk activate latest
  4. git clone https://chromium.googlesource.com/angle/angle (TODO: lock version)
  5. yarn build

Test

yarn test yarn lint yarn type-check

Update source list

Occasionally, the list of source files and compile flags will need to be regenerated as ANGLE is updated.

  1. 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 ..
  2. If update needed, initialize ANGLE
    cd angle
    python scripts/bootstrap.py
    gclient sync
    cd ..
  3. yarn gen
  4. Compare to checked-in build config (git diff build/build-config.json)
  5. yarn build if ANGLE or build changes require it

Update test expectation binary

If ANGLE is updated, should update test expectation generator from ANGLE source.

  1. yarn build --gt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published