Skip to content

Commit 4e7b529

Browse files
committed
[docs] build command change of node.js in NW: define building_nw=1
Ref nwjs#5971
1 parent b12ee45 commit 4e7b529

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/For Developers/Building NW.js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ See the upstream documentation for the mapping between GN and GYP flags: https:/
8888

8989
```bash
9090
cd src
91-
GYP_CHROMIUM_NO_ACTION=0 ./build/gyp_chromium -I third_party/node-nw/common.gypi third_party/node-nw/node.gyp
91+
GYP_CHROMIUM_NO_ACTION=0 ./build/gyp_chromium -I third_party/node-nw/common.gypi -D building_nw=1 third_party/node-nw/node.gyp
9292
```
9393

9494
or use the following if you're doing a component build:
9595
```bash
96-
./build/gyp_chromium -D component=shared_library -I third_party/node-nw/common.gypi third_party/node-nw/node.gyp
96+
./build/gyp_chromium -D component=shared_library -I third_party/node-nw/common.gypi -D building_nw=1 third_party/node-nw/node.gyp
9797
```
9898
To change the build configuration for Node, you need to setup the GYP_DEFINES environment variable:
9999

0 commit comments

Comments
 (0)