зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1209875 - Get rid of XULPPFLAGS. r=gps
The flags added in toolkit/locales/Makefile.in turn out not to be actually used, so just remove that. The remaining uses of XULPPFLAGS are to set debug flags depending on whether MOZ_DEBUG is set or not. Just set a dedicated variable with the right value from configure.
This commit is contained in:
Родитель
164381084f
Коммит
9f2c4e94ba
|
@ -57,7 +57,7 @@ $(DIST)/branding:
|
|||
|
||||
libs::
|
||||
@if test -f '$(LOCALE_SRCDIR)/existing-profile-defaults.js'; then \
|
||||
$(PYTHON) -m mozbuild.action.preprocessor $(PREF_PPFLAGS) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) \
|
||||
$(PYTHON) -m mozbuild.action.preprocessor $(PREF_PPFLAGS) $(DEFINES) $(ACDEFINES) $(MOZ_DEBUG_DEFINES) \
|
||||
$(LOCALE_SRCDIR)/existing-profile-defaults.js -o $(FINAL_TARGET)/defaults/existing-profile-defaults.js; \
|
||||
fi
|
||||
|
||||
|
|
|
@ -137,8 +137,6 @@ MOZ_ARG_WITH_STRING(debug-label,
|
|||
MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_${option}"
|
||||
done])
|
||||
|
||||
MOZ_DEBUG_DISABLE_DEFS="-DNDEBUG -DTRIMMED"
|
||||
|
||||
if test -n "$MOZ_DEBUG"; then
|
||||
AC_MSG_CHECKING([for valid debug flags])
|
||||
_SAVE_CFLAGS=$CFLAGS
|
||||
|
@ -152,8 +150,14 @@ if test -n "$MOZ_DEBUG"; then
|
|||
AC_MSG_ERROR([These compiler flags are invalid: $MOZ_DEBUG_FLAGS])
|
||||
fi
|
||||
CFLAGS=$_SAVE_CFLAGS
|
||||
|
||||
MOZ_DEBUG_DEFINES="$MOZ_DEBUG_ENABLE_DEFS"
|
||||
else
|
||||
MOZ_DEBUG_DEFINES="-DNDEBUG -DTRIMMED"
|
||||
fi
|
||||
|
||||
AC_SUBST(MOZ_DEBUG_DEFINES)
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Enable generation of debug symbols
|
||||
dnl ========================================================
|
||||
|
|
|
@ -162,13 +162,7 @@ _DEBUG_ASFLAGS :=
|
|||
_DEBUG_CFLAGS :=
|
||||
_DEBUG_LDFLAGS :=
|
||||
|
||||
ifdef MOZ_DEBUG
|
||||
_DEBUG_CFLAGS += $(MOZ_DEBUG_ENABLE_DEFS)
|
||||
XULPPFLAGS += $(MOZ_DEBUG_ENABLE_DEFS)
|
||||
else
|
||||
_DEBUG_CFLAGS += $(MOZ_DEBUG_DISABLE_DEFS)
|
||||
XULPPFLAGS += $(MOZ_DEBUG_DISABLE_DEFS)
|
||||
endif
|
||||
_DEBUG_CFLAGS += $(MOZ_DEBUG_DEFINES)
|
||||
|
||||
ifneq (,$(MOZ_DEBUG)$(MOZ_DEBUG_SYMBOLS))
|
||||
ifeq ($(AS),yasm)
|
||||
|
|
|
@ -354,7 +354,7 @@ nspr_def_file := $(srcdir)/nspr-dummy.def
|
|||
|
||||
nss3.def: $(nss_def_file) $(sqlite_def_file) $(nspr_def_file) $(NSS_EXTRA_SYMBOLS_FILE)
|
||||
@$(call py_action,convert_def_file, \
|
||||
$(DEFINES) $(ACDEFINES) $(XULPPFLAGS) -o $@ $^)
|
||||
$(DEFINES) $(ACDEFINES) $(MOZ_DEBUG_DEFINES) -o $@ $^)
|
||||
|
||||
GARBAGE += \
|
||||
nss3.def \
|
||||
|
|
|
@ -21,7 +21,7 @@ GARBAGE += \
|
|||
# Convert to the format we need for ld.
|
||||
$(LD_VERSION_SCRIPT): $(topsrcdir)/db/sqlite3/src/sqlite.def
|
||||
@$(call py_action,convert_def_file, \
|
||||
$(DEFINES) $(ACDEFINES) $(XULPPFLAGS) -o $@ $^)
|
||||
$(DEFINES) $(ACDEFINES) $(MOZ_DEBUG_DEFINES) -o $@ $^)
|
||||
|
||||
endif
|
||||
endif
|
||||
|
|
|
@ -93,8 +93,6 @@ $(addprefix install-,$(INSTALL_MANIFESTS)): install-%:
|
|||
# Preprocessed files. Ideally they would be using install manifests but
|
||||
# right now, it's not possible because of things like APP_BUILDID or
|
||||
# nsURLFormatter.js.
|
||||
# Things missing:
|
||||
# - XULPPFLAGS
|
||||
#
|
||||
# The list of preprocessed files is defined in PP_TARGETS. The list is
|
||||
# relative to TOPOBJDIR.
|
||||
|
@ -114,6 +112,7 @@ $(addprefix $(TOPOBJDIR)/,$(PP_TARGETS)): $(TOPOBJDIR)/%:
|
|||
-DAB_CD=en-US \
|
||||
$(defines) \
|
||||
$(ACDEFINES) \
|
||||
$(MOZ_DEBUG_DEFINES) \
|
||||
$< \
|
||||
-o $@
|
||||
|
||||
|
@ -125,7 +124,6 @@ $(foreach pp_target,$(PP_TARGETS), \
|
|||
# manifests, but the code to read jar manifests and emit appropriate
|
||||
# install manifests is not there yet.
|
||||
# Things missing:
|
||||
# - XULPPFLAGS
|
||||
# - DEFINES from config/config.mk
|
||||
# - L10N
|
||||
# - -e when USE_EXTENSION_MANIFEST is set in moz.build
|
||||
|
@ -165,6 +163,7 @@ jar-%:
|
|||
-DAB_CD=en-US \
|
||||
$(defines) \
|
||||
$(ACDEFINES) \
|
||||
$(MOZ_DEBUG_DEFINES) \
|
||||
$<
|
||||
|
||||
# Create some chrome manifests
|
||||
|
|
|
@ -1262,7 +1262,7 @@ endif
|
|||
libs realchrome:: $(FINAL_TARGET)/chrome
|
||||
$(call py_action,jar_maker,\
|
||||
$(QUIET) -j $(FINAL_TARGET)/chrome \
|
||||
$(MAKE_JARS_FLAGS) $(XULPPFLAGS) $(DEFINES) $(ACDEFINES) \
|
||||
$(MAKE_JARS_FLAGS) $(DEFINES) $(ACDEFINES) $(MOZ_DEBUG_DEFINES) \
|
||||
$(JAR_MANIFEST))
|
||||
|
||||
endif
|
||||
|
@ -1516,7 +1516,7 @@ PP_TARGETS_ALL_RESULTS := $(sort $(foreach tier,$(PP_TARGETS_TIERS),$(PP_TARGETS
|
|||
$(PP_TARGETS_ALL_RESULTS):
|
||||
$(if $(filter-out $(notdir $@),$(notdir $(<:.in=))),$(error Looks like $@ has an unexpected dependency on $< which breaks PP_TARGETS))
|
||||
$(RM) '$@'
|
||||
$(call py_action,preprocessor,--depend $(MDDEPDIR)/$(@F).pp $(PP_TARGET_FLAGS) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) '$<' -o '$@')
|
||||
$(call py_action,preprocessor,--depend $(MDDEPDIR)/$(@F).pp $(PP_TARGET_FLAGS) $(DEFINES) $(ACDEFINES) $(MOZ_DEBUG_DEFINES) '$<' -o '$@')
|
||||
|
||||
# The depfile is based on the filename, and we don't want conflicts. So check
|
||||
# there's only one occurrence of any given filename in PP_TARGETS_ALL_RESULTS.
|
||||
|
|
|
@ -8557,8 +8557,6 @@ AC_SUBST(MOZ_AUTH_EXTENSION)
|
|||
AC_SUBST(MOZ_PREF_EXTENSIONS)
|
||||
AC_SUBST(MOZ_DEBUG)
|
||||
AC_SUBST(MOZ_DEBUG_SYMBOLS)
|
||||
AC_SUBST(MOZ_DEBUG_ENABLE_DEFS)
|
||||
AC_SUBST(MOZ_DEBUG_DISABLE_DEFS)
|
||||
AC_SUBST(MOZ_DEBUG_LDFLAGS)
|
||||
AC_SUBST(WARNINGS_AS_ERRORS)
|
||||
AC_SUBST_SET(MOZ_EXTENSIONS)
|
||||
|
|
|
@ -15,6 +15,6 @@ GARBAGE += \
|
|||
# We have to preprocess our def file because we need different symbols in debug
|
||||
# builds exposed that are not built in non-debug builds.
|
||||
$(DEFFILE): sqlite.def
|
||||
@$(call py_action,preprocessor,$(DEFINES) $(XULPPFLAGS) \
|
||||
@$(call py_action,preprocessor,$(DEFINES) $(MOZ_DEBUG_DEFINES) \
|
||||
$(srcdir)/sqlite.def -o $(DEFFILE))
|
||||
endif
|
||||
|
|
|
@ -311,12 +311,7 @@ selfhosted_out_h_deps := \
|
|||
$(srcdir)/builtin/SelfHostingDefines.h \
|
||||
$(NULL)
|
||||
|
||||
SELFHOSTED_DEFINES += $(DEFINES) $(ACDEFINES)
|
||||
ifdef MOZ_DEBUG
|
||||
SELFHOSTED_DEFINES += $(MOZ_DEBUG_ENABLE_DEFS)
|
||||
else
|
||||
SELFHOSTED_DEFINES += $(MOZ_DEBUG_DISABLE_DEFS)
|
||||
endif
|
||||
SELFHOSTED_DEFINES += $(DEFINES) $(ACDEFINES) $(MOZ_DEBUG_DEFINES)
|
||||
|
||||
selfhosted.out.h: $(selfhosted_out_h_deps)
|
||||
$(PYTHON) $(srcdir)/builtin/embedjs.py $(SELFHOSTED_DEFINES) \
|
||||
|
|
|
@ -3623,8 +3623,6 @@ AC_SUBST(FILTER)
|
|||
AC_SUBST(BIN_FLAGS)
|
||||
AC_SUBST(MOZ_DEBUG)
|
||||
AC_SUBST(MOZ_DEBUG_SYMBOLS)
|
||||
AC_SUBST(MOZ_DEBUG_ENABLE_DEFS)
|
||||
AC_SUBST(MOZ_DEBUG_DISABLE_DEFS)
|
||||
AC_SUBST(MOZ_DEBUG_LDFLAGS)
|
||||
AC_SUBST(WARNINGS_AS_ERRORS)
|
||||
AC_SUBST(MOZ_JPROF)
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# Avoid Lock_impl code depending on mozilla::Logger
|
||||
MOZ_DEBUG_ENABLE_DEFS=
|
||||
MOZ_DEBUG_DEFINES=
|
||||
|
|
|
@ -27,7 +27,7 @@ endif
|
|||
endif
|
||||
|
||||
greprefs.js: $(grepref_files)
|
||||
$(call py_action,preprocessor,$(PREF_PPFLAGS) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) $^ -o $@)
|
||||
$(call py_action,preprocessor,$(PREF_PPFLAGS) $(DEFINES) $(ACDEFINES) $(MOZ_DEBUG_DEFINES) $^ -o $@)
|
||||
|
||||
libs:: greprefs.js
|
||||
$(INSTALL) $^ $(DIST)/bin/
|
||||
|
|
|
@ -1494,7 +1494,7 @@ INSTALL_TARGETS += %(prefix)s
|
|||
# which would modify content in the source directory.
|
||||
'$(RM) $@',
|
||||
'$(call py_action,preprocessor,$(DEFINES) $(ACDEFINES) '
|
||||
'$(XULPPFLAGS) $< -o $@)'
|
||||
'$(MOZ_DEBUG_DEFINES) $< -o $@)'
|
||||
])
|
||||
|
||||
self._add_unified_build_rules(mk,
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
# 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/.
|
||||
|
||||
XULPPFLAGS += -I$(LOCALE_SRCDIR)/defines.inc
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifdef LOCALE_MERGEDIR
|
||||
|
|
Загрузка…
Ссылка в новой задаче