From e3f45f307f277843113e9d9f1f22892411554682 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Thu, 6 Sep 2001 03:49:50 +0000 Subject: [PATCH] adding MOZ_TRACK_MODULE_DEPS support to win32 build the rest of the makefiles are not ready for bug 98371 r=cls --- config/config.mak | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/config/config.mak b/config/config.mak index dc52ba0e432..c9f148e1af6 100644 --- a/config/config.mak +++ b/config/config.mak @@ -71,7 +71,11 @@ WINOS=$(WINOS: =)^ #//----------------------------------------------------------------------- XPDIST=$(DEPTH)\dist +!if defined(MOZ_TRACK_MODULE_DEPS) && defined(MODULE) +PUBLIC=$(XPDIST)\include\$(MODULE) +!else PUBLIC=$(XPDIST)\include +!endif !ifdef NGLAYOUT_BUILD_PREFIX DIST_PREFIX=NGL @@ -125,8 +129,22 @@ NGLAYOUT_DIST=$(XPDIST)\NGL$(MOZ_BITS)_D.OBJ #//----------------------------------------------------------------------- CFGFILE=$(OBJDIR)\cmd.cfg +INCS=$(INCS) -I$(PUBLIC) -I$(DIST)\include -I$(XPDIST)\include\nspr -INCS=$(INCS) -I$(PUBLIC) -I$(DIST)\include -I$(PUBLIC)\nspr +!ifdef MOZ_TRACK_MODULE_DEPS +# use perl to translate REQUIRES into a proper include line +# using \1 instead of $1 because nmake barfs on $1 +!if [echo $(REQUIRES) | perl -pe "s/(\w+)/-I$(XPDIST:\=\\)\\include\\\1/g; print \"REQINCS=$_\";" > reqincs.inc] +!endif + +!include reqincs.inc + +# delete the temporary file +!if [del reqincs.inc] +!endif + +INCS=$(INCS) $(REQINCS) +!endif !if "$(MOZ_BITS)" == "16" CFLAGS=$(MOZ_JAVA_FLAG) -DEDITOR $(OS_CFLAGS) $(MOZ_CFLAGS)