[docs] Make per-platform installation docs self-contained
I've seen several issues where users followed platform-specific install docs, but were unaware of additional prerequisites spelled out in the top-level INSTALL.md. So let's try making each platform's installation documentation self contained.
This commit is contained in:
@@ -4,12 +4,14 @@ This document explains how to build the [Node.js](https://nodejs.org/) bindings
|
||||
|
||||
## Building
|
||||
|
||||
To develop these bindings, you’ll need to build them from source. Building requires [installing all of the basic dependencies needed for Mapbox GL Native](../../INSTALL.md), then running:
|
||||
To develop these bindings, you’ll need to build them from source. Building requires the prerequisites listed in either
|
||||
the [macOS](../macos/INSTALL.md#requirements) or [Linux](../linux/README.md#prerequisites) install documentation, depending
|
||||
on the target platform.
|
||||
|
||||
To compile the Node.js bindings and install module dependencies, from the repository root directory, run:
|
||||
|
||||
npm install --build-from-source
|
||||
|
||||
From the root directory. This will compile the Node.js bindings and install module dependencies.
|
||||
|
||||
To recompile just the C++ code while developing, run `make node`.
|
||||
|
||||
To create an Xcode project and use a GUI debugger in the case of a crash, run `make xnode`.
|
||||
|
||||
@@ -17,7 +17,8 @@ Run:
|
||||
npm install @mapbox/mapbox-gl-native
|
||||
```
|
||||
|
||||
Other platforms will fall back to a source compile with `make node`; see INSTALL.md in the repository root directory for prequisites.
|
||||
Other platforms will fall back to a source compile with `make node`; see [DEVELOPING.md](DEVELOPING.md) for details on
|
||||
building from source.
|
||||
|
||||
## Testing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user