<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{2AEB20C7-A498-480A-A8E7-6DEF4D731274}</ProjectGuid>
    <OutputType>Library</OutputType>
    <RootNamespace>WarpDrive</RootNamespace>
    <AssemblyName>WarpDrive</AssemblyName>
    <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
    <TargetFrameworkProfile />
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug</OutputPath>
    <DefineConstants>DEBUG;</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <ConsolePause>false</ConsolePause>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>full</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release</OutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <ConsolePause>false</ConsolePause>
    <CustomCommands>
      <CustomCommands>
        <Command type="AfterBuild" command="cp ${TargetFile} /home/realgecko/Development/KSP/GameData/${ProjectName}" />
        <Command type="AfterBuild" command="cp ${TargetFile} ${SolutionDir}/GameData/${ProjectName}" />
        <Command type="Execute" command="/usr/bin/wine /home/realgecko/Development/KSP/KSP_x64.exe" workingdir="/home/realgecko/Development/KSP/" />
      </CustomCommands>
    </CustomCommands>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="$(KSPDIR)\KSP_x64_Data\Managed\Assembly*.dll">
      <Private>False</Private>
    </Reference>
    <Reference Include="$(KSPDIR)\KSP_x64_Data\Managed\UnityEngine*.dll">
      <Private>False</Private>
    </Reference>
    <Reference Include="ClickThroughBlocker">
      <HintPath>$(KSPDIR)\GameData\000_ClickThroughBlocker\Plugins\ClickThroughBlocker.dll</HintPath>
    </Reference>
    <Reference Include="Kopernicus">
      <HintPath>$(KSPDIR)\GameData\Kopernicus\Plugins\Kopernicus.dll</HintPath>
    </Reference>
    <Reference Include="NearFutureSolar">
      <HintPath>$(KSPDIR)\GameData\NearFutureSolar\Plugins\NearFutureSolar.dll</HintPath>
    </Reference>
    <Reference Include="SpaceTuxUtility">
      <HintPath>$(KSPDIR)\GameData\SpaceTuxLibrary\Plugins\SpaceTuxUtility.dll</HintPath>
    </Reference>
    <Reference Include="System" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="AssemblyVersion.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>AssemblyVersion.tt</DependentUpon>
    </Compile>
    <Compile Include="CalculatePowerGeneration.cs" />
    <Compile Include="InstallChecker.cs" />
    <Compile Include="Logging.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="AlcubierreDrive.cs" />
    <Compile Include="Settings.cs" />
    <Compile Include="Warpotron9000.cs" />
    <Compile Include="ToolbarWrapper.cs" />
    <Compile Include="UIFramework\Core.cs" />
    <Compile Include="UIFramework\Layout.cs" />
    <Compile Include="UIFramework\Offsets.cs" />
    <Compile Include="UIFramework\Palette.cs" />
    <Compile Include="UIFramework\Styles.cs" />
    <Compile Include="Constants.cs" />
    <Compile Include="Utils.cs" />
    <Compile Include="WarpFX.cs" />
    <Compile Include="WarpPlane.cs" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <ItemGroup>
    <Content Include="AssemblyVersion.tt">
      <Generator>TextTemplatingFileGenerator</Generator>
      <LastGenOutput>AssemblyVersion.cs</LastGenOutput>
    </Content>
  </ItemGroup>
  <ItemGroup>
    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
  </ItemGroup>
  <PropertyGroup>
    <PreBuildEvent>	"$(DevEnvDir)\texttransform.exe" "$(ProjectDir)AssemblyVersion.tt"</PreBuildEvent>
  </PropertyGroup>
  <PropertyGroup>
    <PostBuildEvent>	set KSPDIR=$(KSPDIR)

	IF "%25KSPDIR%25"=="" (

		ECHO Configuration error - KSPDIR not specified in project.

		ECHO Either set KSPDIR environment variable or edit BetterLoadSaveGame.Common.props

		PAUSE

		GOTO DONE

	)

	start /D $(SolutionDir) /WAIT deploy.bat  $(TargetDir) $(TargetFileName)

	if $(ConfigurationName) == Release (	

		start /D $(SolutionDir) /WAIT buildRelease.bat $(TargetDir) $(TargetFileName)

	)
</PostBuildEvent>
  </PropertyGroup>
</Project>