Skip to content

Commit ae2ac4f

Browse files
committed
gyp: add js files to node project
1 parent d01b87d commit ae2ac4f

File tree

1 file changed

+48
-46
lines changed

1 file changed

+48
-46
lines changed

node.gyp

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,52 @@
33
'v8_use_snapshot': 'true',
44
'target_arch': 'ia32',
55
'node_use_dtrace': 'false',
6-
'node_use_openssl%': 'true'
6+
'node_use_openssl%': 'true',
7+
'library_files': [
8+
'src/node.js',
9+
'lib/_debugger.js',
10+
'lib/_linklist.js',
11+
'lib/assert.js',
12+
'lib/buffer.js',
13+
'lib/buffer_ieee754.js',
14+
'lib/child_process_legacy.js',
15+
'lib/child_process_uv.js',
16+
'lib/console.js',
17+
'lib/constants.js',
18+
'lib/crypto.js',
19+
'lib/dgram_legacy.js',
20+
'lib/dgram_uv.js',
21+
'lib/dns_legacy.js',
22+
'lib/dns_uv.js',
23+
'lib/events.js',
24+
'lib/freelist.js',
25+
'lib/fs.js',
26+
'lib/http.js',
27+
'lib/http2.js',
28+
'lib/https.js',
29+
'lib/https2.js',
30+
'lib/module.js',
31+
'lib/net_legacy.js',
32+
'lib/net_uv.js',
33+
'lib/os.js',
34+
'lib/path.js',
35+
'lib/punycode.js',
36+
'lib/querystring.js',
37+
'lib/readline.js',
38+
'lib/repl.js',
39+
'lib/stream.js',
40+
'lib/string_decoder.js',
41+
'lib/sys.js',
42+
'lib/timers_legacy.js',
43+
'lib/timers_uv.js',
44+
'lib/tls.js',
45+
'lib/tty.js',
46+
'lib/tty_posix.js',
47+
'lib/tty_win32.js',
48+
'lib/url.js',
49+
'lib/util.js',
50+
'lib/vm.js',
51+
],
752
},
853

954
'targets': [
@@ -76,6 +121,8 @@
76121
'deps/v8/include/v8.h',
77122
'deps/v8/include/v8-debug.h',
78123
'<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
124+
# javascript files to make for an even more pleasant IDE experience
125+
'<@(library_files)',
79126
],
80127

81128
'defines': [
@@ -150,51 +197,6 @@
150197
'type': 'none',
151198
'toolsets': ['host'],
152199
'variables': {
153-
'library_files': [
154-
'src/node.js',
155-
'lib/_debugger.js',
156-
'lib/_linklist.js',
157-
'lib/assert.js',
158-
'lib/buffer.js',
159-
'lib/buffer_ieee754.js',
160-
'lib/child_process_legacy.js',
161-
'lib/child_process_uv.js',
162-
'lib/console.js',
163-
'lib/constants.js',
164-
'lib/crypto.js',
165-
'lib/dgram_legacy.js',
166-
'lib/dgram_uv.js',
167-
'lib/dns_legacy.js',
168-
'lib/dns_uv.js',
169-
'lib/events.js',
170-
'lib/freelist.js',
171-
'lib/fs.js',
172-
'lib/http.js',
173-
'lib/http2.js',
174-
'lib/https.js',
175-
'lib/https2.js',
176-
'lib/module.js',
177-
'lib/net_legacy.js',
178-
'lib/net_uv.js',
179-
'lib/os.js',
180-
'lib/path.js',
181-
'lib/punycode.js',
182-
'lib/querystring.js',
183-
'lib/readline.js',
184-
'lib/repl.js',
185-
'lib/stream.js',
186-
'lib/string_decoder.js',
187-
'lib/sys.js',
188-
'lib/timers_legacy.js',
189-
'lib/timers_uv.js',
190-
'lib/tls.js',
191-
'lib/tty.js',
192-
'lib/tty_posix.js',
193-
'lib/tty_win32.js',
194-
'lib/url.js',
195-
'lib/util.js',
196-
'lib/vm.js',
197-
],
198200
},
199201

200202
'actions': [

0 commit comments

Comments
 (0)