blob: 6a9e572223cf4d6793103b0ab257fa4a10d3fa77 [file] [log] [blame]
<!--
Build file for the Windows IE Plugin installer. This build should only be
run on a Windows system with WIX installed. You can download WIX at:
http://wix.sourceforge.net/
-->
<project name="ieInstaller" default="build" basedir=".">
<property name="gwt.root" location="../../../" />
<property name="project.tail" value="plugins/ie/installer" />
<import file="../../../common.ant.xml" />
<property name="wix.bin"
location="C:/Program Files/Windows Installer XML v3/bin" />
<property name="wix.log" location="${project.build}/wix.log" />
<property name="installer.name" value="gwt-dev-plugin.msi" />
<target name="build" description="Build the installer">
<mkdir dir="${project.build}" />
<echo message="Preparing WIX script for oophm.dll" />
<exec executable="${wix.bin}/heat.exe"
dir="../prebuilt"
failonerror="yes"
output="${wix.log}">
<arg line="file oophm.dll" />
<arg line="-out ${project.build}/oophm.wxs.xml" />
<arg line="-ag -g1" />
<arg line="-dr INSTALLDIR" />
<arg line="-cg oophmDll" />
<arg line="-var var.SourceDir" />
</exec>
<echo message="Compiling WIX scripts" />
<exec executable="${wix.bin}/candle.exe"
failonerror="yes"
output="${wix.log}"
append="true">
<arg line="-out ${project.build}/" />
<arg line="-dSourceDir=..\\" />
<arg line="${project.build}/oophm.wxs.xml" />
<arg line="installer.wxs.xml" />
</exec>
<echo message="Generating Windows Installer" />
<exec executable="${wix.bin}/light.exe"
failonerror="yes"
output="${wix.log}"
append="true">
<arg line="-o ${project.build}/${installer.name}" />
<arg line="${project.build}/oophm.wxs.wixobj" />
<arg line="${project.build}/installer.wxs.wixobj" />
</exec>
<echo message="Copying Windows Installer to prebuilt directory" />
<copy file="${project.build}/${installer.name}"
tofile="../prebuilt/${installer.name}" />
</target>
</project>