kc3-lang/angle/doc/BuildingAngleForChromiumDevelopment.md

Branch

Download

How to build ANGLE in Chromium for dev

Introduction

On Windows, Linux, and Mac ANGLE now builds most core components cross platform, including the shader validator and translator as well as the graphics API translator. These parts can be built and tested inside a Chromium checkout.

ANGLE also includes some sample applications and a few other targets that don’t build on Chromium. These steps describe how to build such targets within a Chromium checkout.

Prerequisite Steps:

Standalone ANGLE inside Chromium

cd src/third_party/angle
python3 scripts/bootstrap.py
gclient sync
cd src/third_party/angle
gn gen out/Debug
cd src/third_party/angle
ninja -j 10 -k1 -C out/Debug

Working with ANGLE in Chromium

You will also want to work with a local version of ANGLE instead of the version that is pulled in by Chromium’s DEPS file. To do this do the following:

solutions = [
  {
    # ...
    u'custom_deps':
    {
      "src/third_party/angle": None,
    },
  },
]

You will have full control over your ANGLE workspace and are responsible for running all git commands (pull, rebase, etc.) for managing your branches.

If you decide you need to go back to the DEPS version of ANGLE:


Source

Download