VisualC-WinRT/SDL2-WinRT.targets
author David Ludwig <dludwig@pobox.com>
Sat, 25 Feb 2017 21:23:12 -0500
changeset 10911 1863707d9df8
parent 9940 f2d5ed0d9686
permissions -rw-r--r--
WinRT: removed Windows 8.0 from build-bot + NuGet package creation scripts

According to Steam's OS stats, Windows 8.0 use is pretty much nil. Further,
Microsoft hasn't support Windows 8.0 development in any of their
actively-updated toolchains, and setting it up can be a pain.

In theory, SDL2 still supports Windows 8.0, however building of Windows 8.0
.dlls is no longer the default, if and when using the 'winrtbuild.*' scripts.
The MSVC 2012 project files for building Windows 8.0 dlls remain, though,
for the time being.
     1 <?xml version="1.0" encoding="utf-8"?>
     2 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     3 
     4   <PropertyGroup>
     5     <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)' == '8.1'">WinRT81</LibSDL2-DeviceType>
     6     <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows Phone' and '$(TargetPlatformVersion)' == '8.0'">WinPhone80</LibSDL2-DeviceType>
     7     <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'WindowsPhoneApp' and '$(TargetPlatformVersion)' == '8.1'">WinPhone81</LibSDL2-DeviceType>
     8     <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'UAP'">UWP</LibSDL2-DeviceType>
     9 
    10   	<LibSDL2-BinPath>$(MSBuildThisFileDirectory)..\..\bin\$(LibSDL2-DeviceType)\$(Platform)</LibSDL2-BinPath>
    11   </PropertyGroup>
    12 
    13   <Target Name="LibSDL2-DeviceType-Check" BeforeTargets="ResolveAssemblyReferences">
    14       <Error Condition="'$(LibSDL2-DeviceType)' == ''" Text="Unable to determine which version of Windows is being built-for" />
    15   </Target>
    16 
    17   <ItemDefinitionGroup>
    18     <Link>
    19       <AdditionalLibraryDirectories>$(LibSDL2-BinPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
    20       <AdditionalDependencies>SDL2.lib;%(AdditionalDependencies)</AdditionalDependencies>
    21     </Link>
    22   </ItemDefinitionGroup>
    23 
    24   <ItemDefinitionGroup>
    25     <ClCompile>
    26       <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    27     </ClCompile>
    28   </ItemDefinitionGroup>
    29 
    30   <ItemGroup Label="LibSDL2">
    31     <PackagingOutputs Include="$(LibSDL2-BinPath)\SDL2.dll">
    32         <OutputGroup>LibSDL2Binaries</OutputGroup>
    33         <ProjectName>$(ProjectName)</ProjectName>
    34         <TargetPath>%(Filename)%(Extension)</TargetPath>
    35     </PackagingOutputs>
    36   </ItemGroup>
    37 
    38 </Project>