<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{C0B0465C-6BE2-409C-8770-3A9BF64C4344}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>OpenRA.Mods.D2k</RootNamespace>
    <AssemblyName>OpenRA.Mods.D2k</AssemblyName>
    <FileAlignment>512</FileAlignment>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <OldToolsVersion>3.5</OldToolsVersion>
    <UpgradeBackupLocation />
    <PublishUrl>publish\</PublishUrl>
    <Install>true</Install>
    <InstallFrom>Disk</InstallFrom>
    <UpdateEnabled>false</UpdateEnabled>
    <UpdateMode>Foreground</UpdateMode>
    <UpdateInterval>7</UpdateInterval>
    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    <UpdatePeriodically>false</UpdatePeriodically>
    <UpdateRequired>false</UpdateRequired>
    <MapFileExtensions>true</MapFileExtensions>
    <ApplicationRevision>0</ApplicationRevision>
    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
    <IsWebBootstrapper>false</IsWebBootstrapper>
    <UseApplicationTrust>false</UseApplicationTrust>
    <BootstrapperEnabled>true</BootstrapperEnabled>
    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <PlatformTarget>x86</PlatformTarget>
    <ErrorReport>prompt</ErrorReport>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>TRACE;DEBUG;</DefineConstants>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>x86</PlatformTarget>
    <ErrorReport>prompt</ErrorReport>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    <Optimize>true</Optimize>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="System.Drawing" />
    <Reference Include="Eluant">
      <HintPath>..\thirdparty\download\Eluant.dll</HintPath>
      <Private>False</Private>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Activities\SwallowActor.cs" />
    <Compile Include="SpriteLoaders\R8Loader.cs" />
    <Compile Include="Traits\AttackSwallow.cs" />
    <Compile Include="Traits\Buildings\LaysTerrain.cs" />
    <Compile Include="Traits\Player\HarvesterInsurance.cs" />
    <Compile Include="Traits\Render\WithCrumbleOverlay.cs" />
    <Compile Include="Traits\Render\WithDeliveryOverlay.cs" />
    <Compile Include="Traits\Sandworm.cs" />
    <Compile Include="Traits\SpiceBloom.cs" />
    <Compile Include="Traits\TemporaryOwnerManager.cs" />
    <Compile Include="Traits\World\BuildableTerrainLayer.cs" />
    <Compile Include="Traits\World\D2kResourceLayer.cs" />
    <Compile Include="Traits\World\FogPaletteFromR8.cs" />
    <Compile Include="Traits\World\PaletteFromR8.cs" />
    <Compile Include="Traits\World\PaletteFromScaledPalette.cs" />
    <Compile Include="Traits\World\WormManager.cs" />
    <Compile Include="Traits\AttractsWorms.cs" />
    <Compile Include="Traits\WormSpawner.cs" />
    <Compile Include="Warheads\ChangeOwnerWarhead.cs" />
    <Compile Include="UtilityCommands\D2kMapImporter.cs" />
    <Compile Include="UtilityCommands\ImportD2kMapCommand.cs" />
    <Compile Include="Traits\World\D2kEditorResourceLayer.cs" />
    <Compile Include="Lint\CheckImportActors.cs" />
  </ItemGroup>
  <PropertyGroup>
    <PostBuildEvent>mkdir "$(SolutionDir)mods/d2k/"
copy "$(TargetPath)" "$(SolutionDir)mods/d2k/"
cd "$(SolutionDir)"</PostBuildEvent>
  </PropertyGroup>
  <ItemGroup>
    <ProjectReference Include="..\OpenRA.Game\OpenRA.Game.csproj">
      <Project>{0DFB103F-2962-400F-8C6D-E2C28CCBA633}</Project>
      <Name>OpenRA.Game</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\OpenRA.Mods.Common\OpenRA.Mods.Common.csproj">
      <Project>{fe6c8cc0-2f07-442a-b29f-17617b3b7fc6}</Project>
      <Name>OpenRA.Mods.Common</Name>
      <Private>False</Private>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup>
    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1</ProductName>
      <Install>true</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
      <Visible>False</Visible>
      <ProductName>Windows Installer 3.1</ProductName>
      <Install>true</Install>
    </BootstrapperPackage>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <Target Name="AfterBuild">
    <MakeDir Directories="$(SolutionDir)mods/d2k/"/>
    <Copy
      SourceFiles="$(TargetPath)"
      DestinationFolder="$(SolutionDir)mods/d2k/"/>
    <!--
        We need to copy OpenRA.Mods.D2k.pdb (not `.dll.pdb`). This is only necessary on Windows.
        Mono outputs a `.dll.mdb` so we can just append `.mdb` directly.
    -->
    <Copy
      SourceFiles="$(TargetDir)$(TargetName).pdb"
      DestinationFolder="$(SolutionDir)mods/d2k/"
      Condition="'$(OS)' == 'Windows_NT'"/>
    <Copy
      SourceFiles="$(TargetPath).mdb"
      DestinationFolder="$(SolutionDir)mods/d2k/"
      Condition="'$(OS)' == 'Unix'"/>
    <!-- Uncomment these lines when debugging or adding to this target
    <Message Text="DEBUG OS:                     $(OS)"/>
    <Message Text="DEBUG SolutionDir:            $(SolutionDir)"/>
    <Message Text="DEBUG TargetPath:             $(TargetPath)"/>
    <Message Text="DEBUG TargetDir:              $(TargetDir)"/>
    <Message Text="DEBUG TargetName:             $(TargetName)"/>
    -->
  </Target>
</Project>
