Browse Source

configure: order configure switches alphabetically

Alphabetical order should make it easier to find the switches you need
because we've got quite a lot of them now.

Keep --prefix at the top because that's arguably the one people will be
looking for most.
v0.11.6-release
Ben Noordhuis 12 years ago
parent
commit
52e47b24b3
  1. 469
      configure

469
configure

@ -16,254 +16,255 @@ from gyp.common import GetFlavor
# parse our options # parse our options
parser = optparse.OptionParser() parser = optparse.OptionParser()
parser.add_option("--debug", # Options should be in alphabetical order but keep --prefix at the top,
action="store_true", # that's arguably the one people will be looking for most.
dest="debug", parser.add_option('--prefix',
help="Also build debug build") action='store',
dest='prefix',
parser.add_option("--prefix", help='select the install prefix (defaults to /usr/local)')
action="store",
dest="prefix", parser.add_option('--debug',
help="Select the install prefix (defaults to /usr/local)") action='store_true',
dest='debug',
parser.add_option("--without-npm", help='also build debug build')
action="store_true",
dest="without_npm", parser.add_option('--dest-cpu',
help="Don\'t install the bundled npm package manager") action='store',
dest='dest_cpu',
parser.add_option("--without-ssl", help='CPU architecture to build for. Valid values are: arm, ia32, x64')
action="store_true",
dest="without_ssl", parser.add_option('--dest-os',
help="Build without SSL") action='store',
dest='dest_os',
parser.add_option("--without-snapshot", help='operating system to build for. Valid values are: '
action="store_true", 'win, mac, solaris, freebsd, openbsd, linux, android')
dest="without_snapshot",
help="Build without snapshotting V8 libraries. You might want to set" parser.add_option('--gdb',
" this for cross-compiling. [Default: False]") action='store_true',
dest='gdb',
parser.add_option("--shared-v8", help='add gdb support')
action="store_true",
dest="shared_v8", parser.add_option('--ninja',
help="Link to a shared V8 DLL instead of static linking") action='store_true',
dest='use_ninja',
parser.add_option("--shared-v8-includes", help='generate files for the ninja build system')
action="store",
dest="shared_v8_includes", parser.add_option('--no-ifaddrs',
help="Directory containing V8 header files") action='store_true',
dest='no_ifaddrs',
parser.add_option("--shared-v8-libpath", help='use on deprecated SunOS systems that do not support ifaddrs.h')
action="store",
dest="shared_v8_libpath", parser.add_option('--no-ssl2',
help="A directory to search for the shared V8 DLL") action='store_true',
dest='no_ssl2',
parser.add_option("--shared-v8-libname", help='disable OpenSSL v2')
action="store",
dest="shared_v8_libname",
help="Alternative lib name to link to (default: 'v8')")
parser.add_option("--shared-openssl",
action="store_true",
dest="shared_openssl",
help="Link to a shared OpenSSl DLL instead of static linking")
parser.add_option("--shared-openssl-includes",
action="store",
dest="shared_openssl_includes",
help="Directory containing OpenSSL header files")
parser.add_option("--shared-openssl-libpath",
action="store",
dest="shared_openssl_libpath",
help="A directory to search for the shared OpenSSL DLLs")
parser.add_option("--shared-openssl-libname",
action="store",
dest="shared_openssl_libname",
help="Alternative lib name to link to (default: 'crypto,ssl')")
# deprecated # deprecated
parser.add_option("--openssl-use-sys", parser.add_option('--openssl-includes',
action="store_true", action='store',
dest="shared_openssl", dest='shared_openssl_includes',
help=optparse.SUPPRESS_HELP) help=optparse.SUPPRESS_HELP)
# deprecated # deprecated
parser.add_option("--openssl-includes", parser.add_option('--openssl-libpath',
action="store", action='store',
dest="shared_openssl_includes", dest='shared_openssl_libpath',
help=optparse.SUPPRESS_HELP) help=optparse.SUPPRESS_HELP)
# deprecated # deprecated
parser.add_option("--openssl-libpath", parser.add_option('--openssl-use-sys',
action="store", action='store_true',
dest="shared_openssl_libpath", dest='shared_openssl',
help=optparse.SUPPRESS_HELP) help=optparse.SUPPRESS_HELP)
parser.add_option('--shared-cares',
action='store_true',
dest='shared_cares',
help='link to a shared cares DLL instead of static linking')
parser.add_option('--shared-cares-includes',
action='store',
dest='shared_cares_includes',
help='directory containing cares header files')
parser.add_option('--shared-cares-libname',
action='store',
dest='shared_cares_libname',
help='alternative lib name to link to (default: \'cares\')')
parser.add_option('--shared-cares-libpath',
action='store',
dest='shared_cares_libpath',
help='a directory to search for the shared cares DLL')
parser.add_option('--shared-http-parser',
action='store_true',
dest='shared_http_parser',
help='link to a shared http_parser DLL instead of static linking')
parser.add_option('--shared-http-parser-includes',
action='store',
dest='shared_http_parser_includes',
help='directory containing http_parser header files')
parser.add_option('--shared-http-parser-libname',
action='store',
dest='shared_http_parser_libname',
help='alternative lib name to link to (default: \'http_parser\')')
parser.add_option('--shared-http-parser-libpath',
action='store',
dest='shared_http_parser_libpath',
help='a directory to search for the shared http_parser DLL')
parser.add_option('--shared-libuv',
action='store_true',
dest='shared_libuv',
help='link to a shared libuv DLL instead of static linking')
parser.add_option('--shared-libuv-includes',
action='store',
dest='shared_libuv_includes',
help='directory containing libuv header files')
parser.add_option('--shared-libuv-libname',
action='store',
dest='shared_libuv_libname',
help='alternative lib name to link to (default: \'uv\')')
parser.add_option('--shared-libuv-libpath',
action='store',
dest='shared_libuv_libpath',
help='a directory to search for the shared libuv DLL')
parser.add_option('--shared-openssl',
action='store_true',
dest='shared_openssl',
help='link to a shared OpenSSl DLL instead of static linking')
parser.add_option('--shared-openssl-includes',
action='store',
dest='shared_openssl_includes',
help='directory containing OpenSSL header files')
parser.add_option('--shared-openssl-libname',
action='store',
dest='shared_openssl_libname',
help='alternative lib name to link to (default: \'crypto,ssl\')')
parser.add_option('--shared-openssl-libpath',
action='store',
dest='shared_openssl_libpath',
help='a directory to search for the shared OpenSSL DLLs')
parser.add_option('--shared-v8',
action='store_true',
dest='shared_v8',
help='link to a shared V8 DLL instead of static linking')
parser.add_option('--shared-v8-includes',
action='store',
dest='shared_v8_includes',
help='directory containing V8 header files')
parser.add_option('--shared-v8-libname',
action='store',
dest='shared_v8_libname',
help='alternative lib name to link to (default: \'v8\')')
parser.add_option('--shared-v8-libpath',
action='store',
dest='shared_v8_libpath',
help='a directory to search for the shared V8 DLL')
parser.add_option('--shared-zlib',
action='store_true',
dest='shared_zlib',
help='link to a shared zlib DLL instead of static linking')
parser.add_option('--shared-zlib-includes',
action='store',
dest='shared_zlib_includes',
help='directory containing zlib header files')
parser.add_option('--shared-zlib-libname',
action='store',
dest='shared_zlib_libname',
help='alternative lib name to link to (default: \'z\')')
parser.add_option('--shared-zlib-libpath',
action='store',
dest='shared_zlib_libpath',
help='a directory to search for the shared zlib DLL')
# TODO document when we've decided on what the tracing API and its options will # TODO document when we've decided on what the tracing API and its options will
# look like # look like
parser.add_option("--systemtap-includes", parser.add_option('--systemtap-includes',
action="store", action='store',
dest="systemtap_includes", dest='systemtap_includes',
help=optparse.SUPPRESS_HELP) help=optparse.SUPPRESS_HELP)
parser.add_option("--no-ssl2", parser.add_option('--tag',
action="store_true", action='store',
dest="no_ssl2", dest='tag',
help="Disable OpenSSL v2") help='custom build tag')
parser.add_option("--shared-zlib", parser.add_option('--with-arm-float-abi',
action="store_true", action='store',
dest="shared_zlib", dest='arm_float_abi',
help="Link to a shared zlib DLL instead of static linking") help='specifies which floating-point ABI to use. Valid values are: '
'soft, softfp, hard')
parser.add_option("--shared-zlib-includes",
action="store", parser.add_option('--with-dtrace',
dest="shared_zlib_includes", action='store_true',
help="Directory containing zlib header files") dest='with_dtrace',
help='build with DTrace (default is true on sunos)')
parser.add_option("--shared-zlib-libpath",
action="store", parser.add_option('--with-etw',
dest="shared_zlib_libpath", action='store_true',
help="A directory to search for the shared zlib DLL") dest='with_etw',
help='build with ETW (default is true on Windows)')
parser.add_option("--shared-zlib-libname",
action="store", parser.add_option('--with-perfctr',
dest="shared_zlib_libname", action='store_true',
help="Alternative lib name to link to (default: 'z')") dest='with_perfctr',
help='build with performance counters (default is true on Windows)')
parser.add_option("--shared-http-parser",
action="store_true", parser.add_option('--without-dtrace',
dest="shared_http_parser", action='store_true',
help="Link to a shared http_parser DLL instead of static linking") dest='without_dtrace',
help='build without DTrace')
parser.add_option("--shared-http-parser-includes",
action="store", parser.add_option('--without-etw',
dest="shared_http_parser_includes", action='store_true',
help="Directory containing http_parser header files") dest='without_etw',
help='build without ETW')
parser.add_option("--shared-http-parser-libpath",
action="store", parser.add_option('--without-npm',
dest="shared_http_parser_libpath", action='store_true',
help="A directory to search for the shared http_parser DLL") dest='without_npm',
help='don\'t install the bundled npm package manager')
parser.add_option("--shared-http-parser-libname",
action="store", parser.add_option('--without-perfctr',
dest="shared_http_parser_libname", action='store_true',
help="Alternative lib name to link to (default: 'http_parser')") dest='without_perfctr',
help='build without performance counters')
parser.add_option("--shared-cares",
action="store_true", parser.add_option('--without-snapshot',
dest="shared_cares", action='store_true',
help="Link to a shared cares DLL instead of static linking") dest='without_snapshot',
help='build without snapshotting V8 libraries. You might want to set'
parser.add_option("--shared-cares-includes", ' this for cross-compiling. [Default: False]')
action="store",
dest="shared_cares_includes", parser.add_option('--without-ssl',
help="Directory containing cares header files") action='store_true',
dest='without_ssl',
parser.add_option("--shared-cares-libpath", help='build without SSL')
action="store",
dest="shared_cares_libpath", parser.add_option('--xcode',
help="A directory to search for the shared cares DLL") action='store_true',
dest='use_xcode',
parser.add_option("--shared-cares-libname", help='generate build files for use with xcode')
action="store",
dest="shared_cares_libname",
help="Alternative lib name to link to (default: 'cares')")
parser.add_option("--shared-libuv",
action="store_true",
dest="shared_libuv",
help="Link to a shared libuv DLL instead of static linking")
parser.add_option("--shared-libuv-includes",
action="store",
dest="shared_libuv_includes",
help="Directory containing libuv header files")
parser.add_option("--shared-libuv-libpath",
action="store",
dest="shared_libuv_libpath",
help="A directory to search for the shared libuv DLL")
parser.add_option("--shared-libuv-libname",
action="store",
dest="shared_libuv_libname",
help="Alternative lib name to link to (default: 'uv')")
parser.add_option("--with-dtrace",
action="store_true",
dest="with_dtrace",
help="Build with DTrace (default is true on sunos)")
parser.add_option("--without-dtrace",
action="store_true",
dest="without_dtrace",
help="Build without DTrace")
parser.add_option("--with-etw",
action="store_true",
dest="with_etw",
help="Build with ETW (default is true on Windows)")
parser.add_option("--without-etw",
action="store_true",
dest="without_etw",
help="Build without ETW")
parser.add_option("--with-perfctr",
action="store_true",
dest="with_perfctr",
help="Build with performance counters (default is true on Windows)")
parser.add_option("--without-perfctr",
action="store_true",
dest="without_perfctr",
help="Build without performance counters")
# CHECKME does this still work with recent releases of V8?
parser.add_option("--gdb",
action="store_true",
dest="gdb",
help="add gdb support")
parser.add_option("--dest-cpu",
action="store",
dest="dest_cpu",
help="CPU architecture to build for. Valid values are: arm, ia32, x64")
parser.add_option("--dest-os",
action="store",
dest="dest_os",
help="Operating system to build for. Valid values are: "
"win, mac, solaris, freebsd, openbsd, linux, android")
parser.add_option("--no-ifaddrs",
action="store_true",
dest="no_ifaddrs",
help="Use on deprecated SunOS systems that do not support ifaddrs.h")
parser.add_option("--with-arm-float-abi",
action="store",
dest="arm_float_abi",
help="Specifies which floating-point ABI to use. Valid values are: "
"soft, softfp, hard")
parser.add_option("--ninja",
action="store_true",
dest="use_ninja",
help="Generate files for the ninja build system")
parser.add_option("--xcode",
action="store_true",
dest="use_xcode",
help="Generate build files for use with xcode")
parser.add_option("--tag",
action="store",
dest="tag",
help="Custom build tag")
(options, args) = parser.parse_args() (options, args) = parser.parse_args()

Loading…
Cancel
Save