[bakefile-devel] Precomp and wxSTC...

Robin Dunn <[email protected]> Thu, 24 Jul 2003 14:10:13 -0700
Newsgroups gmane.text.documancer.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------020706030301040408030508
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi Vaclav,

I mentioned on wx-dev last night that I'm having troubles building wxSTC
using MSVC and the baked makefile.  I've found a partial solution that
I'll send here for comment.  Basically it adds new "auto" value for the
precomp-headers setting that will cause it to use just /YX instead of
/Yuwx/wxprec.h.  I can then add a line to the stc.blk to override the
"on" value inherited from the parent templates. The only issue (but a
minor one) is that it still builds dummy.obj.  I couldn't see a way to
turn that off in the derived template...

Thoughts?


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!


--------------020706030301040408030508
Content-Type: text/plain;
 name="bakefile.patch.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="bakefile.patch.txt"

--- bakefile-0.1.1.20030723/rules/makefile_defs_msvc.bkl	2003-07-24 14:01:43.000000000 -0700
+++ bakefile-0.1.1.20030723.orig/rules/makefile_defs_msvc.bkl	2003-07-23 14:48:34.000000000 -0700
@@ -106,7 +106,7 @@
                 <!-- FIXME: should be cppflags, this is temporary hack to
                 make wxWindows work -->
             <cxxflags> 
-		    $(substituteFromDict(value,{'on':__pch_flags, 'off':'', 'auto':'/YX'}))
+                $(substituteFromDict(value,{'on':__pch_flags, 'off':''}))
             </cxxflags>
         </define-tag>
         <define-tag name="precomp-headers-file">

--------------020706030301040408030508--