VisualC-WinRT/SDL2-WinRT.targets
author Philipp Wiesemann
Mon, 07 Dec 2015 21:43:16 +0100
changeset 9955 cd98cb69906d
parent 9940 f2d5ed0d9686
child 10911 1863707d9df8
permissions -rw-r--r--
Fixed outdated information in README for test programs.

Two programs were removed some time ago and one was renamed.
     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.0'">WinRT80</LibSDL2-DeviceType>
     6     <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)' == '8.1'">WinRT81</LibSDL2-DeviceType>
     7     <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows Phone' and '$(TargetPlatformVersion)' == '8.0'">WinPhone80</LibSDL2-DeviceType>
     8     <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'WindowsPhoneApp' and '$(TargetPlatformVersion)' == '8.1'">WinPhone81</LibSDL2-DeviceType>
     9     <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'UAP'">UWP</LibSDL2-DeviceType>
    10 
    11   	<LibSDL2-BinPath>$(MSBuildThisFileDirectory)..\..\bin\$(LibSDL2-DeviceType)\$(Platform)</LibSDL2-BinPath>
    12   </PropertyGroup>
    13 
    14   <Target Name="LibSDL2-DeviceType-Check" BeforeTargets="ResolveAssemblyReferences">
    15       <Error Condition="'$(LibSDL2-DeviceType)' == ''" Text="Unable to determine which version of Windows is being built-for" />
    16   </Target>
    17 
    18   <ItemDefinitionGroup>
    19     <Link>
    20       <AdditionalLibraryDirectories>$(LibSDL2-BinPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
    21       <AdditionalDependencies>SDL2.lib;%(AdditionalDependencies)</AdditionalDependencies>
    22     </Link>
    23   </ItemDefinitionGroup>
    24 
    25   <ItemDefinitionGroup>
    26     <ClCompile>
    27       <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    28     </ClCompile>
    29   </ItemDefinitionGroup>
    30 
    31   <ItemGroup Label="LibSDL2">
    32     <PackagingOutputs Include="$(LibSDL2-BinPath)\SDL2.dll">
    33         <OutputGroup>LibSDL2Binaries</OutputGroup>
    34         <ProjectName>$(ProjectName)</ProjectName>
    35         <TargetPath>%(Filename)%(Extension)</TargetPath>
    36     </PackagingOutputs>
    37   </ItemGroup>
    38 
    39 </Project>