mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 13:43:44 +00:00
45942a6da5
- missing bit of Bug 1209403 - Build xpidl stuff in the faster make backend. (2b46f612d4) - Bug 1209875 - Get rid of XULPPFLAGS. r=gps (84b1e0140e) - Bug 1220731 - Refactor embedjs script for use from moz.build rather than makefiles r=shu r=glandium (064363aef4) - Bug 1212015 - Fix an unchecked allocation in AsmJS r=terrence (c77978cae6) - Bug 1218641 - IonMonkey: MIPS64: Add support into asmjs. r=lth (c856ea1842) - Bug 1219821 - remove static failure, make it dynamic r=arai a=me (eec5ffaa57) - Bug 1210611 - Globally define MOZILLA_OFFICIAL. r=glandium (c06518f942) - Bug 1211765 - Remove remnants from --with-libxul-sdk. r=bsmedberg (79a4d4e4aa) - Bug 1221453 - Use SourcePaths for LOCAL_INCLUDES. r=gps (abb032990d) - Bug 1176094 - [ATK] Assign role SECTION to math groups instead of PANEL/UNKNOWN. r=surkov (18b059a017) - Bug 1175182 - Expose fractions and roots as ATK_ROLE_PANEL for ATK < 2.16. r=surkov (6d00256e56) - bug 1171728 - null check the result of ProxyAccessible::OuterDocOfRemoteBrowser (378533bdaf) - Bug 1207253 - make getChildCountCB correctly deal with outerdoc accessibles with proxy children, r=tbsaunde (303d37a9d3) - bug 1209615 - make remote primary docs RELATION_EMBEDS targets for atk r=davidb (782635334d) - bug 1196880 - correctly compute interfaces for proxies r=davidb (2ee6b6ffdd) - bug 1210803 - expose the selection interface on proxied accessibles r=davidb (006b68ee32) - bug 1210884 - expose the action interface on proxied accessibles r=davidb (837add2013) - bug 1185122 - don't try and fire platform events in the child process r=lsocks (622e18ed2c) - Bug 1210108 - Emit object:state-changed:showing event for doorhangers, r=tbsaunde (bd2d410651) - bug 1164193 - emit a few more events on proxied accessibles for atk r=davidb (79b0d7a324) - bug 1213516 - fire showing state change event for atk in place of an alert event r=davidb (08efdc7620) - Bug 1209470 - Remove use of expression closure from Add-on SDK. r=mossop (736026d0e9) - Bug 1212693 - Remove skipCOWCallableChecks. r=bz (e1b7c21fe5) - Bug 877896 - Print stack trace in the console service. r=bholley (4667c5df15) - Bug 1157648 - Make nsScriptError::ToString use only the first 512 characters of mSourceName and mSourceLine. r=bholley (8cabd24397) - Bug 1052139 - Continued work on making the global object's prototype chain immutable, once a switch is flipped. r=bz (3f7549bd11) - Bug 1052139 - Adjust sandbox code to create the sandbox with an (observably) immutable [[Prototype]], once the flag's flipped. r=bz (66b846642c) - Bug 1184382 - Handle a sandboxPrototype we don't subsume. r=gabor (1736954a3e) - Bug 1205707 part 1 - Clean up some is-TypedArrayObject code in Ion. r=Waldo (08d95d5db4) - Bug 1205707 part 2 - Add test. r=Waldo (d1af75fe83)
301 lines
9.1 KiB
Makefile
301 lines
9.1 KiB
Makefile
#
|
|
# 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/.
|
|
|
|
ifeq (,$(MAKE_VERSION))
|
|
$(error GNU Make is required)
|
|
endif
|
|
make_min_ver := 3.81
|
|
ifneq ($(make_min_ver),$(firstword $(sort $(make_min_ver) $(MAKE_VERSION))))
|
|
$(error GNU Make $(make_min_ver) or higher is required)
|
|
endif
|
|
|
|
export TOPLEVEL_BUILD := 1
|
|
|
|
default::
|
|
|
|
ifdef MOZ_BUILD_APP
|
|
include $(topsrcdir)/$(MOZ_BUILD_APP)/build.mk
|
|
endif
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
GARBAGE_DIRS += _javagen _profile staticlib
|
|
DIST_GARBAGE = config.cache config.log config.status* config-defs.h \
|
|
config/autoconf.mk \
|
|
mozilla-config.h \
|
|
netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
|
|
.mozconfig.mk
|
|
|
|
ifdef JS_STANDALONE
|
|
configure_dir = $(topsrcdir)/js/src
|
|
else
|
|
configure_dir = $(topsrcdir)
|
|
endif
|
|
|
|
ifndef MOZ_PROFILE_USE
|
|
# We need to explicitly put backend.RecursiveMakeBackend here
|
|
# otherwise the rule in rules.mk doesn't run early enough.
|
|
$(TIERS) binaries:: CLOBBER $(configure_dir)/configure config.status backend.RecursiveMakeBackend
|
|
ifndef JS_STANDALONE
|
|
ifdef COMPILE_ENVIRONMENT
|
|
$(TIERS) binaries:: $(topsrcdir)/js/src/configure js/src/config.status
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
ifdef JS_STANDALONE
|
|
.PHONY: CLOBBER
|
|
CLOBBER:
|
|
else
|
|
CLOBBER: $(topsrcdir)/CLOBBER
|
|
@echo 'STOP! The CLOBBER file has changed.'
|
|
@echo 'Please run the build through a sanctioned build wrapper, such as'
|
|
@echo '"mach build" or client.mk.'
|
|
@exit 1
|
|
endif
|
|
|
|
$(topsrcdir)/configure: $(topsrcdir)/configure.in
|
|
$(topsrcdir)/js/src/configure: $(topsrcdir)/js/src/configure.in
|
|
$(topsrcdir)/configure $(topsrcdir)/js/src/configure:
|
|
@echo 'STOP! $^ has changed, and your configure is out of date.'
|
|
@echo 'Please rerun autoconf and re-configure your build directory.'
|
|
@echo 'To ignore this message, touch "$@",'
|
|
@echo 'but your build might not succeed.'
|
|
@exit 1
|
|
|
|
config.status: $(configure_dir)/configure
|
|
js/src/config.status: $(topsrcdir)/js/src/configure
|
|
config.status js/src/config.status:
|
|
@echo 'STOP! $^ has changed and needs to be run again.'
|
|
@echo 'Please rerun it.'
|
|
@echo 'To ignore this message, touch "$(CURDIR)/$@",'
|
|
@echo 'but your build might not succeed.'
|
|
@exit 1
|
|
|
|
# Regenerate the build backend if it is out of date. We only have this rule in
|
|
# this main make file because having it in rules.mk and applied to partial tree
|
|
# builds resulted in a world of hurt. Gory details are in bug 877308.
|
|
#
|
|
# The mach build driver will ensure the backend is up to date for partial tree
|
|
# builds. This cleanly avoids most of the pain.
|
|
|
|
backend.RecursiveMakeBackend:
|
|
@echo 'Build configuration changed. Regenerating backend.'
|
|
$(PYTHON) config.status
|
|
|
|
Makefile: backend.RecursiveMakeBackend
|
|
@$(TOUCH) $@
|
|
|
|
include backend.RecursiveMakeBackend.pp
|
|
|
|
default:: backend.RecursiveMakeBackend
|
|
|
|
install_manifests := \
|
|
$(addprefix dist/,bin branding idl include public private sdk xpi-stage) \
|
|
_tests \
|
|
$(NULL)
|
|
install_manifest_depends = \
|
|
CLOBBER \
|
|
$(configure_dir)/configure \
|
|
config.status \
|
|
backend.RecursiveMakeBackend \
|
|
$(NULL)
|
|
|
|
ifndef JS_STANDALONE
|
|
ifdef COMPILE_ENVIRONMENT
|
|
install_manifest_depends += \
|
|
$(topsrcdir)/js/src/configure \
|
|
js/src/config.status \
|
|
$(NULL)
|
|
endif
|
|
endif
|
|
|
|
.PHONY: install-manifests
|
|
install-manifests: $(addprefix install-,$(install_manifests))
|
|
|
|
# process_install_manifest needs to be invoked with --no-remove when building
|
|
# js as standalone because automated builds are building nspr separately and
|
|
# that would remove the resulting files.
|
|
# Eventually, a standalone js build would just be able to build nspr itself,
|
|
# removing the need for the former.
|
|
ifdef JS_STANDALONE
|
|
NO_REMOVE=1
|
|
endif
|
|
|
|
.PHONY: $(addprefix install-,$(install_manifests))
|
|
$(addprefix install-,$(filter dist/%,$(install_manifests))): install-dist/%: $(install_manifest_depends)
|
|
$(call py_action,process_install_manifest,$(if $(NO_REMOVE),--no-remove )$(DIST)/$* _build_manifests/install/dist_$*)
|
|
|
|
# Dummy wrapper rule to allow the faster backend to piggy back
|
|
install-dist_%: install-dist/% ;
|
|
|
|
install-_tests: $(install_manifest_depends)
|
|
$(call py_action,process_install_manifest,$(if $(NO_REMOVE),--no-remove )_tests _build_manifests/install/tests)
|
|
|
|
# For compatibility
|
|
.PHONY: install-tests
|
|
install-tests: install-_tests
|
|
|
|
include $(topsrcdir)/build/moz-automation.mk
|
|
|
|
# dist and _tests should be purged during cleaning. However, we don't want them
|
|
# purged during PGO builds because they contain some auto-generated files.
|
|
ifneq ($(filter-out maybe_clobber_profiledbuild,$(MAKECMDGOALS)),)
|
|
GARBAGE_DIRS += dist _tests
|
|
endif
|
|
|
|
# Windows PGO builds don't perform a clean before the 2nd pass. So, we want
|
|
# to preserve content for the 2nd pass on Windows. Everywhere else, we always
|
|
# process the install manifests as part of export.
|
|
# For the binaries rule, not all the install manifests matter, so force only
|
|
# the interesting ones to be done.
|
|
ifdef MOZ_PROFILE_USE
|
|
ifndef NO_PROFILE_GUIDED_OPTIMIZE
|
|
ifneq ($(OS_ARCH)_$(GNU_CC), WINNT_)
|
|
export:: install-manifests
|
|
binaries::
|
|
@$(MAKE) install-manifests NO_REMOVE=1 install_manifests=dist/include
|
|
endif
|
|
endif
|
|
else # !MOZ_PROFILE_USE (normal build)
|
|
export:: install-manifests
|
|
binaries::
|
|
@$(MAKE) install-manifests NO_REMOVE=1 install_manifests=dist/include
|
|
endif
|
|
|
|
# For historical reasons that are unknown, $(DIST)/sdk is always blown away
|
|
# with no regard for PGO passes. This decision could probably be revisited.
|
|
export:: install-dist/sdk
|
|
|
|
ifndef JS_STANDALONE
|
|
ifdef ENABLE_TESTS
|
|
# Additional makefile targets to call automated test suites
|
|
include $(topsrcdir)/testing/testsuite-targets.mk
|
|
endif
|
|
endif
|
|
|
|
default all::
|
|
$(call BUILDSTATUS,TIERS $(TIERS) $(if $(MOZ_AUTOMATION),$(MOZ_AUTOMATION_TIERS)))
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
distclean::
|
|
$(RM) $(DIST_GARBAGE)
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
# we want to copy PDB files on Windows
|
|
MAKE_SYM_STORE_ARGS := -c --vcs-info
|
|
ifdef PDBSTR_PATH
|
|
MAKE_SYM_STORE_ARGS += -i
|
|
endif
|
|
# PDB files don't get moved to dist, so we need to scan the whole objdir
|
|
MAKE_SYM_STORE_PATH := .
|
|
endif
|
|
ifeq ($(OS_ARCH),Darwin)
|
|
# need to pass arch flags for universal builds
|
|
ifdef UNIVERSAL_BINARY
|
|
MAKE_SYM_STORE_ARGS := -c -a 'i386 x86_64' --vcs-info
|
|
MAKE_SYM_STORE_PATH := $(DIST)/universal
|
|
else
|
|
MAKE_SYM_STORE_ARGS := -c -a $(OS_TEST) --vcs-info
|
|
MAKE_SYM_STORE_PATH := $(DIST)/bin
|
|
endif
|
|
DUMP_SYMS_BIN ?= $(DIST)/host/bin/dump_syms
|
|
endif
|
|
ifeq (,$(filter-out Linux SunOS,$(OS_ARCH)))
|
|
MAKE_SYM_STORE_ARGS := -c --vcs-info
|
|
DUMP_SYMS_BIN ?= $(DIST)/host/bin/dump_syms
|
|
MAKE_SYM_STORE_PATH := $(DIST)/bin
|
|
endif
|
|
MAKE_SYM_STORE_ARGS += --install-manifest=$(DEPTH)/_build_manifests/install/dist_include,$(DIST)/include
|
|
|
|
SYM_STORE_SOURCE_DIRS := $(topsrcdir)
|
|
|
|
ifndef JS_STANDALONE
|
|
include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk
|
|
|
|
ifdef MOZ_SYMBOLS_EXTRA_BUILDID
|
|
EXTRA_BUILDID := -$(MOZ_SYMBOLS_EXTRA_BUILDID)
|
|
endif
|
|
|
|
SYMBOL_INDEX_NAME = \
|
|
$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)-$(OS_TARGET)-$(BUILDID)-$(CPU_ARCH)$(EXTRA_BUILDID)-symbols.txt
|
|
|
|
buildsymbols:
|
|
|
|
uploadsymbols:
|
|
|
|
# MOZ_SOURCE_STAMP is defined in package-name.mk with a deferred assignment.
|
|
# exporting it makes make run its $(shell) command for each invoked submake,
|
|
# so transform it to an immediate assignment.
|
|
MOZ_SOURCE_STAMP := $(MOZ_SOURCE_STAMP)
|
|
export MOZ_SOURCE_STAMP
|
|
endif
|
|
|
|
.PHONY: update-packaging
|
|
update-packaging:
|
|
$(MAKE) -C tools/update-packaging
|
|
|
|
.PHONY: pretty-package
|
|
pretty-package:
|
|
unset MOZ_SIGN_CMD && $(MAKE) package MOZ_PKG_PRETTYNAMES=1
|
|
|
|
.PHONY: pretty-package-tests
|
|
pretty-package-tests:
|
|
unset MOZ_SIGN_CMD && $(MAKE) package-tests MOZ_PKG_PRETTYNAMES=1
|
|
|
|
.PHONY: pretty-l10n-check
|
|
pretty-l10n-check:
|
|
unset MOZ_SIGN_CMD && $(MAKE) l10n-check MOZ_PKG_PRETTYNAMES=1
|
|
|
|
.PHONY: pretty-update-packaging
|
|
pretty-update-packaging:
|
|
unset MOZ_SIGN_CMD && $(MAKE) -C tools/update-packaging MOZ_PKG_PRETTYNAMES=1
|
|
|
|
.PHONY: pretty-installer
|
|
pretty-installer:
|
|
unset MOZ_SIGN_CMD && $(MAKE) installer MOZ_PKG_PRETTYNAMES=1
|
|
|
|
#XXX: this is a hack, since we don't want to clobber for MSVC
|
|
# PGO support, but we can't do this test in client.mk
|
|
ifneq ($(OS_ARCH)_$(GNU_CC), WINNT_)
|
|
# No point in clobbering if PGO has been explicitly disabled.
|
|
ifndef NO_PROFILE_GUIDED_OPTIMIZE
|
|
maybe_clobber_profiledbuild: clean
|
|
else
|
|
maybe_clobber_profiledbuild:
|
|
endif
|
|
else
|
|
maybe_clobber_profiledbuild:
|
|
$(RM) $(DIST)/bin/*.pgc
|
|
find $(DIST)/$(MOZ_APP_NAME) -name '*.pgc' -exec mv {} $(DIST)/bin \;
|
|
endif
|
|
|
|
.PHONY: maybe_clobber_profiledbuild
|
|
|
|
# Look for R_386_PC32 relocations in shared libs, these
|
|
# break x86_64 builds and SELinux users.
|
|
ifeq ($(OS_TARGET)_$(TARGET_XPCOM_ABI),Linux_x86-gcc3)
|
|
check::
|
|
@relcount=`find $(DIST)/bin -name '*.so' | xargs objdump -R | grep R_386_PC32 | wc -l` && if test $$relcount -gt 0; then echo 'FAILED: R_386_PC32 relocations detected in a shared library. Did you use a system header without adding it to config/system-headers?'; exit 1; else echo 'PASSED'; fi
|
|
endif
|
|
|
|
ifdef JS_STANDALONE
|
|
# Delegate js-specific rules to js
|
|
check-%:
|
|
$(MAKE) -C js/src $@
|
|
|
|
source-package install:
|
|
$(MAKE) -C js/src $@
|
|
|
|
# Every export rule depends on config/export, but the rule for config/export
|
|
# doesn't exist when building js non-standalone.
|
|
.PHONY: config/export
|
|
config/export:
|
|
|
|
endif
|
|
|
|
# There used to be build interdependencies here. They are now in config/recurse.mk
|