Skip to content

Commit 69fb43d

Browse files
eliemichelDawn LUCI CQ
authored andcommitted
Add instructions about fetch_dawn_dependencies
Change-Id: I64929e3a2a9bdd18ab2b99569d638e475eb6a83e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/140183 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
1 parent cedcdf3 commit 69fb43d

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

docs/building.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
ls `xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs
2424
```
2525

26-
## Install `depot_tools`
26+
## Get the code and its dependencies
27+
28+
### Using `depot_tools`
2729

2830
Dawn uses the Chromium build system and dependency management so you need to [install depot_tools] and add it to the PATH.
2931

3032
[install depot_tools]: http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up
3133

32-
## Get the code
33-
3434
```sh
3535
# Clone the repo as "dawn"
3636
git clone https://dawn.googlesource.com/dawn dawn && cd dawn
@@ -42,6 +42,20 @@ cp scripts/standalone.gclient .gclient
4242
gclient sync
4343
```
4444

45+
### Without `depot_tools`
46+
47+
If you cannot or do not want to depend on `depot_tools`, you may use the `tools/fetch_dawn_dependencies.py` to clone the dependencies' repositories:
48+
49+
```sh
50+
# Clone the repo as "dawn"
51+
git clone https://dawn.googlesource.com/dawn dawn && cd dawn
52+
53+
# Fetch dependencies (lose equivalent of gclient sync)
54+
python tools/fetch_dawn_dependencies.py --use-test-deps
55+
```
56+
57+
Use `python tools/fetch_dawn_dependencies.py -h` to know more about the available options. The `--use-test-deps` option used above specifies to also fetch dependencies needed by tests. Contrary to `depot_tools`, this scripts does not figure out option-dependent requirements automatically.
58+
4559
## Build Dawn
4660
4761
### Compiling using CMake + Ninja

0 commit comments

Comments
 (0)