🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <PropertyGroup>
  4. <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)' == '8.1'">WinRT81</LibSDL2-DeviceType>
  5. <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows Phone' and '$(TargetPlatformVersion)' == '8.0'">WinPhone80</LibSDL2-DeviceType>
  6. <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'WindowsPhoneApp' and '$(TargetPlatformVersion)' == '8.1'">WinPhone81</LibSDL2-DeviceType>
  7. <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'UAP'">UWP</LibSDL2-DeviceType>
  8. <LibSDL2-BinPath>$(MSBuildThisFileDirectory)..\..\bin\$(LibSDL2-DeviceType)\$(Platform)</LibSDL2-BinPath>
  9. </PropertyGroup>
  10. <Target Name="LibSDL2-DeviceType-Check" BeforeTargets="ResolveAssemblyReferences">
  11. <Error Condition="'$(LibSDL2-DeviceType)' == ''" Text="Unable to determine which version of Windows is being built-for" />
  12. </Target>
  13. <ItemDefinitionGroup>
  14. <Link>
  15. <AdditionalLibraryDirectories>$(LibSDL2-BinPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  16. <AdditionalDependencies>SDL2.lib;%(AdditionalDependencies)</AdditionalDependencies>
  17. </Link>
  18. </ItemDefinitionGroup>
  19. <ItemDefinitionGroup>
  20. <ClCompile>
  21. <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  22. </ClCompile>
  23. </ItemDefinitionGroup>
  24. <ItemGroup Label="LibSDL2">
  25. <PackagingOutputs Include="$(LibSDL2-BinPath)\SDL2.dll">
  26. <OutputGroup>LibSDL2Binaries</OutputGroup>
  27. <ProjectName>$(ProjectName)</ProjectName>
  28. <TargetPath>%(Filename)%(Extension)</TargetPath>
  29. </PackagingOutputs>
  30. </ItemGroup>
  31. </Project>