Lines Matching refs:icu

58 valid_intl_modes = ('none', 'small-icu', 'full-icu', 'system-icu')
59 icu_versions = json.loads((tools_path / 'icu' / 'icu_versions.json').read_text(encoding='utf-8'))
584 default='full-icu',
594 intl_optgroup.add_argument('--with-icu-path',
597 help='Path to icu.gyp (ICU i18n, Chromium version only.)')
601 intl_optgroup.add_argument('--with-icu-locales',
605 help='Comma-separated list of locales for "small-icu". "root" is assumed. '
608 intl_optgroup.add_argument('--with-icu-source',
611 help='Intl mode: optional local path to icu/ dir, or path/URL of '
615 intl_optgroup.add_argument('--with-icu-default-data-dir',
620 '--icu-data-dir runtime argument is used. This option has effect '
621 'only when Node.js is built with --with-intl=small-icu.')
1687 depFile = tools_path / 'icu' / 'current_ver.dep'
1693 attemptdownload = nodedownload.candownload(auto_downloads, "icu")
1694 for icu in icus:
1695 url = icu['url']
1696 (expectHash, hashAlgo, allAlgos) = nodedownload.findHash(icu)
1738 error('Cannot specify both --with-icu-path and --with-intl')
1740 # Chromium .gyp mode: --with-icu-path
1752 if with_intl == 'small-icu':
1759 # We will check a bit later if we can use the canned deps/icu-small
1761 elif with_intl == 'full-icu':
1764 elif with_intl == 'system-icu':
1767 pkgicu = pkg_config('icu-i18n')
1769 error('''Could not load pkg-config data for "icu-i18n".
1785 o['variables']['icu_gyp_path'] = 'tools/icu/icu-system.gyp'
1792 icu_deps_path = 'deps/icu'
1795 # icu-tmp is used to download and unpack the ICU tarball.
1796 icu_tmp_path = Path(icu_parent_path, 'icu-tmp')
1798 # canned ICU. see tools/icu/README.md to update.
1799 canned_icu_dir = 'deps/icu-small'
1806 warn(f'Ignoring {canned_icu_dir} - in-repo small icu is no longer supported.')
1808 # We can use 'deps/icu-small' - pre-canned ICU *iff*
1813 # $ configure --with-intl=full-icu --with-icu-source=deps/icu-small
1814 # .. Except that we avoid copying icu-small over to deps/icu.
1815 # In this default case, deps/icu is ignored, although make clean will
1816 # still harmlessly remove deps/icu.
1822 # --with-icu-source processing
1823 # now, check that they didn't pass --with-icu-source=deps/icu
1825 warn(f'Ignoring redundant --with-icu-source={with_icu_source}')
1853 # Did it unpack correctly? Should contain 'icu'
1854 tmp_icu = icu_tmp_path / 'icu'
1860 error(f'--with-icu-source={with_icu_source} did not result in an "icu" dir.')
1862 # ICU mode. (icu-generic.gyp)
1863 o['variables']['icu_gyp_path'] = 'tools/icu/icu-generic.gyp'
1864 # ICU source dir relative to tools/icu (for .gyp file)
1904 # unpack. deps/icu is a temporary path
1928 # may be little-endian if from a icu-project.org tarball
1946 icu_config['variables'][var] = glob_to_var('tools/icu', path, f'patches/{icu_ver_major}/source/{value}')
1958 elif with_intl == 'small-icu' or options.cross_compiling: