Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Experiments / Attic / Security / security.build
blob6c9ad49061e4b31b904e6b7f66952b45332dfcea
1 <?xml version="1.0" encoding='iso-8859-1' ?>
2 <project name="castle-service-security" default="build">
4 <property name="base.dir" value="${path::get-full-path( project::get-base-directory() )}" />
5 <property name="bin.dir" value="${base.dir}/bin" />
7 <include buildfile="../../common.xml" />
9 <property name="name" value="Castle.Services.Security" />
10 <property name="test.name" value="${name}.Tests" />
12 <property name="assembly.name" value="${name}.dll" />
13 <property name="test.assembly.name" value="${test.name}.dll" />
15 <property name="src.dir" value="${base.dir}/${name}" />
16 <property name="test.src.dir" value="${base.dir}/${test.name}" />
18 <property name="version" value="beta-1" />
20 <target name="clean">
21 <exec program="${caspol.file}" failonerror="false" verbose="true" workingdir="${base.dir}" unless="${skipcaspol}">
22 <arg value="-quiet" />
23 <arg value="-machine" />
24 <arg value="-rempset" />
25 <arg value="CastlePermissionSet" />
26 </exec>
27 <exec program="${gacutil.file}" failonerror="false" verbose="true" workingdir="${bin.dir}" unless="${skipcaspol}">
28 <arg value="/u" />
29 <arg value="${name}" />
30 </exec>
31 <delete>
32 <fileset basedir="${bin.dir}">
33 <include name="*.dll" />
34 </fileset>
35 </delete>
36 <mkdir dir="${bin.dir}" />
37 <mkdir dir="../bin" />
38 </target>
40 <target name="init" depends="clean">
41 </target>
43 <target name="build" depends="init,install,tests.run,copy" />
45 <target name="copy">
46 <copy file="${bin.dir}/${assembly.name}" todir="../bin" />
47 <copy file="${bin.dir}/${name}.xml" todir="../bin" />
48 <copy file="${bin.dir}/${name}.pdb" todir="../bin" if="${debug}" />
49 </target>
51 <target name="install" depends="compile">
52 <exec program="${gacutil.file}" failonerror="true" verbose="true" workingdir="${bin.dir}" unless="${skipcaspol}">
53 <arg value="/i" />
54 <arg value="${assembly.name}" />
55 </exec>
56 <exec program="${caspol.file}" failonerror="true" verbose="true" workingdir="${base.dir}" unless="${skipcaspol}">
57 <arg value="-quiet" />
58 <arg value="-machine" />
59 <arg value="-addpset" />
60 <arg value="castlepermissionset.xml" />
61 </exec>
62 </target>
64 <target name="compile" depends="init">
65 <csc
66 define="${strong}"
67 target="library"
68 debug="${debug}"
69 optimize="${optimize}"
70 output="${bin.dir}/${assembly.name}"
71 doc="${bin.dir}/${name}.xml">
73 <nowarn>
74 <warning number="1591" />
75 <warning number="1572" />
76 </nowarn>
78 <sources basedir="${src.dir}" defaultexcludes="true">
79 <include name="**/*.cs" />
80 </sources>
82 <references>
83 <include name="${bin.dir}/*.dll" />
84 </references>
85 </csc>
86 </target>
88 <target name="tests.compile" depends="compile">
89 <csc
90 target="library"
91 debug="${debug}"
92 output="${bin.dir}/${test.assembly.name}">
94 <sources basedir="${test.src.dir}" defaultexcludes="true">
95 <include name="**/*.cs" />
96 </sources>
98 <references>
99 <include name="${nunit.framework.dll}" />
100 <include name="${bin.dir}/*.dll" />
101 </references>
102 </csc>
103 </target>
105 <target name="tests.run" depends="tests.compile">
106 <nunit2 >
107 <formatter type="${nunit.formatter}" />
108 <test assemblyname="${bin.dir}/${test.assembly.name}" />
109 </nunit2>
110 </target>
112 <target name="docs">
113 <ndoc failonerror="true">
114 <assemblies basedir="${bin.dir}">
115 <include name="${assembly.name}" />
116 </assemblies>
117 <documenters>
118 <documenter name="MSDN">
119 <property name="OutputTarget" value="HTMLHelp" />
120 <property name="Preliminary" value="true" />
121 <property name="CleanIntermediates" value="true" />
122 <property name="SdkLinksOnWeb" value="true" />
123 <property name="AutoPropertyBackerSummaries" value="true" />
124 <property name="AutoDocumentConstructors" value="true" />
125 <property name="OutputDirectory" value="${doc.dir}" />
126 <property name="HtmlHelpName" value="${name}" />
127 <property name="IncludeFavorites" value="False" />
128 <property name="Title" value="Castle Common Services - ${name}" />
129 <property name="SplitTOCs" value="False" />
130 <property name="DefaulTOC" value="Windsor" />
131 <property name="ShowVisualBasic" value="True" />
132 <property name="ShowMissingSummaries" value="False" />
133 <property name="ShowMissingRemarks" value="False" />
134 <property name="ShowMissingParams" value="False" />
135 <property name="ShowMissingReturns" value="False" />
136 <property name="ShowMissingValues" value="False" />
137 <property name="DocumentInternals" value="False" />
138 <property name="DocumentProtected" value="True" />
139 <property name="DocumentPrivates" value="False" />
140 <property name="DocumentEmptyNamespaces" value="False" />
141 <property name="IncludeAssemblyVersion" value="True" />
142 <property name="CopyrightText" value="Copyright 2004,2005 - Castle Project (original author or authors)" />
143 <property name="CopyrightHref" value="http://www.castleproject.org" />
144 </documenter>
145 </documenters>
146 </ndoc>
147 </target>
149 <target name="dist" depends="docs">
150 <zip zipfile="${name}.src.zip">
151 <fileset basedir="${base.dir}">
152 <include name="License.txt" />
153 <include name="Readme.txt" />
154 <include name="Changes.txt" />
155 <include name="*.build" />
156 <include name="*.sln" />
157 <include name="${src.dir}/**/*.*" />
158 <include name="${test.src.dir}/**/*.*" />
159 <include name="${library.dir}/**/*.*" />
161 <exclude name="**/Debug/*" />
162 <exclude name="**/obj/*" />
163 <exclude name="**/*.user" />
164 <exclude name="**/*.suo" />
165 </fileset>
166 </zip>
167 <zip zipfile="${name}.${version}.zip">
168 <fileset basedir="${base.dir}">
169 <include name="${bin.dir}/${assembly.name}" />
170 <include name="${library.dir}/**/*.*" />
171 <include name="License.txt" />
172 <include name="Readme.txt" />
173 <include name="Changes.txt" />
174 <include name="${name}.src.zip" />
175 <include name="${doc.dir}/${name}.chm" />
176 </fileset>
177 </zip>
178 <delete file="${name}.src.zip" />
179 </target>
181 </project>