-
Notifications
You must be signed in to change notification settings - Fork 1
/
Ninject.Extensions.DependencyCreation.build
139 lines (129 loc) · 8.74 KB
/
Ninject.Extensions.DependencyCreation.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="utf-8"?>
<project name="Ninject" default="build">
<property name="version" value="0.0.0.0" overwrite="true"/>
<property name="product.name" value="Ninject.Extensions.DependencyCreation" overwrite="false"/>
<property name="product.company" value="Ninject Project Contributors" overwrite="false"/>
<property name="product.duration" value="2009-2012" overwrite="false"/>
<property name="product.description" value="Dependency Creation Extension for Ninject" overwrite="false"/>
<property name="product.platforms" value="net-3.5-client,net-4.0-client,net-4.5,silverlight-5.0,silverlight-4.0,silverlight-3.0,silverlight-2.0,silverlight-4.0-wp71,silverlight-4.0-wp7,mono-3.5,mono-4.0,netcf-3.5" overwrite="false"/>
<property name="product.buildserverPlatforms" value="net-3.5-client,net-4.0-client,silverlight-5.0,silverlight-4.0,silverlight-3.0,silverlight-2.0,mono-3.5,mono-4.0,netcf-3.5" overwrite="false"/>
<property name="dependencies" value="Ninject,Ninject.Extensions.ContextPreservation,Ninject.Extensions.NamedScope" overwrite="false"/>
<include buildfile="Ninject.include" />
<target name="all" depends="core test silverlight-test"/>
<target name="nuget-all" depends="nuget"/>
<target name="core" depends="init">
<property name="NoDynamicProxy" value = "false"/>
<property name="NoDynamicProxy" value = "true" if="${string::contains(build.platform, 'silverlight-2.0') or string::contains(build.platform, 'netcf-3.5') or string::contains(build.platform, 'wp7')}"/>
<property name="packagepath.DynamicProxy" value="Castle.Core.*/lib/net35" if="${string::contains(build.platform, 'net-3.5')}" />
<property name="packagepath.DynamicProxy" value="Castle.Core.*/lib/net40-client" if="${string::contains(build.platform, 'net-4.0')}" />
<property name="packagepath.DynamicProxy" value="Castle.Core.*/lib/net45" if="${string::contains(build.platform, 'net-4.5')}" />
<property name="packagepath.DynamicProxy" value="Castle.Core.*/lib/sl4" if="${string::contains(build.platform, 'silverlight-4.0')}" />
<property name="packagepath.DynamicProxy" value="Castle.Core.*/lib/sl5" if="${string::contains(build.platform, 'silverlight-5.0')}" />
<property name="packagepath.DynamicProxy" value="Castle.Core.*/lib/net35" if="${string::contains(build.platform, 'mono')}" />
<property name="current.path.lib.DynamicProxy" value="${path.packages}/${packagepath.DynamicProxy}" unless="${NoDynamicProxy}"/>
<property name="current.path.lib.DynamicProxy" value="${path.lib}" if="${NoDynamicProxy}" />
<copy todir="${current.path.build}/DynamicProxy/lib" unless="${NoDynamicProxy}">
<fileset basedir="${path.packages}">
<include name="${packagepath.DynamicProxy}/*.dll"/>
<include name="${packagepath.DynamicProxy}/*.xml"/>
</fileset>
</copy>
<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"/>
<arg value="-sdk:2" if="${string::contains(build.platform, 'mono-3.5')}"/>
<arg value="-sdk:4" if="${string::contains(build.platform, 'mono-4.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"/>
<include name="${path.lib}/Ninject.Extensions.ContextPreservation/${build.platform}/Ninject.Extensions.ContextPreservation.dll"/>
<include name="${current.path.lib.DynamicProxy}/Castle.Core.dll" unless="${NoDynamicProxy}"/>
</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}">
<arg value="-sdk:2" if="${string::contains(build.platform, 'mono-3.5')}"/>
<arg value="-sdk:4" if="${string::contains(build.platform, 'mono-4.0')}"/>
<sources basedir="${path.src}">
<include name="${product.name}.Test/**/*.cs"/>
</sources>
<references basedir="${current.path.test}">
<include name="mscorlib.dll"/>
<include name="System.dll"/>
<include name="System.Core.dll"/>
<include name="Moq.dll"/>
<include name="xunit.dll"/>
<include name="FluentAssertions.dll"/>
<include name="${product.assembly}"/>
<include name="${path.lib}/Ninject/${build.platform}/Ninject.dll"/>
<include name="${path.lib}/Ninject.Extensions.ContextPreservation/${build.platform}/Ninject.Extensions.ContextPreservation.dll"/>
<include name="${path.lib}/Ninject.Extensions.NamedScope/${build.platform}/Ninject.Extensions.NamedScope.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="Castle.Core.dll" if="${string::contains(build.platform, 'silverlight-4.0') or string::contains(build.platform, 'silverlight-5.0')}"/>
<include name="Castle.Core-Silverlight.dll" unless="${string::contains(build.platform, 'silverlight-4.0') or string::contains(build.platform, 'silverlight-5.0')}"/>
<include name="Castle.DynamicProxy-Silverlight.dll" unless="${build.platform == 'silverlight-4.0' or build.platform == 'silverlight-5.0'}"/>
<include name="xunit.runner.silverlight.dll"/>
<include name="xunit-silverlight.dll"/>
<include name="FluentAssertions.Silverlight.dll"/>
<include name="${product.assembly}"/>
<include name="${path.lib}/Ninject/${build.platform}/Ninject.dll"/>
<include name="${path.lib}/Ninject.Extensions.ContextPreservation/${build.platform}/Ninject.Extensions.ContextPreservation.dll"/>
<include name="${path.lib}/Ninject.Extensions.NamedScope/${build.platform}/Ninject.Extensions.NamedScope.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" unless="${NoDynamicProxy}" if="${string::contains(build.platform, 'silverlight-4.0') or string::contains(build.platform, 'silverlight-5.0')}"/>
</fileset>
<fileset basedir="${path.src}/${product.name}.SilverlightTests/NoProxyAppManifest">
<include name="AppManifest.xaml" if="${NoDynamicProxy and (string::contains(build.platform, 'silverlight-4.0') or string::contains(build.platform, 'silverlight-5.0'))}"/>
</fileset>
<fileset basedir="${path.src}/${product.name}.SilverlightTests/Silverlight3">
<include name="AppManifest.xaml" unless="${NoDynamicProxy or string::contains(build.platform, 'silverlight-4.0') or string::contains(build.platform, 'silverlight-5.0')}"/>
</fileset>
<fileset basedir="${path.src}/${product.name}.SilverlightTests/NoProxyAppManifest.Silverlight3">
<include name="AppManifest.xaml" if="${NoDynamicProxy}" unless="${string::contains(build.platform, 'silverlight-4.0') or string::contains(build.platform, 'silverlight-5.0')}"/>
</fileset>
</zip>
</target>
</project>