[pgsqlclient-checkins] pgsqlclient PGSqlClient.build,1.1.1.1,1.2
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-07-15 19:12:36
|
Update of /cvsroot/pgsqlclient/pgsqlclient In directory sc8-pr-cvs1:/tmp/cvs-serv18776 Modified Files: PGSqlClient.build Log Message: Updated NAnt build file for MS.NET Index: PGSqlClient.build =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient/PGSqlClient.build,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PGSqlClient.build 12 Jul 2003 08:11:20 -0000 1.1.1.1 --- PGSqlClient.build 15 Jul 2003 19:12:18 -0000 1.2 *************** *** 5,16 **** --- 5,20 ---- <property name="project.FormalName" value="PostgreSql.Data.PGSqlClient" /> <property name="project.version" value="1.0" /> + <!-- Build properties --> <property name="build.debug" value="true" /> <property name="build.define" value="_DEBUG" /> + <!-- Paths properties --> <property name="base.dir" value="." /> <property name="build.dir" value="build" /> <property name="src.dir" value="${project.FormalName}\source" /> + <property name="nunit.test.dir" value="PostgreSql.Data.PGSqlClient.UnitTests\source"/> <property name="resources.dir" value="${src.dir}\Resources" /> + <!-- Check for Html Help Compiler --> <target name="check-htmlhelp-compiler"> *************** *** 26,33 **** --- 30,54 ---- </ifnot> </target> + + <!-- Check for NUnit --> + <target name="check-nunit-framework"> + <ifnot propertyexists="nunit.framework.dll"> + <sysinfo /> + <property name="nunit.framework.dll" value="${sys.os.folder.programfiles}\NUnit V2.0\bin\nunit.framework.dll" + readonly="false" /> + </ifnot> + </target> + + <!-- Target for check build configuration --> + <target name="check-build-config" depends="clean"> + <call target="check-htmlhelp-compiler" /> + <call target="check-nunit-framework" /> + </target> + <!-- Target for clean destination directory --> <target name="clean" description="cleans build directory"> <delete dir="${build.dir}" failonerror="false" verbose="true" /> </target> + <!-- Target for build in DEBUG mode --> <target name="debug" depends="clean"> *************** *** 35,38 **** --- 56,60 ---- <call target="build-all" /> </target> + <!-- Target for build in RELEASE mode --> <target name="release" depends="clean"> *************** *** 41,56 **** <call target="build-all" /> </target> <!-- Target for check build configuration --> ! <target name="build-all"> ! <call target="build-pgsqlclient" /> ! <if propertyexists="htmlhelp.compiler"> ! <call target="build-sdk" /> ! </if> </target> <!-- Taget for build PGSqlClient .NET Data Provider Assembly --> <target name="build-pgsqlclient"> <mkdir dir="${build.dir}" /> <!-- compile PostgreSql.Data.PGSqlClient --> - <!-- doc="${build.dir}\${project.FormalName}.xml" --> <csc output="${build.dir}\${project.FormalName}.dll" target="library" debug="${build.debug}" define="${build.define}"> <sources> --- 63,79 ---- <call target="build-all" /> </target> + <!-- Target for check build configuration --> ! <target name="build-all" depends="check-build-config"> ! <call target="build-pgsqlclient" /> ! <if propertyexists="nunit.framework.dll"> ! <call target="build-nunit-tests" /> ! </if> </target> + <!-- Taget for build PGSqlClient .NET Data Provider Assembly --> <target name="build-pgsqlclient"> <mkdir dir="${build.dir}" /> <!-- compile PostgreSql.Data.PGSqlClient --> <csc output="${build.dir}\${project.FormalName}.dll" target="library" debug="${build.debug}" define="${build.define}"> <sources> *************** *** 68,75 **** </csc> </target> <!-- Target for build csUnit Tests --> ! <target name="build-csnit-tests"> <copy todir="${build.dir}"> ! <fileset basedir="${base.dir}/tests"> <includes name="${project.FormalName}.Tests.dll.config" /> </fileset> --- 91,99 ---- </csc> </target> + <!-- Target for build csUnit Tests --> ! <target name="build-nunit-tests"> <copy todir="${build.dir}"> ! <fileset basedir="${nunit.test.dir}"> <includes name="${project.FormalName}.Tests.dll.config" /> </fileset> *************** *** 78,82 **** <csc output="${build.dir}\${project.FormalName}.Tests.dll" target="library"> <sources> ! <includes name="${base.dir}/tests/**/*.cs" /> </sources> <references> --- 102,106 ---- <csc output="${build.dir}\${project.FormalName}.Tests.dll" target="library"> <sources> ! <includes name="${nunit.test.dir}/**/*.cs" /> </sources> <references> *************** *** 84,91 **** <absolute file="System.Data.dll" /> <absolute file="System.XML.dll" /> ! <absolute file="csUnit.dll" /> <includes name="${build.dir}/${project.FormalName}.dll" /> </references> </csc> ! </target> </project> --- 108,115 ---- <absolute file="System.Data.dll" /> <absolute file="System.XML.dll" /> ! <includes name="${nunit.framework.dll}"/> <includes name="${build.dir}/${project.FormalName}.dll" /> </references> </csc> ! </target> </project> |