171 |
171 |
dest="shared_cares_libname",
|
172 |
172 |
help="Alternative lib name to link to (default: 'cares')")
|
173 |
173 |
|
|
174 |
parser.add_option("--shared-libuv",
|
|
175 |
action="store_true",
|
|
176 |
dest="shared_libuv",
|
|
177 |
help="Link to a shared libuv DLL instead of static linking")
|
|
178 |
|
|
179 |
parser.add_option("--shared-libuv-includes",
|
|
180 |
action="store",
|
|
181 |
dest="shared_libuv_includes",
|
|
182 |
help="Directory containing libuv header files")
|
|
183 |
|
|
184 |
parser.add_option("--shared-libuv-libpath",
|
|
185 |
action="store",
|
|
186 |
dest="shared_libuv_libpath",
|
|
187 |
help="A directory to search for the shared libuv DLL")
|
|
188 |
|
|
189 |
parser.add_option("--shared-libuv-libname",
|
|
190 |
action="store",
|
|
191 |
dest="shared_libuv_libname",
|
|
192 |
help="Alternative lib name to link to (default: 'uv')")
|
|
193 |
|
174 |
194 |
parser.add_option("--with-dtrace",
|
175 |
195 |
action="store_true",
|
176 |
196 |
dest="with_dtrace",
|
... | ... | |
495 |
515 |
o['include_dirs'] += [options.shared_cares_includes]
|
496 |
516 |
|
497 |
517 |
|
|
518 |
def configure_libuv(o):
|
|
519 |
o['variables']['node_shared_libuv'] = b(options.shared_libuv)
|
|
520 |
|
|
521 |
# assume shared libuv if one of these is set?
|
|
522 |
if options.shared_libuv_libpath:
|
|
523 |
o['libraries'] += ['-L%s' % options.shared_libuv_libpath]
|
|
524 |
if options.shared_libuv_libname:
|
|
525 |
o['libraries'] += ['-l%s' % options.shared_libuv_libname]
|
|
526 |
elif options.shared_libuv:
|
|
527 |
o['libraries'] += ['-luv']
|
|
528 |
if options.shared_libuv_includes:
|
|
529 |
o['include_dirs'] += [options.shared_libuv_includes]
|
|
530 |
|
|
531 |
|
498 |
532 |
def configure_v8(o):
|
499 |
533 |
o['variables']['v8_use_snapshot'] = b(not options.without_snapshot)
|
500 |
534 |
o['variables']['node_shared_v8'] = b(options.shared_v8)
|
... | ... | |
550 |
584 |
configure_libz(output)
|
551 |
585 |
configure_http_parser(output)
|
552 |
586 |
configure_cares(output)
|
|
587 |
configure_libuv(output)
|
553 |
588 |
configure_v8(output)
|
554 |
589 |
configure_openssl(output)
|
555 |
590 |
|