Skip to content

Commit

Permalink
tools/third_party: add DENO_GN_PATH and DENO_NINJA_PATH env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmoritz authored and ry committed May 30, 2019
1 parent 4c80394 commit 15dadf8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
11 changes: 9 additions & 2 deletions tools/third_party.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ def tp(*subpath_parts):
depot_tools_path = tp("depot_tools")
rust_crates_path = tp("rust_crates")
python_packages_path = tp("python_packages")
gn_path = tp(depot_tools_path, "gn")
clang_format_path = tp(depot_tools_path, "clang-format")
ninja_path = tp(depot_tools_path, "ninja")

if "DENO_GN_PATH" in os.environ:
gn_path = os.environ["DENO_GN_PATH"]
else:
gn_path = tp(depot_tools_path, "gn")
if "DENO_NINJA_PATH" in os.environ:
ninja_path = os.environ["DENO_NINJA_PATH"]
else:
ninja_path = tp(depot_tools_path, "ninja")

python_site_env = None

Expand Down
8 changes: 7 additions & 1 deletion website/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,16 @@ Extra steps for Windows users:
# Update third_party modules
git submodule update
# Skip downloading binary build tools and point the build
# to the system provided ones (for packagers of deno ...).
./tools/setup.py --no-binary-download
export DENO_BUILD_ARGS="clang_base_path=/usr clang_use_chrome_plugins=false"
DENO_GN_PATH=/usr/bin/gn DENO_NINJA_PATH=/usr/bin/ninja ./tools/build.py
```

Environment variables: `DENO_BUILD_MODE`, `DENO_BUILD_PATH`, `DENO_BUILD_ARGS`,
`DENO_DIR`.
`DENO_DIR`, `DENO_GN_PATH`, `DENO_NINJA_PATH`.

## API reference

Expand Down

0 comments on commit 15dadf8

Please sign in to comment.