Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 80203 invoked from network); 19 Oct 2007 09:44:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Oct 2007 09:44:14 -0000 Received: (qmail 87874 invoked by uid 500); 19 Oct 2007 09:44:02 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 87843 invoked by uid 500); 19 Oct 2007 09:44:02 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 87832 invoked by uid 99); 19 Oct 2007 09:44:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2007 02:44:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2007 09:44:06 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6C6951A9832; Fri, 19 Oct 2007 02:43:46 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r586350 - in /apr/apr-iconv/trunk: build/modules.mk.win ccs/Makefile.win ces/Makefile.win Date: Fri, 19 Oct 2007 09:43:45 -0000 To: commits@apr.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071019094346.6C6951A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: wrowe Date: Fri Oct 19 02:43:45 2007 New Revision: 586350 URL: http://svn.apache.org/viewvc?rev=586350&view=rev Log: Having gone 12 rounds with VC8, it finally agrees with me. That is, provided we share one pdb used which corresponds to the precompiled pch, and in the process I determined a much cleaner solution to generating the pch without goofy shell if exist's ( ). Modified: apr/apr-iconv/trunk/build/modules.mk.win apr/apr-iconv/trunk/ccs/Makefile.win apr/apr-iconv/trunk/ces/Makefile.win Modified: apr/apr-iconv/trunk/build/modules.mk.win URL: http://svn.apache.org/viewvc/apr/apr-iconv/trunk/build/modules.mk.win?rev=586350&r1=586349&r2=586350&view=diff ============================================================================== --- apr/apr-iconv/trunk/build/modules.mk.win (original) +++ apr/apr-iconv/trunk/build/modules.mk.win Fri Oct 19 02:43:45 2007 @@ -193,8 +193,7 @@ API_SOURCE = .. OUTPUT_DIR = $(API_SOURCE)\$(CFG_OUTPUT) -INT_CFLAGS = /nologo $(CFG_CFLAGS) /Fd"$(OUTPUT_DIR)\iconv_src" \ - /Fp"$(PCH)" \ +INT_CFLAGS = /nologo $(CFG_CFLAGS) /Fd$(MODRES).pdb /Fp$(MODRES).pch \ /I "$(API_SOURCE)\include" /I "$(API_SOURCE)\lib" \ /I "$(APR_SOURCE)\include" \ /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" @@ -207,23 +206,23 @@ LDFLAGS = ALL_LDFLAGS = $(INT_LDFLAGS) $(LDFLAGS) -all: $(OUTPUT_DIR) $(ALL_TARGETS) +all: $(OUTPUT_DIR) $(MODRES).pch $(ALL_TARGETS) $(OUTPUT_DIR): - -$(SILENT)if not exist "$(OUTPUT_DIR)\$(NULL)" mkdir "$(OUTPUT_DIR)" + $(SILENT)if not exist "$(OUTPUT_DIR)\$(NULL)" mkdir "$(OUTPUT_DIR)" + +$(MODRES).pch: + echo #define ICONV_INTERNAL > $*.c + echo #include "iconv.h" >> $*.c + $(SILENT)cl $(ALL_CFLAGS) /Fo$*.obj /Yciconv.h /c $*.c .c{$(OUTPUT_DIR)}.so: - $(SILENT)if not exist "$(OUTPUT_DIR)\iconv.pch" ( \ - echo Precompiling iconv.pch from iconv.h & \ - cl $(ALL_CFLAGS) /Yc"iconv.h" /Fo"$*.obj" /c $< \ - ) else ( \ - cl $(ALL_CFLAGS) /Yu"iconv.h" /Fo"$*.obj" /c $< \ - ) + $(SILENT)cl $(ALL_CFLAGS) /Fo$*.obj /Yuiconv.h /c $< $(SILENT)link $(ALL_LDFLAGS) $*.obj $(API_LIBS) /out:$@ \ - /base:@"..\build\BaseAddr.ref",$(@F) & \ - ( if exist $@.manifest \ - mt -manifest $@.manifest -outputresource:$@;2 ) & \ - del "$*.exp" & del "$*.lib" + /base:@"..\build\BaseAddr.ref",$(@F) + $(SILENT)if exist $@.manifest \ + $(SILENT)mt -nologo -manifest $@.manifest -outputresource:$@;2 + $(SILENT)del "$*.exp" & del "$*.lib" # The rebase target below is used only to *regenerate* the BaseAddr.ref file # if the module list or sizes change considerably. Use the rebase target to Modified: apr/apr-iconv/trunk/ccs/Makefile.win URL: http://svn.apache.org/viewvc/apr/apr-iconv/trunk/ccs/Makefile.win?rev=586350&r1=586349&r2=586350&view=diff ============================================================================== --- apr/apr-iconv/trunk/ccs/Makefile.win (original) +++ apr/apr-iconv/trunk/ccs/Makefile.win Fri Oct 19 02:43:45 2007 @@ -197,6 +197,6 @@ $(OUTPUT_DIR)\windows-1258.so REBASE_TOP = 0x6ED50000 -PCH=$(OUTPUT_DIR)\ccsiconv.pch +MODRES=$(OUTPUT_DIR)\ccsiconv !INCLUDE ../build/modules.mk.win Modified: apr/apr-iconv/trunk/ces/Makefile.win URL: http://svn.apache.org/viewvc/apr/apr-iconv/trunk/ces/Makefile.win?rev=586350&r1=586349&r2=586350&view=diff ============================================================================== --- apr/apr-iconv/trunk/ces/Makefile.win (original) +++ apr/apr-iconv/trunk/ces/Makefile.win Fri Oct 19 02:43:45 2007 @@ -17,6 +17,6 @@ $(OUTPUT_DIR)\utf-8.so REBASE_TOP = 0x6EE50000 -PCH=$(OUTPUT_DIR)\cesiconv.pch +MODRES=$(OUTPUT_DIR)\cesiconv !INCLUDE ../build/modules.mk.win