зеркало из https://github.com/mozilla/gecko-dev.git
Bug 973143 - Move some variables to moz.build; r=glandium
This commit is contained in:
Родитель
73b8879e45
Коммит
e613d30a2c
|
@ -8618,6 +8618,11 @@ AC_SUBST(MOZ_FOLD_LIBS)
|
|||
AC_SUBST(MOZ_ENABLE_SZIP)
|
||||
AC_SUBST(MOZ_SZIP_FLAGS)
|
||||
|
||||
if test "$MOZ_DEBUG"; then
|
||||
MOZ_EM_DEBUG=1
|
||||
fi
|
||||
AC_SUBST(MOZ_EM_DEBUG)
|
||||
|
||||
if test -n "$COMPILE_ENVIRONMENT"; then
|
||||
AC_MSG_CHECKING([for posix_fallocate])
|
||||
AC_TRY_LINK([#define _XOPEN_SOURCE 600
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
ifdef MOZ_DEBUG
|
||||
DEFINES += -DMOZ_DEBUG=1
|
||||
endif
|
|
@ -55,7 +55,7 @@ XPCOMUtils.defineLazyGetter(this, "libcutils", function() {
|
|||
#endif
|
||||
|
||||
function debug(aMsg) {
|
||||
#ifdef MOZ_DEBUG
|
||||
#ifdef DEBUG
|
||||
dump("-*- Webapps.jsm : " + aMsg + "\n");
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -65,29 +65,7 @@ endif
|
|||
endif
|
||||
|
||||
|
||||
ifdef USE_MMX
|
||||
CSRCS += pixman-mmx.c
|
||||
DEFINES += -DUSE_MMX
|
||||
endif
|
||||
|
||||
ifdef USE_SSE2
|
||||
CSRCS += pixman-sse2.c
|
||||
DEFINES += -DUSE_SSE -DUSE_SSE2
|
||||
endif
|
||||
|
||||
ifdef USE_VMX
|
||||
CSRCS += pixman-vmx.c
|
||||
DEFINES += -DUSE_VMX
|
||||
endif
|
||||
|
||||
ifdef USE_ARM_SIMD_GCC
|
||||
CSRCS += pixman-arm-simd.c
|
||||
DEFINES += -DUSE_ARM_SIMD
|
||||
endif
|
||||
|
||||
ifdef USE_ARM_NEON_GCC
|
||||
CSRCS += pixman-arm-neon.c
|
||||
DEFINES += -DUSE_ARM_NEON
|
||||
ARM_NEON_CFLAGS = -mfpu=neon
|
||||
endif
|
||||
|
||||
|
|
|
@ -75,3 +75,24 @@ if CONFIG['_MSC_VER']:
|
|||
DEFINES['PACKAGE'] = 'mozpixman'
|
||||
|
||||
DEFINES['_USE_MATH_DEFINES'] = True
|
||||
|
||||
if CONFIG['USE_MMX']:
|
||||
DEFINES['USE_MMX'] = True
|
||||
SOURCES += ['pixman-mmx.c']
|
||||
|
||||
if CONFIG['USE_SSE2']:
|
||||
DEFINES['USE_SSE'] = True
|
||||
DEFINES['USE_SSE2'] = True
|
||||
SOURCES += ['pixman-sse2.c']
|
||||
|
||||
if CONFIG['USE_VMX']:
|
||||
DEFINES['USE_VMX'] = True
|
||||
SOURCES += ['pixman-vmx.c']
|
||||
|
||||
if CONFIG['USE_ARM_SIMD_GCC']:
|
||||
DEFINES['USE_ARM_SIMD'] = True
|
||||
SOURCES += ['pixman-arm-simd.c']
|
||||
|
||||
if CONFIG['USE_ARM_NEON_GCC']:
|
||||
DEFINES['USE_ARM_NEON'] = True
|
||||
SOURCES += ['pixman-arm-neon.c']
|
||||
|
|
|
@ -203,11 +203,6 @@ DIST_GARBAGE = config.cache config.log config.status* \
|
|||
distclean::
|
||||
$(RM) $(DIST_GARBAGE)
|
||||
|
||||
ifneq (,$(filter WINNT,$(OS_ARCH)))
|
||||
# _CRT_RAND_S must be #defined before #including stdlib.h to get rand_s()
|
||||
DEFINES += -D_CRT_RAND_S
|
||||
endif
|
||||
|
||||
ifneq ($(findstring -L,$(NSPR_LIBS)),)
|
||||
NSPR_STATIC_PATH = $(subst -L,,$(findstring -L,$(NSPR_LIBS)))
|
||||
else
|
||||
|
|
|
@ -343,6 +343,8 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
|||
'assembler/jit/ExecutableAllocatorWin.cpp',
|
||||
'yarr/OSAllocatorWin.cpp',
|
||||
]
|
||||
# _CRT_RAND_S must be #defined before #including stdlib.h to get rand_s()
|
||||
DEFINES['_CRT_RAND_S'] = True
|
||||
else:
|
||||
SOURCES += [
|
||||
'assembler/jit/ExecutableAllocatorPosix.cpp',
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# Additional debugging info is exposed by setting the MOZ_EM_DEBUG
|
||||
# environment variable when building.
|
||||
ifneq (,$(MOZ_EM_DEBUG))
|
||||
DEFINES += -DMOZ_EM_DEBUG=1
|
||||
endif
|
|
@ -53,7 +53,7 @@ if CONFIG['MOZ_UPDATE_CHANNEL'] not in ('aurora', 'beta', 'release', 'esr'):
|
|||
DEFINES['MOZ_EXTENSIONS_DB_SCHEMA'] = 16
|
||||
|
||||
# Additional debugging info is exposed in debug builds
|
||||
if CONFIG['MOZ_DEBUG']:
|
||||
if CONFIG['MOZ_EM_DEBUG']:
|
||||
DEFINES['MOZ_EM_DEBUG'] = 1
|
||||
|
||||
JAR_MANIFESTS += ['jar.mn']
|
||||
JAR_MANIFESTS += ['jar.mn']
|
||||
|
|
Загрузка…
Ссылка в новой задаче