mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +09:00
Issue #1342 - Remove support for system ICU
This commit is contained in:
parent
690fb97392
commit
a7a26d5d62
6 changed files with 12 additions and 48 deletions
|
|
@ -8,19 +8,6 @@ dnl ICU library, as well as a few other things.
|
||||||
AC_DEFUN([MOZ_CONFIG_ICU], [
|
AC_DEFUN([MOZ_CONFIG_ICU], [
|
||||||
|
|
||||||
ICU_LIB_NAMES=
|
ICU_LIB_NAMES=
|
||||||
MOZ_SYSTEM_ICU=
|
|
||||||
MOZ_ARG_WITH_BOOL(system-icu,
|
|
||||||
[ --with-system-icu
|
|
||||||
Use system ICU (located with pkgconfig)],
|
|
||||||
MOZ_SYSTEM_ICU=1)
|
|
||||||
|
|
||||||
if test -n "$MOZ_SYSTEM_ICU"; then
|
|
||||||
PKG_CHECK_MODULES(MOZ_ICU, icu-i18n >= 58.1)
|
|
||||||
CFLAGS="$CFLAGS $MOZ_ICU_CFLAGS"
|
|
||||||
CXXFLAGS="$CXXFLAGS $MOZ_ICU_CFLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(MOZ_SYSTEM_ICU)
|
|
||||||
|
|
||||||
dnl We always use ICU.
|
dnl We always use ICU.
|
||||||
USE_ICU=1
|
USE_ICU=1
|
||||||
|
|
@ -51,7 +38,7 @@ if test -n "$USE_ICU"; then
|
||||||
dnl We also don't do it on Windows because sometimes the file goes
|
dnl We also don't do it on Windows because sometimes the file goes
|
||||||
dnl missing -- possibly due to overzealous antivirus software? --
|
dnl missing -- possibly due to overzealous antivirus software? --
|
||||||
dnl which prevents the browser from starting up :(
|
dnl which prevents the browser from starting up :(
|
||||||
if test -z "$JS_STANDALONE" -a -z "$MOZ_SYSTEM_ICU" -a "$OS_TARGET" != WINNT -a "$MOZ_WIDGET_TOOLKIT" != "android"; then
|
if test -z "$JS_STANDALONE" -a "$OS_TARGET" != WINNT -a "$MOZ_WIDGET_TOOLKIT" != "android"; then
|
||||||
MOZ_ICU_DATA_ARCHIVE=1
|
MOZ_ICU_DATA_ARCHIVE=1
|
||||||
else
|
else
|
||||||
MOZ_ICU_DATA_ARCHIVE=
|
MOZ_ICU_DATA_ARCHIVE=
|
||||||
|
|
@ -64,7 +51,7 @@ AC_SUBST(USE_ICU)
|
||||||
AC_SUBST(ICU_DATA_FILE)
|
AC_SUBST(ICU_DATA_FILE)
|
||||||
AC_SUBST(MOZ_ICU_DATA_ARCHIVE)
|
AC_SUBST(MOZ_ICU_DATA_ARCHIVE)
|
||||||
|
|
||||||
if test -n "$USE_ICU" -a -z "$MOZ_SYSTEM_ICU"; then
|
if test -n "$USE_ICU"; then
|
||||||
if test -z "$YASM" -a -z "$GNU_AS" -a "$COMPILE_ENVIRONMENT"; then
|
if test -z "$YASM" -a -z "$GNU_AS" -a "$COMPILE_ENVIRONMENT"; then
|
||||||
AC_MSG_ERROR([Building ICU requires either yasm or a GNU assembler. If you do not have either of those available for this platform you must use --without-intl-api])
|
AC_MSG_ERROR([Building ICU requires either yasm or a GNU assembler. If you do not have either of those available for this platform you must use --without-intl-api])
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -288,7 +288,6 @@ def old_configure_options(*options):
|
||||||
'--with-sixgill',
|
'--with-sixgill',
|
||||||
'--with-soft-float',
|
'--with-soft-float',
|
||||||
'--with-system-bz2',
|
'--with-system-bz2',
|
||||||
'--with-system-icu',
|
|
||||||
'--with-system-jpeg',
|
'--with-system-jpeg',
|
||||||
'--with-system-libevent',
|
'--with-system-libevent',
|
||||||
'--with-system-libvpx',
|
'--with-system-libvpx',
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,6 @@ export:: $(export-preqs)
|
||||||
-DMOZ_SYSTEM_PNG=$(MOZ_SYSTEM_PNG) \
|
-DMOZ_SYSTEM_PNG=$(MOZ_SYSTEM_PNG) \
|
||||||
-DMOZ_SYSTEM_JPEG=$(MOZ_SYSTEM_JPEG) \
|
-DMOZ_SYSTEM_JPEG=$(MOZ_SYSTEM_JPEG) \
|
||||||
-DMOZ_SYSTEM_LIBVPX=$(MOZ_SYSTEM_LIBVPX) \
|
-DMOZ_SYSTEM_LIBVPX=$(MOZ_SYSTEM_LIBVPX) \
|
||||||
-DMOZ_SYSTEM_ICU=$(MOZ_SYSTEM_ICU) \
|
|
||||||
$(srcdir)/system-headers $(srcdir)/stl-headers | $(PERL) $(topsrcdir)/nsprpub/config/make-system-wrappers.pl system_wrappers
|
$(srcdir)/system-headers $(srcdir)/stl-headers | $(PERL) $(topsrcdir)/nsprpub/config/make-system-wrappers.pl system_wrappers
|
||||||
$(INSTALL) system_wrappers $(DIST)
|
$(INSTALL) system_wrappers $(DIST)
|
||||||
|
|
||||||
|
|
|
||||||
22
config/external/icu/moz.build
vendored
22
config/external/icu/moz.build
vendored
|
|
@ -6,16 +6,14 @@
|
||||||
|
|
||||||
Library('icu')
|
Library('icu')
|
||||||
|
|
||||||
if CONFIG['MOZ_SYSTEM_ICU']:
|
DIRS += [
|
||||||
OS_LIBS += CONFIG['MOZ_ICU_LIBS']
|
'common',
|
||||||
|
'data',
|
||||||
|
'i18n',
|
||||||
|
]
|
||||||
|
|
||||||
|
if CONFIG['MOZ_ICU_DATA_ARCHIVE']:
|
||||||
|
DIRS += ['stubdata']
|
||||||
|
USE_LIBS += ['icustubdata']
|
||||||
else:
|
else:
|
||||||
DIRS += [
|
USE_LIBS += ['icudata']
|
||||||
'common',
|
|
||||||
'data',
|
|
||||||
'i18n',
|
|
||||||
]
|
|
||||||
if CONFIG['MOZ_ICU_DATA_ARCHIVE']:
|
|
||||||
DIRS += ['stubdata']
|
|
||||||
USE_LIBS += ['icustubdata']
|
|
||||||
else:
|
|
||||||
USE_LIBS += ['icudata']
|
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,6 @@ if CONFIG['HOST_OS_ARCH'] != 'WINNT':
|
||||||
# while the program here is in C.
|
# while the program here is in C.
|
||||||
HostProgram('nsinstall_real', c_only=True)
|
HostProgram('nsinstall_real', c_only=True)
|
||||||
|
|
||||||
if CONFIG['MOZ_SYSTEM_ICU']:
|
|
||||||
DEFINES['MOZ_SYSTEM_ICU'] = True
|
|
||||||
|
|
||||||
PYTHON_UNIT_TESTS += [
|
PYTHON_UNIT_TESTS += [
|
||||||
'tests/test_mozbuild_reading.py',
|
'tests/test_mozbuild_reading.py',
|
||||||
'tests/unit-expandlibs.py',
|
'tests/unit-expandlibs.py',
|
||||||
|
|
|
||||||
|
|
@ -1312,22 +1312,6 @@ kvm.h
|
||||||
spawn.h
|
spawn.h
|
||||||
err.h
|
err.h
|
||||||
xlocale.h
|
xlocale.h
|
||||||
#ifdef MOZ_SYSTEM_ICU
|
|
||||||
unicode/locid.h
|
|
||||||
unicode/numsys.h
|
|
||||||
unicode/timezone.h
|
|
||||||
unicode/ucal.h
|
|
||||||
unicode/uchar.h
|
|
||||||
unicode/uclean.h
|
|
||||||
unicode/ucol.h
|
|
||||||
unicode/udat.h
|
|
||||||
unicode/udatpg.h
|
|
||||||
unicode/uenum.h
|
|
||||||
unicode/unorm.h
|
|
||||||
unicode/unum.h
|
|
||||||
unicode/ustring.h
|
|
||||||
unicode/utypes.h
|
|
||||||
#endif
|
|
||||||
libutil.h
|
libutil.h
|
||||||
unwind.h
|
unwind.h
|
||||||
fenv.h
|
fenv.h
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue