Lines Matching +full:- +full:- +full:pylib
35 sys.path.insert(0, os.path.join('tools', 'gyp', 'pylib'))
61 valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')
65 valid_intl_modes = ('none', 'small-icu', 'full-icu', 'system-icu')
72 "built-in dependencies or its shared representations. If necessary, "
80 # Options should be in alphabetical order but keep --prefix at the top,
82 parser.add_option('--prefix',
88 parser.add_option('--coverage',
93 parser.add_option('--debug',
98 parser.add_option('--debug-node',
103 parser.add_option('--dest-cpu',
109 parser.add_option('--cross-compiling',
114 parser.add_option('--no-cross-compiling',
120 parser.add_option('--dest-os',
126 parser.add_option('--error-on-warn',
131 parser.add_option('--gdb',
136 parser.add_option('--no-ifaddrs',
141 parser.add_option("--fully-static",
147 parser.add_option("--partly-static",
153 parser.add_option("--enable-pgo-generate",
159 parser.add_option("--enable-pgo-use",
162 help="Enable use of the profile generated with --enable-pgo-generate. This "
165 parser.add_option("--enable-lto",
171 parser.add_option("--link-module",
179 parser.add_option('--openssl-default-cipher-list',
184 parser.add_option("--openssl-no-asm",
189 parser.add_option('--openssl-fips',
194 parser.add_option('--openssl-is-fips',
199 parser.add_option('--openssl-use-def-ca-store',
202 help='Use OpenSSL supplied CA store instead of compiled-in Mozilla CA copy.')
204 parser.add_option('--openssl-system-ca-path',
208 'the OpenSSL supplied CA store or compiled-in Mozilla CA copy.')
210 parser.add_option('--experimental-http-parser',
213 help='(no-op)')
215 shared_optgroup.add_option('--shared-http-parser',
220 shared_optgroup.add_option('--shared-http-parser-includes',
225 shared_optgroup.add_option('--shared-http-parser-libname',
231 shared_optgroup.add_option('--shared-http-parser-libpath',
236 shared_optgroup.add_option('--shared-libuv',
241 shared_optgroup.add_option('--shared-libuv-includes',
246 shared_optgroup.add_option('--shared-libuv-libname',
252 shared_optgroup.add_option('--shared-libuv-libpath',
257 shared_optgroup.add_option('--shared-nghttp2',
262 shared_optgroup.add_option('--shared-nghttp2-includes',
267 shared_optgroup.add_option('--shared-nghttp2-libname',
273 shared_optgroup.add_option('--shared-nghttp2-libpath',
278 shared_optgroup.add_option('--shared-openssl',
283 shared_optgroup.add_option('--shared-openssl-includes',
288 shared_optgroup.add_option('--shared-openssl-libname',
294 shared_optgroup.add_option('--shared-openssl-libpath',
299 shared_optgroup.add_option('--shared-zlib',
304 shared_optgroup.add_option('--shared-zlib-includes',
309 shared_optgroup.add_option('--shared-zlib-libname',
315 shared_optgroup.add_option('--shared-zlib-libpath',
320 shared_optgroup.add_option('--shared-brotli',
325 shared_optgroup.add_option('--shared-brotli-includes',
330 shared_optgroup.add_option('--shared-brotli-libname',
336 shared_optgroup.add_option('--shared-brotli-libpath',
341 shared_optgroup.add_option('--shared-cares',
346 shared_optgroup.add_option('--shared-cares-includes',
351 shared_optgroup.add_option('--shared-cares-libname',
357 shared_optgroup.add_option('--shared-cares-libpath',
364 parser.add_option('--systemtap-includes',
369 parser.add_option('--tag',
374 parser.add_option('--release-urlbase',
381 parser.add_option('--enable-d8',
386 parser.add_option('--enable-trace-maps',
389 help='Enable the --trace-maps flag in V8 (use at your own risk)')
391 parser.add_option('--experimental-enable-pointer-compression',
396 parser.add_option('--v8-options',
399 help='v8 options to pass, see `node --v8-options` for examples.')
401 parser.add_option('--with-ossfuzz',
404 help='Enables building of fuzzers. This command should be run in an OSS-Fuzz Docker image.')
406 parser.add_option('--with-arm-float-abi',
410 help='specifies which floating-point ABI to use ({0}).'.format(
413 parser.add_option('--with-arm-fpu',
420 parser.add_option('--with-mips-arch-variant',
428 parser.add_option('--with-mips-fpu-mode',
436 parser.add_option('--with-mips-float-abi',
441 help='MIPS floating-point ABI ({0}) [default: %default]'.format(
444 parser.add_option('--with-dtrace',
449 parser.add_option('--with-etw',
454 parser.add_option('--use-largepages',
457 help='This option has no effect. --use-largepages is now a runtime option.')
459 parser.add_option('--use-largepages-script-lld',
462 help='This option has no effect. --use-largepages is now a runtime option.')
464 parser.add_option('--use-section-ordering-file',
472 intl_optgroup.add_option('--with-intl',
475 default='full-icu',
480 intl_optgroup.add_option('--without-intl',
484 help='Disable Intl, same as --with-intl=none (disables inspector)')
486 intl_optgroup.add_option('--with-icu-path',
493 intl_optgroup.add_option('--with-icu-locales',
497 help='Comma-separated list of locales for "small-icu". "root" is assumed. '
500 intl_optgroup.add_option('--with-icu-source',
507 intl_optgroup.add_option('--with-icu-default-data-dir',
512 '--icu-data-dir runtime argument is used. This option has effect '
513 'only when Node.js is built with --with-intl=small-icu.')
515 parser.add_option('--with-ltcg',
520 parser.add_option('--without-node-snapshot',
525 parser.add_option('--without-node-code-cache',
530 intl_optgroup.add_option('--download',
535 intl_optgroup.add_option('--download-path',
543 parser.add_option('--debug-lib',
548 http2_optgroup.add_option('--debug-nghttp2',
555 parser.add_option('--without-dtrace',
560 parser.add_option('--without-etw',
565 parser.add_option('--without-npm',
570 parser.add_option('--without-corepack',
576 parser.add_option('--without-report',
581 parser.add_option('--with-snapshot',
586 parser.add_option('--without-snapshot',
591 parser.add_option('--without-siphash',
598 parser.add_option('--without-ssl',
603 parser.add_option('--without-node-options',
608 parser.add_option('--ninja',
613 parser.add_option('--enable-asan',
618 parser.add_option('--enable-static',
623 parser.add_option('--no-browser-globals',
629 parser.add_option('--without-inspector',
634 parser.add_option('--shared',
640 parser.add_option('--without-v8-platform',
647 parser.add_option('--without-bundled-v8',
654 parser.add_option('--build-v8-with-gn',
660 parser.add_option('--verbose',
666 parser.add_option('--v8-non-optimized-debug',
672 parser.add_option('--v8-with-dchecks',
678 parser.add_option('--v8-lite-mode',
683 'memory footprint, but also implies no just-in-time compilation ' +
686 parser.add_option('--v8-enable-object-print',
692 parser.add_option('--node-builtin-modules-path',
699 parser.add_option('-C',
709 # set up auto-download list
747 return s if isinstance(s, str) else s.decode("utf-8")
750 """Run pkg-config on the specified package
751 Returns ("-l flags", "-I flags", "-L flags", "version")
753 pkg_config = os.environ.get('PKG_CONFIG', 'pkg-config')
754 args = [] # Print pkg-config warnings on first round.
756 for flag in ['--libs-only-l', '--cflags-only-I',
757 '--libs-only-L', '--modversion']:
769 return (None, None, None, None) # No pkg-config/pkgconf installed.
771 args = ['--silence-errors']
777 proc = subprocess.Popen(shlex.split(cc) + ['-E', '-P', '-x', lang, '-'],
797 … https://github.com/openssl/openssl/blob/OpenSSL_1_0_2-stable/crypto/sha/asm/sha512-x86_64.pl#L112…
801 proc = subprocess.Popen(shlex.split(cc) + ['-v'], stdin=subprocess.PIPE,
808 it in a non-standard prefix.''')
819 proc = subprocess.Popen(shlex.split(asm) + ['-v'],
828 match = re.match(r"NASM version ([2-9]\.[0-9][0-9]+)",
838 cc, r"(^(?:.+ )?clang version|based on LLVM) ([0-9]+\.[0-9]+)")
842 cc, r"(^Apple (?:clang|LLVM) version) ([0-9]+\.[0-9]+)")
848 proc = subprocess.Popen(shlex.split(cc) + ['-Wa,-v', '-c', '-o',
849 '/dev/null', '-x',
858 it in a non-standard prefix.''')
861 match = re.match(r"GNU assembler version ([2-9]\.[0-9]+)", gas_ret)
869 # Note: Apple clang self-reports as clang 4.2.0 and gcc 4.2.1. It passes
923 p = subprocess.Popen(shlex.split(cc or CC) + ['-dM', '-E', '-'],
932 it in a non-standard prefix.''')
1031 o['variables']['arm_thumb'] = 0 # -marm
1098 warn('building --without-snapshot is no longer possible')
1111 # TODO(refack): fix this when implementing embedded code-cache when cross-compiling.
1133 'The options --enable-pgo-generate and --enable-pgo-use '
1138 'Only one of the --enable-pgo-generate or --enable-pgo-use options '
1140 '--enable-pgo-generate first, profile node, and then recompile '
1141 'with --enable-pgo-use')
1157 'The option --enable-lto is supported for gcc %s+'
1179 warn('''The `--use-largepages` and `--use-largepages-script-lld` options
1181 now a runtime option of Node.js. Run `node --use-largepages` or add
1182 `--use-largepages` to the `NODE_OPTIONS` environment variable once
1201 o['variables']['node_tag'] = '-' + options.tag
1274 stripped_flags = [flag.strip() for flag in pkg_cflags.split('-I')]
1286 '-L%s' % options.__dict__[shared_lib + '_libpath']]
1291 default_libs = ['-l{0}'.format(l) for l in default_libs.split(',')]
1319 raise Exception('--enable-d8 is incompatible with --without-bundled-v8.')
1322 '--build-v8-with-gn is incompatible with --without-bundled-v8.')
1342 error('--without-ssl is incompatible with %s' % option)
1344 without_ssl_error('--shared-openssl')
1346 without_ssl_error('--openssl-no-asm')
1348 without_ssl_error('--openssl-fips')
1350 without_ssl_error('--openssl-default-cipher-list')
1368 # blob/OpenSSL_1_1_0-stable/crypto/modes/asm/aesni-gcm-x86_64.pl#L52-L69
1377 --openssl-no-asm.
1381 warn('''--openssl-no-asm will result in binaries that do not take advantage
1386 error('--openssl-no-asm is incompatible with --shared-openssl')
1402 o['libraries'] += ['-static']
1404 o['libraries'] += ['-static-libgcc', '-static-libstdc++']
1406 o['libraries'] += ['-static-libasan']
1453 local = url.split('/')[-1]
1459 print('Re-using existing %s' % targetfile)
1486 error('Cannot specify both --with-icu-path and --with-intl')
1488 # Chromium .gyp mode: --with-icu-path
1493 # --with-intl=<with_intl>
1498 elif with_intl == 'small-icu':
1505 # We will check a bit later if we can use the canned deps/icu-small
1507 elif with_intl == 'full-icu':
1510 elif with_intl == 'system-icu':
1511 # ICU from pkg-config.
1513 pkgicu = pkg_config('icu-i18n')
1515 error('''Could not load pkg-config data for "icu-i18n".
1529 stripped_flags = [flag.strip() for flag in cflags.split('-I')]
1532 o['variables']['icu_gyp_path'] = 'tools/icu/icu-system.gyp'
1542 # icu-tmp is used to download and unpack the ICU tarball.
1543 icu_tmp_path = os.path.join(icu_parent_path, 'icu-tmp')
1546 canned_icu_dir = 'deps/icu-small'
1549 canned_is_full = os.path.isfile(os.path.join(canned_icu_dir, 'README-FULL-ICU.txt'))
1550 canned_is_small = os.path.isfile(os.path.join(canned_icu_dir, 'README-SMALL-ICU.txt'))
1552 warn('Ignoring %s - in-repo small icu is no longer supported.' % canned_icu_dir)
1554 # We can use 'deps/icu-small' - pre-canned ICU *iff*
1555 # - canned_is_full AND
1556 # - with_icu_source is unset (i.e. no other ICU was specified)
1559 # $ configure --with-intl=full-icu --with-icu-source=deps/icu-small
1560 # .. Except that we avoid copying icu-small over to deps/icu.
1565 # OK- we can use the canned ICU.
1568 # --with-icu-source processing
1569 # now, check that they didn't pass --with-icu-source=deps/icu
1571 warn('Ignoring redundant --with-icu-source=%s' % with_icu_source)
1581 print('%s -> %s' % (with_icu_source, icu_full_path))
1595 local = os.path.join(icu_tmp_path, with_icu_source.split('/')[-1]) # local part
1606 error('--with-icu-source=%s did not result in an "icu" dir.' % \
1609 # ICU mode. (icu-generic.gyp)
1610 o['variables']['icu_gyp_path'] = 'tools/icu/icu-generic.gyp'
1619 warn('* ECMA-402 (Intl) support didn\'t find ICU in %s..' % icu_full_path)
1622 Fix, or disable with "--with-intl=none"''' % icu_full_path)
1629 error('Could not load %s - is ICU installed?' % uvernum_h)
1680 # may be little-endian if from a icu-project.org tarball
1699 # calculate platform-specific genccode args
1709 icu_config['variables']['icu_asm_opts'] = [ '-o ' ]
1710 elif with_intl == 'small-icu' or options.cross_compiling:
1715 icu_config['variables']['icu_asm_opts'] = [ '-a', 'gcc-darwin' ]
1718 icu_config['variables']['icu_asm_opts'] = [ '-a', 'xlc' ]
1720 # assume GCC-compatible asm is OK
1722 icu_config['variables']['icu_asm_opts'] = [ '-a', 'gcc' ]
1737 proc = subprocess.Popen(['ld.gold'] + ['-v'], stdin = subprocess.PIPE,
1744 match = re.match(r"^GNU gold.*([0-9]+)\.([0-9]+)$",
1745 proc.communicate()[0].decode("utf-8"))
1827 # Forward OSS-Fuzz settings
1837 # should not be used to compile modules in node-gyp
1864 write('config.status', '#!/bin/sh\nset -x\nexec ./configure ' +
1902 gyp_args = ['--no-parallel', '-Dconfiguring_node=1']
1905 gyp_args += ['-f', 'ninja']
1907 gyp_args += ['-f', 'msvs', '-G', 'msvs_version=auto']
1909 gyp_args += ['-f', 'make-' + flavor]
1912 gyp_args += ['-f', 'compile_commands_json']
1916 gyp_args += ['-Dpython=' + sys.executable]