Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
installer: install node-waf
Browse files Browse the repository at this point in the history
* added --without-waf flag for configure script
  • Loading branch information
indutny authored and ry committed Jan 17, 2012
1 parent 72cbb74 commit 6e76a7c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions configure
Expand Up @@ -27,6 +27,11 @@ parser.add_option("--without-npm",
dest="without_npm",
help="Don\'t install the bundled npm package manager")

parser.add_option("--without-waf",
action="store_true",
dest="without_waf",
help="Don\'t install node-waf")

parser.add_option("--without-isolates",
action="store_true",
dest="without_isolates",
Expand Down Expand Up @@ -172,6 +177,7 @@ def configure_node(o):
o['variables']['node_prefix'] = options.prefix if options.prefix else ''
o['variables']['node_use_dtrace'] = b(options.with_dtrace)
o['variables']['node_install_npm'] = b(not options.without_npm)
o['variables']['node_install_waf'] = b(not options.without_waf)
o['variables']['host_arch'] = host_arch()
o['variables']['target_arch'] = options.dest_cpu or target_arch()

Expand Down
11 changes: 9 additions & 2 deletions tools/installer.js
Expand Up @@ -93,11 +93,17 @@ if (cmd === 'install') {
copy([
'deps/uv/include/ares.h',
'deps/uv/include/ares_version.h'
], 'include/node/c-ares/');
], 'include/node/');

// Copy binary file
copy('out/Release/node', 'bin/node');

// Install node-waf
if (variables.node_install_waf == 'true') {
copy('tools/wafadmin', 'lib/node/');
copy('tools/node-waf', 'bin/node-waf');
}

// Install npm (eventually)
if (variables.node_install_npm == 'true') {
copy('deps/npm', 'lib/node_modules/npm');
Expand All @@ -106,7 +112,8 @@ if (cmd === 'install') {
}
} else {
remove([
'bin/node', 'bin/npm', 'include/node/*', 'lib/node_modules'
'bin/node', 'bin/npm', 'bin/node-waf',
'include/node/*', 'lib/node_modules', 'lib/node'
]);
}

Expand Down

0 comments on commit 6e76a7c

Please sign in to comment.