File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,13 @@ parser.add_option("--fully-static",
84
84
help = "Generate an executable without external dynamic libraries. This "
85
85
"will not work on OSX when using default compilation environment" )
86
86
87
+ parser .add_option ("--link-module" ,
88
+ action = "append" ,
89
+ dest = "linked_module" ,
90
+ help = "Path to a JS file to be bundled in the binary as a builtin."
91
+ "This module will be referenced by basename without extension."
92
+ "Can be used multiple times" )
93
+
87
94
parser .add_option ("--openssl-no-asm" ,
88
95
action = "store_true" ,
89
96
dest = "openssl_no_asm" ,
@@ -697,6 +704,9 @@ def configure_node(o):
697
704
if options .enable_static :
698
705
o ['variables' ]['node_target_type' ] = 'static_library'
699
706
707
+ if options .linked_module :
708
+ o ['variables' ]['library_files' ] = options .linked_module
709
+
700
710
701
711
def configure_library (lib , output ):
702
712
shared_lib = 'shared_' + lib
You can’t perform that action at this time.
0 commit comments