/[managedwinapi-0.3]/nant.build
ViewVC logotype

Contents of /nant.build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (show annotations) (download)
Mon Jun 3 05:16:01 2013 UTC (6 years, 2 months ago) by william
File size: 3727 byte(s)


1 <?xml version="1.0"?>
2 <project name="ManagedWinapi" default="build">
3
4 <!-- Path to Microsoft Visual Studio 2005 command line version to compile stuff -->
5 <property name="devenv.path" value="d:\Progs\Microsoft Visual Studio 8\Common7\IDE\devenv"/>
6
7 <target name="clean">
8 <delete dir="build"/>
9 <delete dir="dist"/>
10 <exec program="${devenv.path}" verbose="True">
11 <arg value="ManagedWinapi.sln"/>
12 <arg value="/clean"/>
13 <arg value="Release"/>
14 </exec>
15 <exec program="${devenv.path}" verbose="True">
16 <arg value="ManagedWinapi.sln"/>
17 <arg value="/clean"/>
18 <arg value="Debug"/>
19 </exec>
20 <foreach item="File" property="solutionfile">
21 <in>
22 <items>
23 <include name="Tools/*.sln"/>
24 </items>
25 </in>
26 <do>
27 <exec program="${devenv.path}" verbose="True">
28 <arg value="${solutionfile}"/>
29 <arg value="/clean"/>
30 <arg value="Debug"/>
31 </exec>
32 <exec program="${devenv.path}" verbose="True">
33 <arg value="${solutionfile}"/>
34 <arg value="/clean"/>
35 <arg value="Release"/>
36 </exec>
37 </do>
38 </foreach>
39 </target>
40
41 <target name="build-dll">
42 <mkdir dir="build/bin" />
43 <exec program="${devenv.path}" verbose="True">
44 <arg value="ManagedWinapi.sln"/>
45 <arg value="/build"/>
46 <arg value="Release"/>
47 </exec>
48 <copy file="ManagedWinapi\bin\release\ManagedWinapi.dll"
49 todir="build/bin"/>
50 <copy file="ManagedWinapi\ManagedWinapiNativeHelper.dll"
51 todir="build/bin"/>
52 </target>
53
54 <target name="build" depends="build-dll">
55 <foreach item="Folder" property="toolpath">
56 <in>
57 <items>
58 <include name="Tools/*"/>
59 <exclude name="Tools/.svn"/>
60 <exclude name="Tools" />
61 </items>
62 </in>
63 <do>
64 <property name="toolname" value="${path::get-file-name(toolpath)}" />
65 <exec program="${devenv.path}" verbose="True">
66 <arg value="Tools/${toolname}.sln"/>
67 <arg value="/build"/>
68 <arg value="Release"/>
69 </exec>
70 <copy file="Tools/${toolname}/bin/Release/${toolname}.exe" todir="build/bin"/>
71 </do>
72 </foreach>
73 </target>
74
75 <target name="dist" depends="build">
76 <mkdir dir="dist/bin"/>
77 <mkdir dir="dist/tools"/>
78 <mkdir dir="dist/src"/>
79 <copy todir="dist/bin">
80 <fileset basedir="build/bin">
81 <include name="*.dll" />
82 <include name="*.chm" />
83 </fileset>
84 </copy>
85 <copy todir="dist/bin">
86 <fileset basedir=".">
87 <include name="COPYING"/>
88 <include name="readme.txt"/>
89 </fileset>
90 </copy>
91 <copy todir="dist/tools">
92 <fileset basedir="build/bin">
93 <include name="*.dll" />
94 <include name="*.exe" />
95 </fileset>
96 </copy>
97 <copy todir="dist/tools">
98 <fileset basedir=".">
99 <include name="COPYING"/>
100 <include name="readme.txt"/>
101 </fileset>
102 </copy>
103 <copy todir="dist/src">
104 <fileset basedir=".">
105 <include name="COPYING"/>
106 <include name="ManagedWinap.shfb"/>
107 <include name="ManagedWinapi.sln"/>
108 <include name="nant.build"/>
109 <include name="readme.txt"/>
110 <include name="ManagedWinapiNativeHelper/*"/>
111 <include name="ManagedWinapi/**"/>
112 <include name="Tools/**"/>
113 <exclude name="**/*.suo"/>
114 <exclude name="**/*.csproj.user" />
115 <exclude name="**/bin/**"/>
116 <exclude name="**/obj/**"/>
117 </fileset>
118 </copy>
119 </target>
120 </project>

  ViewVC Help
Powered by ViewVC 1.1.22