From: Curt A. <ca...@ho...> - 2003-08-07 04:26:35
|
Inger, Matthew wrote: > would it be possible to have something like the following in the CC task? > > <syslibset if="windows"> > <libset dir="${oledbpro.lib.dir}" libs="OleDB25R" unless="is-debug" /> > <libset dir="${oledbpro.lib.dir}" libs="OleDB25D" if="is-debug" /> > </syslibset> > > basically, the point is to nest "libset" objects so that any outer > libset can > have an "if" tag. The problem i'm trying to solve here is that any > windows compiler > for our project has to include "OleDB25" library. However, if it's a > debug compile, > we need "OleDB25D" and for release "OleDB25R". I know i could > accomplish the > same thing by : > > <condition property="use-oledb25-debug"> > <and><os family="windows" /><equals arg1="${debug}" value="true" > /></and> > </condition> > > and switching on that, but it's much > The pattern of adding a suffix (say "D") after the filename for a debug lib is common enough that support for it could be added to <libset>, such as <libset dir="${oledbpro.lib.dir}" libs="OleDB25" debug-suffix="D" release-suffix="R" /> |