1 <?xml version=
"1.0" encoding='iso-
8859-
1'
?>
5 xmlns=
"http://nant.sf.net/release/0.85/nant.xsd"
8 <property name=
"root.dir" value=
".." />
9 <include buildfile=
"${root.dir}/common-project.xml" />
11 <target name=
"init" depends=
"common.init">
14 program=
"${wix.dir}/candle.exe"
15 resultproperty=
"wix.found"
16 failonerror=
"false" />
17 <property name=
"wix.found" value=
"${wix.found == '0'}" />
19 <fail message=
"ERROR: WiX not found, unable to create MSI" unless=
"${wix.found}"/>
20 <echo message=
"INFO: Found WiX at ${wix.dir}" if=
"${wix.found}"/>
23 <target name=
"build" description=
"Build ${project::get-name()}" depends=
"init">
24 <if test=
"${wix.found}">
25 <property name=
"build.setup.dir" value=
"${path::get-full-path(build.base.dir)}/setup" overwrite=
"false" />
26 <mkdir dir=
"${build.setup.dir}" />
27 <call target=
"wix-location-gen-include" />
28 <call target=
"wix-version-gen-include" />
29 <copy todir=
"${build.setup.dir}">
31 <include name=
"${src.dir}/*.txt" />
32 <include name=
"${src.dir}/*.wxs" />
33 <include name=
"${src.dir}/*.wxi" />
34 <include name=
"License.rtf" />
35 <exclude name=
"Status.txt"/>
38 <copy todir=
"${build.setup.dir}">
40 <include name=
"${src.dir}/Binary/*.*" />
43 <property name=
"build.msi.dir" value=
"${build.setup.dir}" overwrite=
"false" />
44 <property name=
"build.msi.file" value=
"castleproject-${project.major}.${project.minor}.${project.build}.${project.revision}.msi" overwrite=
"false" />
45 <property name=
"build.msi.fullpath" value=
"${build.msi.dir}/${build.msi.file}" readonly=
"true" />
47 program=
"${wix.dir}/candle.exe"
48 workingdir=
"${build.setup.dir}"
49 commandline=
"-nologo Castle.wxs UI.wxs Bin.wxs Docs.wxs ReleaseNotes.wxs Samples.wxs Sources.wxs WizardVs2005.wxs " />
50 <exec program=
"${wix.dir}/light.exe"
51 workingdir=
"${build.setup.dir}" verbose=
"true"
52 commandline='-wx -out ${build.msi.fullpath} Castle.wixobj UI.wixobj Bin.wixobj Docs.wixobj ReleaseNotes.wixobj Samples.wixobj Sources.wixobj WizardVs2005.wixobj
" '>
57 <target name="wix-location-gen-include
">
58 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="false
"><?xml version="1.0" encoding="utf-
8"?></echo>
59 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="true
"><Include Id="LocationInclude
"></echo>
60 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="true
"><?define BuildBaseDir="${path::get-full-path(build.base.dir)}
"?></echo>
61 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="true
"><?define BuildNet11Dir="${path::get-full-path(build.base.dir)}\net-
1.1\${project.config}
"?></echo>
62 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="true
"><?define BuildNet20Dir="${path::get-full-path(build.base.dir)}\net-
2.0\${project.config}
"?></echo>
63 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="true
"><?define ReleaseNotesDir="${releasenotes.dir}
"?></echo>
64 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="true
"><?define DocsDir="${docs.dir}
"?></echo>
65 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="true
"><?define SharedLibs="${path::get-full-path('${root.dir}\..\..\SharedLibs')}
"?></echo>
67 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="true
"><?define WizardDir="${path::get-full-path(root.dir)}\Tools\VSNetWizards
"?></echo>
68 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="true
"><?define VSTemplates70="${path::get-full-path(root.dir)}\Tools\VSNetWizards\CastleTemplates\VS7
"?></echo>
69 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="true
"><?define VSTemplates80="${path::get-full-path(root.dir)}\Tools\VSNetWizards\CastleTemplates\VS8
"?></echo>
71 <echo file="${build.setup.dir}/LocationInclude.wxi
" append="true
"></Include></echo>
74 <target name="wix-version-gen-include
">
75 <echo file="${build.setup.dir}/VersionNumberInclude.wxi
" append="false
"><?xml version="1.0" encoding="utf-
8"?></echo>
76 <echo file="${build.setup.dir}/VersionNumberInclude.wxi
" append="true
"><Include Id="VersionNumberInclude
"></echo>
77 <echo file="${build.setup.dir}/VersionNumberInclude.wxi
" append="true
"><?define MajorVersion="${project.major}
"?></echo>
78 <echo file="${build.setup.dir}/VersionNumberInclude.wxi
" append="true
"><?define MinorVersion="${project.minor}
"?></echo>
79 <echo file="${build.setup.dir}/VersionNumberInclude.wxi
" append="true
"><?define MicroVersion="${project.build}
"?></echo>
80 <echo file="${build.setup.dir}/VersionNumberInclude.wxi
" append="true
"><?define BuildVersion="${project.revision}
"?></echo>
81 <echo file="${build.setup.dir}/VersionNumberInclude.wxi
" append="true
"></Include></echo>