From: Michael D. <mik...@us...> - 2004-05-14 12:09:10
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10975/src/NHibernate Modified Files: nhibernate.build Log Message: major overhaul of build files in preparation for build 3. Thanks to NAnt for providing a good build file that I shamelessly used to make up NHibernate's build files. Index: nhibernate.build =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/nhibernate.build,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** nhibernate.build 6 May 2004 20:55:53 -0000 1.9 --- nhibernate.build 14 May 2004 12:08:56 -0000 1.10 *************** *** 1,24 **** <?xml version="1.0" ?> - <project name="NHibernate" default="buildDebug" basedir="." xmlns="http://nant.sf.net/schemas/nant-0.84.win32.net-1.0.xsd"> - <property name="nant.settings.currentframework" value="net-1.1" /> ! <property name="external.bin" value="../../external-bin" /> ! <target name="buildDebug"> ! <delete dir="bin/Debug" failonerror="false" /> ! <mkdir dir="bin/Debug" /> ! <csc target="library" output="bin/Debug/NHibernate.dll" debug="true"> ! <references> ! <includes name="System.dll" /> ! <includes name="System.XML.dll" /> ! <includes name="System.Data.dll" /> ! <includes name="${external.bin}/log4net.dll" /> ! </references> ! <resources prefix="NHibernate" dynamicprefix="true"> ! <includes name="*.xsd" /> ! <includes name="**/*.xml" /> ! <excludes name="bin/**/*.xml" /> ! </resources> ! <sources> <includes name="**/*.cs" /> <excludes name="Eg/**" /> --- 1,29 ---- <?xml version="1.0" ?> ! <project ! name="NHibernate" ! default="build" ! xmlns="http://nant.sf.net/schemas/nant-0.84.win32.net-1.0.xsd" ! > ! ! <!-- ! Required properties: ! * build.dir - (path) root level to build to, assemblies will go in ${build.dir}/bin ! * build.debug - (true|false) debug build? ! * current.build.defines - framework-specific build defines ! --> ! ! <target name="build" description="Build NHibernate"> ! ! <csc ! target="library" ! define="${current.build.defines}" ! debug="${build.debug}" ! output="${build.dir}/bin/${nant.project.name}.dll" ! doc="${build.dir}/bin/${nant.project.name}.xml" ! > ! ! <sources failonempty="true"> <includes name="**/*.cs" /> <excludes name="Eg/**" /> *************** *** 35,57 **** <excludes name="Tool/hbm2net/*.cs" /> </sources> - </csc> - <copy todir="bin/Debug"> - <fileset basedir="${external.bin}"> - <includes name="log4net.*" /> - </fileset> - </copy> - </target> - - <target name="buildRelease"> - <delete dir="bin/Release" failonerror="false" /> - <mkdir dir="bin/Release" /> - <csc target="library" output="bin/Release/NHibernate.dll" debug="false"> - <references> - <includes name="System.dll" /> - <includes name="System.XML.dll" /> - <includes name="System.Data.dll" /> - <includes name="${external.bin}/log4net.dll" /> - </references> <resources prefix="NHibernate" dynamicprefix="true"> <includes name="*.xsd" /> --- 40,44 ---- *************** *** 59,96 **** <excludes name="bin/**/*.xml" /> </resources> - <sources> - <includes name="**/*.cs" /> - <excludes name="Eg/**" /> - <excludes name="InternalTest/**/*.cs" /> - <excludes name="Test/**/*.cs" /> - <excludes name="Util/*Test.cs" /> - <excludes name="Dialect/DB2Dialect.cs" /> - <excludes name="Dialect/HSQLDialect.cs" /> - <excludes name="Dialect/InterbaseDialect.cs" /> - <excludes name="Dialect/Oracle9Dialect.cs" /> - <excludes name="Dialect/OracleDialect.cs" /> - <excludes name="Dialect/SAPDBDialect.cs" /> - <excludes name="Sql/ANSIOuterJoinFragment.cs" /> - <excludes name="Tool/hbm2net/*.cs" /> - </sources> - </csc> - <copy todir="bin/Release"> - <fileset basedir="${external.bin}"> - <includes name="log4net.*" /> - </fileset> - </copy> </target> - <!-- - <csc target="exe" output="bin/nant/hbm2ddl.exe" debug="false"> - <references> - - - <includes name="bin/nant/NHibernate.dll" /> - - - <includes name="bin/Debug/NHibernate.dll" /> - </references> - <sources> - <includes name="Tool/hbm2ddl/SchemaExport.cs" /> - </sources> - </csc> - --> </project> \ No newline at end of file --- 46,60 ---- <excludes name="bin/**/*.xml" /> </resources> + <references basedir="${build.dir}/bin"> + <includes name="System.dll" /> + <includes name="System.XML.dll" /> + <includes name="System.Data.dll" /> + <includes name="log4net.dll" /> + </references> + + </csc> + </target> </project> \ No newline at end of file |