/Ninject.Extensions.Interception.build
Bazel | 111 lines | 104 code | 7 blank | 0 comment | 0 complexity | 0de03285d84112ec08ebfba5a8c5100e MD5 | raw file
Possible License(s): Apache-2.0, LGPL-3.0, MPL-2.0-no-copyleft-exception
- <?xml version="1.0" encoding="utf-8"?>
- <project name="Ninject" default="build">
- <property name="version" value="2.2.0.0" overwrite="true"/>
- <property name="product.name" value="Ninject.Extensions.Interception" overwrite="false"/>
- <property name="product.company" value="Ninject Project Contributors" overwrite="false"/>
- <property name="product.duration" value="2008-2012" overwrite="false"/>
- <property name="product.description" value="Interception extension for Ninject" overwrite="false"/>
- <property name="product.platforms" value="net-3.5-client,net-4.0-client,net-4.5-client,silverlight-5.0,silverlight-4.0,silverlight-3.0" overwrite="false"/>
- <property name="product.buildserverPlatforms" value="net-3.5-client,net-4.0-client,silverlight-5.0,silverlight-4.0,silverlight-3.0" overwrite="false"/>
- <property name="dependencies" value="Ninject" overwrite="false"/>
- <include buildfile="Ninject.include" />
- <include buildfile="Ninject.Extensions.Interception.DynamicProxy.build" />
- <include buildfile="Ninject.Extensions.Interception.LinFu.build" />
-
- <target name="all" depends="core buildDynamicProxy buildLinFu test silverlight-test"/>
- <target name="nuget-all" depends="nuget nuget-dp2 nuget-linfu"/>
- <target name="core" depends="init">
- <property name="LinFuTests" value="false"/>
- <csc noconfig="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}" output="${current.path.build}/${product.assembly}" doc="${current.path.build}/${product.docfile}" keyfile="${path.src}/${product.keyfile}">
- <arg line="/filealign:512" unless="${nant.settings.currentframework == 'mono-2.0'}"/>
- <sources basedir="${path.src}">
- <include name="${build.asminfo}"/>
- <include name="${product.name}/**/*.cs"/>
- </sources>
- <references>
- <include name="mscorlib.dll"/>
- <include name="System.dll"/>
- <include name="System.Core.dll"/>
- <include name="${path.lib}/Ninject/${build.platform}/Ninject.dll"/>
- </references>
- </csc>
- </target>
-
- <target name="compile-tests" depends="core" unless="${skip.tests}" if="${not(string::contains(build.platform, 'silverlight') or build.platform == 'netcf-3.5')}">
- <mkdir dir="${current.path.test}"/>
- <call target="CopyDefaultTestInfrastructureAssemblies"/>
- <csc noconfig="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}"
- output="${current.path.test}/${product.assembly.test}">
- <sources basedir="${path.src}">
- <include name="${product.name}.Test/**/*.cs"/>
- <exclude name="${product.name}.Test/**/*LinFu*.cs" unless="${LinFuTests}"/>
- </sources>
- <references basedir="${current.path.test}">
- <include name="mscorlib.dll"/>
- <include name="System.dll"/>
- <include name="System.Core.dll"/>
- <include name="System.Windows.Forms.dll"/>
- <include name="System.ServiceModel.dll"/>
- <include name="Moq.dll"/>
- <include name="xunit.dll"/>
- <include name="FluentAssertions.dll"/>
- <include name="${product.assembly}"/>
- <include name="${product.assembly.DynamicProxy}"/>
- <include name="${product.assembly.LinFu}"/>
- <include name="${current.path.lib.DynamicProxy}/Castle.Core.dll"/>
- <include name="${current.path.lib.LinFu}/LinFu.DynamicProxy.dll"/>
- <include name="${path.lib}/Ninject/${build.platform}/Ninject.dll"/>
- </references>
- <nowarn>
- <warning number="1584"/>
- </nowarn>
- </csc>
- </target>
-
- <target name="compile-silverlight-tests" depends="core" unless="${skip.tests or skip.silverlightTests}" if="${string::contains(build.platform, 'silverlight')}">
- <mkdir dir="${current.path.test}"/>
- <call target="CopyDefaultTestInfrastructureAssemblies-SL"/>
-
- <csc noconfig="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}"
- output="${current.path.test}/${product.assembly.silverlighttestdll}">
- <sources basedir="${path.src}">
- <include name="${product.name}.Test/**/*.cs"/>
- <include name="${product.name}.SilverlightTests/*.cs"/>
- <exclude name="${product.name}.Test/MSTestAttributes/*.cs"/>
- </sources>
- <references basedir="${current.path.test}">
- <include name="mscorlib.dll"/>
- <include name="System.dll"/>
- <include name="System.Core.dll"/>
- <include name="System.Windows.dll"/>
- <include name="System.Windows.Browser.dll"/>
- <include name="System.Net.dll"/>
- <include name="Microsoft.Phone.dll" if="${string::contains(build.platform, 'wp7')}"/>
- <include name="Microsoft.Phone.Interop.dll" if="${string::contains(build.platform, 'wp7')}"/>
- <include name="Moq.Silverlight.dll" unless="${string::contains(build.platform, 'wp7')}"/>
- <include name="xunit.runner.silverlight.dll"/>
- <include name="xunit-silverlight.dll"/>
- <include name="FluentAssertions.Silverlight.dll"/>
- <include name="${product.assembly}"/>
- <include name="${product.assembly.DynamicProxy}"/>
- <include name="${current.path.lib.DynamicProxy}/Castle.Core.dll"/>
- <include name="${path.lib}/Ninject/${build.platform}/Ninject.dll"/>
- <include name="${path.lib}/Silverlight/${build.platform}/System.ServiceModel.dll"/>
- </references>
- <nowarn>
- <warning number="1584"/>
- </nowarn>
- </csc>
- <zip zipfile="${current.path.test}/${product.assembly.silverlighttest}">
- <fileset basedir="${current.path.test}">
- <include name="*.dll" />
- </fileset>
- <fileset basedir="${path.src}/${product.name}.SilverlightTests">
- <include name="AppManifest.xaml"/>
- </fileset>
- </zip>
- </target>
- </project>