Add linux dependencies to documentation.
This CL adds the needed dependencies to build Dawn on Linux to the
building.md document.
Change-Id: I1fd85ae1642834f534558819c5edb77cd92a7539
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/181000
Auto-Submit: dan sinclair <dsinclair@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
diff --git a/docs/building.md b/docs/building.md
index 7e33e88..72a6003 100644
--- a/docs/building.md
+++ b/docs/building.md
@@ -56,6 +56,26 @@
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.
+### Linux dependencies
+
+The following packages are needed to build Dawn. (Package names are the Ubuntu names).
+
+* `libxrandr-dev`
+* `libxinerama-dev`
+* `libxcursor-dev`
+* `mesa-common-dev`
+* `libx11-xcb-dev`
+* `pkg-config`
+* `nodejs`
+* `npm`
+
+```sh
+sudo apt-get install libxrandr-dev libxinerama-dev libxcursor-dev mesa-common-dev libx11-xcb-dev pkg-config nodejs npm
+```
+
+Note, `nodejs` and `npm` are only needed if building `dawn.node`.
+
+
## Build Dawn
### Compiling using CMake + Ninja
diff --git a/src/dawn/node/README.md b/src/dawn/node/README.md
index bee52b2..95c2b16 100644
--- a/src/dawn/node/README.md
+++ b/src/dawn/node/README.md
@@ -30,13 +30,7 @@
gclient sync
```
-Optionally, on Linux install X11-xcb support:
-
-```sh
-sudo apt-get install libx11-xcb-dev
-```
-
-If you don't have those supporting libraries, then you must use the
+If you don't have the `libx11-xbc-dev` supporting library, then you must use the
`-DDAWN_USE_X11=OFF` flag on CMake (see below).
### Build