Skip to content

Commit aec2150

Browse files
committed
tools: replace GYP with GYP3 (2/2) - node changes
1 parent b12a56e commit aec2150

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,9 +1064,10 @@ The externally maintained libraries used by Node.js are:
10641064
--------
10651065
"""
10661066

1067-
- GYP, located at tools/gyp, is licensed as follows:
1067+
- GYP3, located at tools/gyp, is licensed as follows:
10681068
"""
10691069
Copyright (c) 2009 Google Inc. All rights reserved.
1070+
Copyright (c) 2019 Refael Ackeramnn<[email protected]>. All rights reserved.
10701071

10711072
Redistribution and use in source and binary forms, with or without
10721073
modification, are permitted provided that the following conditions are

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
CC = os.environ.get('CC', 'cc' if sys.platform == 'darwin' else 'gcc')
2525
CXX = os.environ.get('CXX', 'c++' if sys.platform == 'darwin' else 'g++')
2626

27-
sys.path.insert(0, os.path.join('tools', 'gyp', 'pylib'))
27+
sys.path.insert(0, os.path.join('tools', 'gyp'))
2828
from gyp.common import GetFlavor
2929

3030
# imports in tools/configure.d

tools/gyp_node.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
script_dir = os.path.dirname(__file__)
77
node_root = os.path.normpath(os.path.join(script_dir, os.pardir))
88

9-
sys.path.insert(0, os.path.join(node_root, 'tools', 'gyp', 'pylib'))
9+
sys.path.insert(0, os.path.join(node_root, 'tools', 'gyp'))
1010
import gyp
1111

1212
# Directory within which we want all generated files (including Makefiles)
@@ -34,13 +34,11 @@ def run_gyp(args):
3434

3535
args.append('--depth=' + node_root)
3636

37-
# There's a bug with windows which doesn't allow this feature.
38-
if sys.platform != 'win32' and 'ninja' not in args:
39-
# Tell gyp to write the Makefiles into output_dir
40-
args.extend(['--generator-output', output_dir])
37+
# Tell gyp to write the Makefiles into output_dir
38+
args.extend(['--generator-output', output_dir])
4139

42-
# Tell make to write its output into the same dir
43-
args.extend(['-Goutput_dir=' + output_dir])
40+
# Tell make to write its output into the same dir
41+
args.extend(['-Goutput_dir=' + output_dir])
4442

4543
args.append('-Dcomponent=static_library')
4644
args.append('-Dlibrary=static_library')

tools/license-builder.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ addlicense "zlib" "deps/zlib" \
7474
addlicense "npm" "deps/npm" "$(cat ${rootdir}/deps/npm/LICENSE)"
7575

7676
# Build tools
77-
addlicense "GYP" "tools/gyp" "$(cat ${rootdir}/tools/gyp/LICENSE)"
77+
addlicense "GYP3" "tools/gyp" "$(cat ${rootdir}/tools/gyp/LICENSE)"
7878
addlicense "inspector_protocol" "tools/inspector_protocol" "$(cat ${rootdir}/tools/inspector_protocol/LICENSE)"
7979
addlicense "jinja2" "tools/inspector_protocol/jinja2" "$(cat ${rootdir}/tools/inspector_protocol/jinja2/LICENSE)"
8080
addlicense "markupsafe" "tools/inspector_protocol/markupsafe" "$(cat ${rootdir}/tools/inspector_protocol/markupsafe/LICENSE)"

0 commit comments

Comments
 (0)