Skip to content

Instantly share code, notes, and snippets.

Created September 4, 2011 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1193683 to your computer and use it in GitHub Desktop.
Save anonymous/1193683 to your computer and use it in GitHub Desktop.
diff --git a/node.gyp b/node.gyp
index c90927f..c0a390b 100644
--- a/node.gyp
+++ b/node.gyp
@@ -3,7 +3,52 @@
'v8_use_snapshot': 'true',
'target_arch': 'ia32',
'node_use_dtrace': 'false',
- 'node_use_openssl%': 'true'
+ 'node_use_openssl%': 'true',
+ 'library_files': [
+ 'src/node.js',
+ 'lib/_debugger.js',
+ 'lib/_linklist.js',
+ 'lib/assert.js',
+ 'lib/buffer.js',
+ 'lib/buffer_ieee754.js',
+ 'lib/child_process_legacy.js',
+ 'lib/child_process_uv.js',
+ 'lib/console.js',
+ 'lib/constants.js',
+ 'lib/crypto.js',
+ 'lib/dgram_legacy.js',
+ 'lib/dgram_uv.js',
+ 'lib/dns_legacy.js',
+ 'lib/dns_uv.js',
+ 'lib/events.js',
+ 'lib/freelist.js',
+ 'lib/fs.js',
+ 'lib/http.js',
+ 'lib/http2.js',
+ 'lib/https.js',
+ 'lib/https2.js',
+ 'lib/module.js',
+ 'lib/net_legacy.js',
+ 'lib/net_uv.js',
+ 'lib/os.js',
+ 'lib/path.js',
+ 'lib/punycode.js',
+ 'lib/querystring.js',
+ 'lib/readline.js',
+ 'lib/repl.js',
+ 'lib/stream.js',
+ 'lib/string_decoder.js',
+ 'lib/sys.js',
+ 'lib/timers_legacy.js',
+ 'lib/timers_uv.js',
+ 'lib/tls.js',
+ 'lib/tty.js',
+ 'lib/tty_posix.js',
+ 'lib/tty_win32.js',
+ 'lib/url.js',
+ 'lib/util.js',
+ 'lib/vm.js',
+ ],
},
'targets': [
@@ -76,6 +121,8 @@
'deps/v8/include/v8.h',
'deps/v8/include/v8-debug.h',
'<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
+ # javascript files to make for an even more pleasant IDE experience
+ '<@(library_files)',
],
'defines': [
@@ -150,51 +197,6 @@
'type': 'none',
'toolsets': ['host'],
'variables': {
- 'library_files': [
- 'src/node.js',
- 'lib/_debugger.js',
- 'lib/_linklist.js',
- 'lib/assert.js',
- 'lib/buffer.js',
- 'lib/buffer_ieee754.js',
- 'lib/child_process_legacy.js',
- 'lib/child_process_uv.js',
- 'lib/console.js',
- 'lib/constants.js',
- 'lib/crypto.js',
- 'lib/dgram_legacy.js',
- 'lib/dgram_uv.js',
- 'lib/dns_legacy.js',
- 'lib/dns_uv.js',
- 'lib/events.js',
- 'lib/freelist.js',
- 'lib/fs.js',
- 'lib/http.js',
- 'lib/http2.js',
- 'lib/https.js',
- 'lib/https2.js',
- 'lib/module.js',
- 'lib/net_legacy.js',
- 'lib/net_uv.js',
- 'lib/os.js',
- 'lib/path.js',
- 'lib/punycode.js',
- 'lib/querystring.js',
- 'lib/readline.js',
- 'lib/repl.js',
- 'lib/stream.js',
- 'lib/string_decoder.js',
- 'lib/sys.js',
- 'lib/timers_legacy.js',
- 'lib/timers_uv.js',
- 'lib/tls.js',
- 'lib/tty.js',
- 'lib/tty_posix.js',
- 'lib/tty_win32.js',
- 'lib/url.js',
- 'lib/util.js',
- 'lib/vm.js',
- ],
},
'actions': [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment