MSVS option to "Exclude From Build" supported?

Jaren Johnston <[email protected]> Fri, 8 May 2009 15:41:01 -0400
Newsgroups gmane.comp.sysutils.bakefile.devel
Message-ID <7067752E611EE94B8CA5E37466F171343A90D21E93@VMBX102.ihostexchange.net>
Hey all,

I use this option when building libraries that support both Win32 & Pocket PC 2003 (ARMV4) platforms.  Sometimes I'll need files for one but not the other, but want to bundle them all in the same VS project.  (In case you've not used this feature: from the IDE, open the properties page for an individual file and the option is under Configuration Properties/General.  You can enable or disable individual files for configurations & platforms independently.  I'm using VS2005 and haven't confirmed other versions.)

E.g., say I've got a Utils library that among other things includes a TimeCE.cpp file for date/time functions that went missing under WinCE.  I need it for CE but definitely don't want it for Win32 or Linux, etc.

Does Bakefile currently support this?

I've tried a number of variations using conditions triggering off of FORMAT, PLATFORM_WIN32 and MSVS_PLATFORM, wrapping the <lib> target, or the <sources> tag, or a variable SOURCES with <if> conditions or cond attributes.  modify-target hasn't worked.  I either get a project that enables the file for all platforms, doesn't include the file at all, or a Bakefile error that only a weak condition is allowed at that particular spot.

At this point I'm out of tweaking ideas and thought I'd ask the obvious question.  Seems like the Bakefile syntax supports it (any number of ways) but maybe the tool doesn't (yet)?

Thanks in advance,
Jaren



------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com