Linux
pkg-config
command:# Install pkg-config on Ubuntu sudo apt-get install pkg-config
Mac
xcode-select
to check whether you have it.ls `xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs
Use tools/fetch_dawn_dependencies.py
to clone the dependencies' repositories:
# Clone the repo as "dawn" git clone https://dawn.googlesource.com/samples dawn-samples && cd dawn-samples # Fetch dependencies (lose equivalent of gclient sync) python tools/fetch_dawn_dependencies.py
Use python tools/fetch_dawn_dependencies.py -h
to know more about the available options. Contrary to depot_tools
, this scripts does not figure out option-dependent requirements automatically.
TODO: Dawn samples do not yet support using the Chromium build system.
mkdir -p out/Debug cd out/Debug cmake ../.. make # -j N for N-way parallel build