mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 921070 - Remove precompile tier; r=glandium
It made sense at the time. We now have inverted tiers and will soon have derecursified building. This doesn't make sense any more.
This commit is contained in:
parent
b063781f78
commit
d03c8a0359
@ -227,7 +227,7 @@ endif
|
||||
|
||||
ifdef MOZ_PSEUDO_DERECURSE
|
||||
# Interdependencies for parallel export.
|
||||
js/xpconnect/src/export: config/makefiles/precompile/export
|
||||
accessible/src/xpcom/export: config/makefiles/precompile/export
|
||||
js/xpconnect/src/export: dom/bindings/export
|
||||
accessible/src/xpcom/export: xpcom/xpidl/export
|
||||
js/src/export: mfbt/export
|
||||
endif
|
||||
|
@ -119,7 +119,7 @@ globalgen_headers_FILES := \
|
||||
UnionTypes.h \
|
||||
$(NULL)
|
||||
globalgen_headers_DEST = $(DIST)/include/mozilla/dom
|
||||
globalgen_headers_TARGET := webidl
|
||||
globalgen_headers_TARGET := export
|
||||
INSTALL_TARGETS += globalgen_headers
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@ -271,9 +271,7 @@ GARBAGE += \
|
||||
# headers they depend on. This is really only needed for the test files, since
|
||||
# the non-test headers are all exported above anyway. Note that this means that
|
||||
# we do all of our codegen during export.
|
||||
webidl:: $(generated_header_files)
|
||||
|
||||
.PHONY: webidl
|
||||
export:: $(generated_header_files)
|
||||
|
||||
distclean::
|
||||
-$(RM) \
|
||||
@ -283,9 +281,3 @@ distclean::
|
||||
$(globalgen_targets) \
|
||||
ParserResults.pkl \
|
||||
$(NULL)
|
||||
|
||||
# This is only needed to support |make| from this leaf directory/Makefile.
|
||||
NONRECURSIVE_TARGETS := export
|
||||
NONRECURSIVE_TARGETS_export := webidl
|
||||
NONRECURSIVE_TARGETS_export_webidl_DIRECTORY := .
|
||||
NONRECURSIVE_TARGETS_export_webidl_TARGETS := webidl
|
||||
|
@ -21,7 +21,7 @@ include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
||||
|
||||
# NB: the IPDL compiler manages .ipdl-->.h/.cpp dependencies itself,
|
||||
# which is why we don't have explicit .h/.cpp targets here
|
||||
ipdl: $(ALL_IPDLSRCS)
|
||||
export:: $(ALL_IPDLSRCS)
|
||||
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
||||
$(PLY_INCLUDE) \
|
||||
$(srcdir)/ipdl.py \
|
||||
@ -30,14 +30,6 @@ ipdl: $(ALL_IPDLSRCS)
|
||||
$(IPDLDIRS:%=-I%) \
|
||||
$^
|
||||
|
||||
.PHONY: ipdl
|
||||
|
||||
# We #include some things in the dom/plugins/ directory that rely on
|
||||
# toolkit libraries.
|
||||
CXXFLAGS += $(TK_CFLAGS)
|
||||
|
||||
# This is only needed to support |make| from this leaf directory/Makefile.
|
||||
NONRECURSIVE_TARGETS := export
|
||||
NONRECURSIVE_TARGETS_export := ipdl
|
||||
NONRECURSIVE_TARGETS_export_ipdl_DIRECTORY := .
|
||||
NONRECURSIVE_TARGETS_export_ipdl_TARGETS := ipdl
|
||||
|
@ -111,9 +111,9 @@ class BackendMakeFile(object):
|
||||
self.fh.write('NONRECURSIVE_TARGETS += export\n')
|
||||
self.fh.write('NONRECURSIVE_TARGETS_export += xpidl\n')
|
||||
self.fh.write('NONRECURSIVE_TARGETS_export_xpidl_DIRECTORY = '
|
||||
'$(DEPTH)/config/makefiles/precompile\n')
|
||||
'$(DEPTH)/xpcom/xpidl\n')
|
||||
self.fh.write('NONRECURSIVE_TARGETS_export_xpidl_TARGETS += '
|
||||
'xpidl\n')
|
||||
'export\n')
|
||||
|
||||
return self.fh.close()
|
||||
|
||||
@ -427,25 +427,17 @@ class RecursiveMakeBackend(CommonBackend):
|
||||
return current, subdirs.parallel, \
|
||||
subdirs.dirs + subdirs.tests + subdirs.tools
|
||||
|
||||
# compile and tools build everything in parallel, but skip precompile.
|
||||
def other_filter(current, subdirs):
|
||||
if current == 'subtiers/precompile':
|
||||
return None, [], []
|
||||
return parallel_filter(current, subdirs)
|
||||
|
||||
# Skip tools dirs during libs traversal
|
||||
def libs_filter(current, subdirs):
|
||||
if current == 'subtiers/precompile':
|
||||
return None, [], []
|
||||
return current, subdirs.parallel, \
|
||||
subdirs.static + subdirs.dirs + subdirs.tests
|
||||
|
||||
# compile and tools tiers use the same traversal as export
|
||||
filters = {
|
||||
'export': export_filter,
|
||||
'compile': other_filter,
|
||||
'compile': parallel_filter,
|
||||
'libs': libs_filter,
|
||||
'tools': other_filter,
|
||||
'tools': parallel_filter,
|
||||
}
|
||||
|
||||
root_deps_mk = Makefile()
|
||||
|
@ -9,7 +9,6 @@ if CONFIG['LIBXUL_SDK']:
|
||||
if not CONFIG['MOZ_NATIVE_NSPR']:
|
||||
add_tier_dir('nspr', 'config/nspr')
|
||||
|
||||
add_tier_dir('precompile', 'config/makefiles/precompile')
|
||||
add_tier_dir('external', 'config/external')
|
||||
|
||||
if not CONFIG['MOZ_NATIVE_NSS']:
|
||||
|
@ -4,8 +4,12 @@
|
||||
# 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/.
|
||||
|
||||
DIRS += [
|
||||
PARALLEL_DIRS += [
|
||||
'idl-parser',
|
||||
'xpidl',
|
||||
]
|
||||
|
||||
DIRS += [
|
||||
'typelib',
|
||||
'string',
|
||||
'glue',
|
||||
|
@ -2,23 +2,7 @@
|
||||
# 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/.
|
||||
|
||||
# This make file defines the precompile tier. This tier effectively fans out
|
||||
# to other make files and specialized targets.
|
||||
|
||||
SUPPRESS_DEFAULT_RULES := 1
|
||||
|
||||
default::
|
||||
+$(MAKE) export
|
||||
|
||||
export:: ipdl webidl xpidl
|
||||
|
||||
ipdl:
|
||||
$(call SUBMAKE,ipdl,$(DEPTH)/ipc/ipdl)
|
||||
|
||||
webidl:
|
||||
$(call SUBMAKE,webidl,$(DEPTH)/dom/bindings)
|
||||
|
||||
xpidl:
|
||||
export::
|
||||
$(call SUBMAKE,xpidl-parser,$(DEPTH)/xpcom/idl-parser)
|
||||
$(call py_action,process_install_manifest,$(DIST)/idl $(DEPTH)/_build_manifests/install/dist_idl)
|
||||
$(call SUBMAKE,xpidl,$(DEPTH)/config/makefiles/xpidl)
|
Loading…
Reference in New Issue
Block a user