зеркало из https://github.com/mozilla/gecko-dev.git
bug 1230117 - get rid of {HOST,TARGET}_NSPR_MDCPUCFG. r=glandium
--HG-- extra : commitid : LJ5QiUWSc4d extra : rebase_source : 7207b43431e072a5f77397d468d30b5439be2b84
This commit is contained in:
Родитель
76f0fb5769
Коммит
f86b931457
13
configure.in
13
configure.in
|
@ -1843,7 +1843,6 @@ case "$host" in
|
|||
HOST_CFLAGS="$HOST_CFLAGS -mwindows"
|
||||
fi
|
||||
HOST_CFLAGS="$HOST_CFLAGS -DXP_WIN32 -DXP_WIN -DWIN32 -D_WIN32 -DNO_X11 -D_CRT_SECURE_NO_WARNINGS"
|
||||
HOST_NSPR_MDCPUCFG='"md/_winnt.cfg"'
|
||||
HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}"
|
||||
HOST_BIN_SUFFIX=.exe
|
||||
case "$host" in
|
||||
|
@ -1869,13 +1868,11 @@ case "$host" in
|
|||
|
||||
*-darwin*)
|
||||
HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX -DXP_MACOSX -DNO_X11"
|
||||
HOST_NSPR_MDCPUCFG='"md/_darwin.cfg"'
|
||||
HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
|
||||
;;
|
||||
|
||||
*-linux*|*-kfreebsd*-gnu|*-gnu*)
|
||||
HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
|
||||
HOST_NSPR_MDCPUCFG='"md/_linux.cfg"'
|
||||
HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
|
||||
;;
|
||||
|
||||
|
@ -2012,7 +2009,6 @@ case "$target" in
|
|||
# builds.
|
||||
MOZ_DEBUG_LDFLAGS="$MOZ_DEBUG_LDFLAGS -framework ExceptionHandling";
|
||||
fi
|
||||
TARGET_NSPR_MDCPUCFG='\"md/_darwin.cfg\"'
|
||||
|
||||
if test "x$lto_is_enabled" = "xyes"; then
|
||||
echo "Skipping -dead_strip because lto is enabled."
|
||||
|
@ -2105,7 +2101,6 @@ ia64*-hpux*)
|
|||
MOZ_LINKER=1
|
||||
fi
|
||||
fi
|
||||
TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
|
||||
|
||||
MOZ_GFX_OPTIMIZE_MOBILE=1
|
||||
MOZ_OPTIMIZE_FLAGS="-Os -fno-reorder-functions"
|
||||
|
@ -2129,8 +2124,6 @@ ia64*-hpux*)
|
|||
fi
|
||||
fi
|
||||
|
||||
TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
|
||||
|
||||
MOZ_MEMORY=1
|
||||
|
||||
case "${target_cpu}" in
|
||||
|
@ -2378,9 +2371,6 @@ ia64*-hpux*)
|
|||
BIN_SUFFIX='.exe'
|
||||
MOZ_USER_DIR="Mozilla"
|
||||
|
||||
dnl Hardcode to win95 for now - cls
|
||||
TARGET_NSPR_MDCPUCFG='\"md/_win95.cfg\"'
|
||||
|
||||
dnl set NO_X11 defines here as the general check is skipped on win32
|
||||
no_x=yes
|
||||
AC_DEFINE(NO_X11)
|
||||
|
@ -2477,7 +2467,6 @@ ia64*-hpux*)
|
|||
|
||||
*-solaris*)
|
||||
AC_DEFINE(SOLARIS)
|
||||
TARGET_NSPR_MDCPUCFG='\"md/_solaris.cfg\"'
|
||||
MOZ_FIX_LINK_PATHS=
|
||||
# $ORIGIN/.. is for shared libraries under components/ to locate shared
|
||||
# libraries one level up (e.g. libnspr4.so)
|
||||
|
@ -8860,14 +8849,12 @@ AC_SUBST(HOST_AR)
|
|||
AC_SUBST(HOST_AR_FLAGS)
|
||||
AC_SUBST(HOST_LD)
|
||||
AC_SUBST(HOST_RANLIB)
|
||||
AC_SUBST(HOST_NSPR_MDCPUCFG)
|
||||
AC_SUBST(HOST_BIN_SUFFIX)
|
||||
AC_SUBST(HOST_OS_ARCH)
|
||||
|
||||
AC_SUBST(TARGET_CPU)
|
||||
AC_SUBST(TARGET_VENDOR)
|
||||
AC_SUBST(TARGET_OS)
|
||||
AC_SUBST(TARGET_NSPR_MDCPUCFG)
|
||||
AC_SUBST(TARGET_MD_ARCH)
|
||||
AC_SUBST(TARGET_XPCOM_ABI)
|
||||
AC_SUBST(OS_TARGET)
|
||||
|
|
|
@ -1498,7 +1498,6 @@ case "$target" in
|
|||
DSO_LDOPTS=''
|
||||
STRIP="$STRIP -x -S"
|
||||
_PLATFORM_DEFAULT_TOOLKIT='cairo-cocoa'
|
||||
TARGET_NSPR_MDCPUCFG='\"md/_darwin.cfg\"'
|
||||
LDFLAGS="$LDFLAGS -lobjc"
|
||||
# The ExceptionHandling framework is needed for Objective-C exception
|
||||
# logging code in nsObjCExceptions.h. Currently we only use that in debug
|
||||
|
@ -1580,7 +1579,6 @@ ia64*-hpux*)
|
|||
AC_DEFINE(NO_PW_GECOS)
|
||||
no_x=yes
|
||||
_PLATFORM_DEFAULT_TOOLKIT=cairo-android
|
||||
TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
|
||||
|
||||
MOZ_GFX_OPTIMIZE_MOBILE=1
|
||||
MOZ_OPTIMIZE_FLAGS="-O3 -fno-reorder-functions"
|
||||
|
@ -1606,8 +1604,6 @@ ia64*-hpux*)
|
|||
fi
|
||||
fi
|
||||
|
||||
TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
|
||||
|
||||
case "${target_cpu}" in
|
||||
alpha*)
|
||||
CFLAGS="$CFLAGS -mieee"
|
||||
|
@ -1821,9 +1817,6 @@ ia64*-hpux*)
|
|||
BIN_SUFFIX='.exe'
|
||||
MOZ_USER_DIR="Mozilla"
|
||||
|
||||
dnl Hardcode to win95 for now - cls
|
||||
TARGET_NSPR_MDCPUCFG='\"md/_win95.cfg\"'
|
||||
|
||||
dnl set NO_X11 defines here as the general check is skipped on win32
|
||||
no_x=yes
|
||||
AC_DEFINE(NO_X11)
|
||||
|
@ -1901,7 +1894,6 @@ ia64*-hpux*)
|
|||
|
||||
*-solaris*)
|
||||
AC_DEFINE(SOLARIS)
|
||||
TARGET_NSPR_MDCPUCFG='\"md/_solaris.cfg\"'
|
||||
if test -z "$CROSS_COMPILE" && pkginfo -q SUNWpr && pkginfo -q SUNWprd; then
|
||||
NO_NSPR_CONFIG_SYSTEM_LDFLAGS="-L/usr/lib/mps -R/usr/lib/mps -lnspr4"
|
||||
NO_NSPR_CONFIG_SYSTEM_CFLAGS="-I/usr/include/mps"
|
||||
|
@ -3712,7 +3704,6 @@ AC_SUBST(HOST_OS_ARCH)
|
|||
AC_SUBST(TARGET_CPU)
|
||||
AC_SUBST(TARGET_VENDOR)
|
||||
AC_SUBST(TARGET_OS)
|
||||
AC_SUBST(TARGET_NSPR_MDCPUCFG)
|
||||
AC_SUBST(TARGET_MD_ARCH)
|
||||
AC_SUBST(TARGET_XPCOM_ABI)
|
||||
AC_SUBST(OS_TARGET)
|
||||
|
|
|
@ -59,6 +59,3 @@ if CONFIG['HOST_OS_ARCH'] == 'WINNT':
|
|||
]
|
||||
|
||||
HOST_DEFINES['NO_SIGN_VERIFY'] = True
|
||||
|
||||
if CONFIG['CROSS_COMPILE'] and CONFIG['HOST_NSPR_MDCPUCFG']:
|
||||
HOST_DEFINES['MDCPUCFG'] = CONFIG['HOST_NSPR_MDCPUCFG']
|
||||
|
|
|
@ -168,7 +168,6 @@ class CppEclipseBackend(CommonBackend):
|
|||
settings = settings.replace('@IPDL_INCLUDE_PATH@', os.path.join(self.environment.topobjdir, 'ipc/ipdl/_ipdlheaders'))
|
||||
settings = settings.replace('@PREINCLUDE_FILE_PATH@', os.path.join(self.environment.topobjdir, 'dist/include/mozilla-config.h'))
|
||||
settings = settings.replace('@DEFINE_MOZILLA_INTERNAL_API@', self._define_entry('MOZILLA_INTERNAL_API', '1'))
|
||||
settings = settings.replace('@DEFINE_MDCPUCFG@', self._define_entry('MDCPUCFG', self.environment.substs['TARGET_NSPR_MDCPUCFG']))
|
||||
settings = settings.replace("@COMPILER_FLAGS@", self._cxx + " " + self._cppflags);
|
||||
|
||||
fh.write(settings)
|
||||
|
@ -428,7 +427,6 @@ LANGUAGE_SETTINGS_TEMPLATE = """<?xml version="1.0" encoding="UTF-8" standalone=
|
|||
MOZILLA_EXTERNAL_API code will suffer.
|
||||
-->
|
||||
@DEFINE_MOZILLA_INTERNAL_API@
|
||||
@DEFINE_MDCPUCFG@
|
||||
</resource>
|
||||
</language>
|
||||
</provider>
|
||||
|
|
Загрузка…
Ссылка в новой задаче