<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Target Name="ILRepacker" AfterTargets="CopyFilesToOutputDirectory" Condition="'$(Configuration)' == 'Release' And '$(DisableILRepack)' != 'true'">
    <Exec Command='"ilrepack" /parallel /internalize /out:"$(TargetPath)" "$(TargetPath)" "$(TargetDir)protobuf-net.dll" "$(TargetDir)Quasar.Common.dll" "$(TargetDir)Gma.System.MouseKeyHook.dll" "$(TargetDir)AForge.dll" "$(TargetDir)AForge.Video.dll" "$(TargetDir)AForge.Video.DirectShow.dll"' />
  </Target>
  <Target Name="CopyWindows" AfterTargets="ILRepacker" Condition="'$(OS)' == 'Windows_NT' ">
    <Exec Command='copy "$(TargetPath)" "$(TargetDir)client.bin" /Y' />
  </Target>
  <Target Name="CopyUnix" AfterTargets="ILRepacker" Condition="'$(OS)' != 'Windows_NT' ">
    <Exec Command='cp "$(TargetPath)" "$(TargetDir)client.bin"' />
  </Target>
</Project>
