summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBradley Meck <bradley.meck@gmail.com>2015-08-22 13:36:03 -0500
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2015-08-28 12:04:39 -0400
commitcd84f399e8389bafe712b4bbed281fdf8b20c960 (patch)
treedbcf157024bf1fae94124f6c2ead55c59f8a3985 /configure
parentc6a54d09642ffe7fcf2c467a6e4ef95d86d2d3fa (diff)
downloadnode-new-cd84f399e8389bafe712b4bbed281fdf8b20c960.tar.gz
Introduce --link-module to ./configure
- Allows specifying a _third_party_main outside of the node repository - Allows embedders to create custom builtin modules outside of node's repository PR-URL: https://github.com/nodejs/node/pull/2497 Reviewed-By: fishrock123 - Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: jasnell - James M Snell <jasnell@gmail.com> Reviewed-By: evanlucas - Evan Lucas <evanlucas@me.com> Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 26f8bf5e61..42817c21eb 100755
--- a/configure
+++ b/configure
@@ -84,6 +84,13 @@ parser.add_option("--fully-static",
help="Generate an executable without external dynamic libraries. This "
"will not work on OSX when using default compilation environment")
+parser.add_option("--link-module",
+ action="append",
+ dest="linked_module",
+ help="Path to a JS file to be bundled in the binary as a builtin."
+ "This module will be referenced by basename without extension."
+ "Can be used multiple times")
+
parser.add_option("--openssl-no-asm",
action="store_true",
dest="openssl_no_asm",
@@ -697,6 +704,9 @@ def configure_node(o):
if options.enable_static:
o['variables']['node_target_type'] = 'static_library'
+ if options.linked_module:
+ o['variables']['library_files'] = options.linked_module
+
def configure_library(lib, output):
shared_lib = 'shared_' + lib