Opentk/Installers/Nsis/Build.Installer.Nsis.csproj
2010-10-04 21:28:58 +00:00

46 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)' == 'Documentation'">
<OutputPath>.</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<OutputPath>.</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<OutputPath>.</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Nsis'">
<OutputPath>.</OutputPath>
<PlatformTarget>AnyCPU</PlatformTarget>
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup>
<Import Project="..\..\Source\Build.Tasks\Common.xml" />
<PropertyGroup>
<ProjectGuid>{ADC34399-7613-44D2-90B2-19250F06FE7A}</ProjectGuid>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<ItemGroup>
<None Include="opentk.nsi" />
</ItemGroup>
<Target Name="Build">
<DateStamp>
<Output TaskParameter="Date" PropertyName="ShortDate" />
</DateStamp>
<Run Command="makensis opentk.nsi" />
<Copy SourceFiles=".\opentk.exe" DestinationFiles="..\..\opentk-1.0.$(ShortDate).exe" />
</Target>
<Target Name="Clean">
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<FilesToDelete Include=".\opentk.exe;..\..\opentk-1.0.*.exe" />
</ItemGroup>
<Delete Files="@(FilesToDelete)" Condition="'$(OS)' == 'Windows_NT'" />
<Exec Command="rm .\opentk.exe" Condition="'$(OS)' != 'Windows_NT'" />
<Exec Command="rm ..\..\opentk-1.0.*.exe" Condition="'$(OS)' != 'Windows_NT'" />
</Target>
<Target Name="Rebuild">
<CallTarget Targets="Clean" />
<CallTarget Targets="Build" />
</Target>
</Project>