mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
Create active header list for each module during the export phase.
At the end of the export loop, remove the outdated files. Requires setting MOZ_TRACK_MODULE_DEPS to activate Bug #59454 r=bryner sr=alecf
This commit is contained in:
parent
974ac2fba0
commit
bf461195e5
@ -185,6 +185,9 @@ include $(topsrcdir)/config/rules.mk
|
||||
export::
|
||||
+$(LOOP_OVER_EXPORT_DIRS)
|
||||
|
||||
export::
|
||||
@$(PERL) $(MOZILLA_DIR)/config/purge-old-headers.pl $(DIST)/include
|
||||
|
||||
distclean::
|
||||
cat unallmakefiles | $(XARGS) rm -f
|
||||
rm -f unallmakefiles $(DIST_GARBAGE)
|
||||
|
@ -72,14 +72,19 @@ ifeq ($(OS_CONFIG),Rhapsody10.0)
|
||||
NSPR_CFLAGS += -DGETCWD_CANT_MALLOC
|
||||
endif
|
||||
|
||||
export:: $(TARGETS)
|
||||
$(INSTALL) -m 444 nsBuildID.h $(DIST)/include
|
||||
HEADERS = nsBuildID.h
|
||||
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
||||
$(INSTALL) -m 444 $(srcdir)/os2/dirent.h $(DIST)/include
|
||||
HEADERS += $(srcdir)/os2/dirent.h
|
||||
endif
|
||||
|
||||
export:: $(TARGETS) $(HEADERS)
|
||||
$(INSTALL) -m 444 $(HEADERS) $(DIST)/include
|
||||
ifdef MOZ_TRACK_MODULE_DEPS
|
||||
$(PERL) -I$(MOZILLA_DIR)/config $(MOZILLA_DIR)/config/build-list.pl $(PUBLIC)/.headerlist $(HEADERS)
|
||||
endif
|
||||
-rm -f $(FINAL_LINK_COMPS) $(FINAL_LINK_LIBS) $(FINAL_LINK_COMP_NAMES)
|
||||
|
||||
GARBAGE += build_number nsBuildId.h
|
||||
GARBAGE += build_number nsBuildID.h
|
||||
|
||||
ifneq ($(origin BUILD_OFFICIAL)_$(origin MOZILLA_OFFICIAL),undefined_undefined)
|
||||
_BN_OFFICIAL=1
|
||||
|
@ -1174,6 +1174,9 @@ endif
|
||||
ifneq ($(EXPORTS),)
|
||||
export:: $(EXPORTS) $(PUBLIC)
|
||||
$(INSTALL) $(IFLAGS1) $^
|
||||
ifdef MOZ_TRACK_MODULE_DEPS
|
||||
$(PERL) -I$(MOZILLA_DIR)/config $(MOZILLA_DIR)/config/build-list.pl $(PUBLIC)/.headerlist $(notdir $(filter-out $(PUBLIC),$^))
|
||||
endif
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
@ -1230,6 +1233,9 @@ $(XPIDL_GEN_DIR)/%.h: %.idl $(XPIDL_COMPILE) $(XPIDL_GEN_DIR)/.done
|
||||
|
||||
export:: $(patsubst %.idl,$(XPIDL_GEN_DIR)/%.h, $(XPIDLSRCS)) $(PUBLIC)
|
||||
$(INSTALL) $(IFLAGS1) $^
|
||||
ifdef MOZ_TRACK_MODULE_DEPS
|
||||
$(PERL) -I$(MOZILLA_DIR)/config $(MOZILLA_DIR)/config/build-list.pl $(PUBLIC)/.headerlist $(notdir $(filter-out $(PUBLIC),$^))
|
||||
endif
|
||||
|
||||
ifndef NO_GEN_XPT
|
||||
# generate intermediate .xpt files into $(XPIDL_GEN_DIR), then link
|
||||
|
Loading…
x
Reference in New Issue
Block a user