Hi all, newbie alert. In the cl task, there is a <defines> entry like so:
<cl outputdir="..\bin\${output.directory}" options="${compiler.options}"> <defines> <define name="_DEBUG"> ... </defines> <sources> <include name="*.cpp" /> </sources> </cl> I have several defines that differ based upon which product I'm building from a set of source code files. Managing these defines for all these different configurations is getting kind of messy in my script. My question is can I set up a variable or property or something that contains the list of defines? For example, I may want to define FOO1, FOO2 and FOO3, and then for two different builds define _DEBUG and NDEBUG respectively. Then of course the result would be that for the first build defines would be FOO1, FOO2, FOO3 and _DEBUG, and the second build would be FOO1, FOO2, FOO3 and NDEBUG. Is there a reasonably easy way to do this based upon the value of some property? I have a property that gets set up like this: <target name="properties.debug"> <property name="compile.type" value="true" /> </target> <target name="properties.release"> <property name="compile.type" value="false" /> </target> Can that be used to configure the defines list? Thanks! -Kelly ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users