<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="..\..\VSProps\Base.Macros.props" />
  <Import Project="$(VSPropsDir)Base.Targets.props" />
  <PropertyGroup Label="Globals">
    <ProjectGuid>{974E563D-23F8-4E8F-9083-F62876B04E08}</ProjectGuid>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  <Import Project="$(VSPropsDir)Configuration.Application.props" />
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  <ImportGroup Label="ExtensionSettings" />
  <ImportGroup Label="PropertySheets">
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
    <Import Project="$(VSPropsDir)Base.props" />
    <Import Project="$(VSPropsDir)PCHUse.props" />
  </ImportGroup>
  <PropertyGroup Label="UserMacros" />
  <ItemDefinitionGroup>
    <Link>
      <AdditionalDependencies>avrt.lib;iphlpapi.lib;winmm.lib;setupapi.lib;rpcrt4.lib;comctl32.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <AdditionalDependencies Condition="'$(Platform)'=='x64'">opengl32.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <AdditionalLibraryDirectories Condition="'$(Platform)'=='x64'">$(ExternalsDir)ffmpeg\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <SubSystem>Console</SubSystem>
    </Link>
  </ItemDefinitionGroup>
  <ItemGroup>
    <ProjectReference Include="$(CoreDir)Core\Core.vcxproj">
      <Project>{e54cf649-140e-4255-81a5-30a673c1fb36}</Project>
    </ProjectReference>
    <ProjectReference Include="$(CoreDir)UICommon\UICommon.vcxproj">
      <Project>{604c8368-f34a-4d55-82c8-cc92a0c13254}</Project>
    </ProjectReference>
    <ProjectReference Include="$(CoreDir)VideoBackends\D3D\D3D.vcxproj">
      <Project>{96020103-4ba5-4fd2-b4aa-5b6d24492d4e}</Project>
    </ProjectReference>
    <ProjectReference Include="$(CoreDir)VideoBackends\D3D12\D3D12.vcxproj">
      <Project>{570215b7-e32f-4438-95ae-c8d955f9fca3}</Project>
    </ProjectReference>
    <ProjectReference Include="$(CoreDir)VideoBackends\Null\Null.vcxproj">
      <Project>{53a5391b-737e-49a8-bc8f-312ada00736f}</Project>
    </ProjectReference>
    <ProjectReference Include="$(CoreDir)VideoBackends\OGL\OGL.vcxproj" Condition="'$(Platform)'!='ARM64'">
      <Project>{ec1a314c-5588-4506-9c1e-2e58e5817f75}</Project>
    </ProjectReference>
    <ProjectReference Include="$(CoreDir)VideoBackends\Software\Software.vcxproj" Condition="'$(Platform)'!='ARM64'">
      <Project>{a4c423aa-f57c-46c7-a172-d1a777017d29}</Project>
    </ProjectReference>
    <ProjectReference Include="$(CoreDir)VideoBackends\Vulkan\Vulkan.vcxproj">
      <Project>{29f29a19-f141-45ad-9679-5a2923b49da3}</Project>
    </ProjectReference>
    <ProjectReference Include="$(CoreDir)VideoCommon\VideoCommon.vcxproj">
      <Project>{3de9ee35-3e91-4f27-a014-2866ad8c3fe3}</Project>
    </ProjectReference>
    <ProjectReference Include="$(ExternalsDir)cpp-optparse\cpp-optparse.vcxproj">
      <Project>{c636d9d1-82fe-42b5-9987-63b7d4836341}</Project>
    </ProjectReference>
    <ProjectReference Include="$(ExternalsDir)discord-rpc\src\discord-rpc.vcxproj">
      <Project>{4482FD2A-EC43-3FFB-AC20-2E5C54B05EAD}</Project>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="MainNoGUI.cpp" />
    <ClCompile Include="Platform.cpp" />
    <ClCompile Include="PlatformHeadless.cpp" />
    <ClCompile Include="PlatformWin32.cpp" />
  </ItemGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <ImportGroup Label="ExtensionTargets">
  </ImportGroup>
  <!--Copy the .exe to binary output folder-->
  <ItemGroup>
    <SourceFiles Include="$(TargetPath)" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="Platform.h" />
  </ItemGroup>
  <ItemGroup>
    <Manifest Include="DolphinNoGUI.exe.manifest" />
  </ItemGroup>
  <ItemGroup>
    <Text Include="CMakeLists.txt" />
  </ItemGroup>
  <ItemGroup>
    <ResourceCompile Include="DolphinNoGUI.rc" />
  </ItemGroup>
  <Target Name="AfterBuild" Inputs="@(SourceFiles)" Outputs="@(SourceFiles -> '$(BinaryOutputDir)%(Filename)%(Extension)')">
    <Message Text="Copy: @(SourceFiles) -&gt; $(BinaryOutputDir)" Importance="High" />
    <Copy SourceFiles="@(SourceFiles)" DestinationFolder="$(BinaryOutputDir)" />
  </Target>
</Project>
