VisualC-WinRT/SDL2-WinRT.targets
changeset 9940 f2d5ed0d9686
child 10911 1863707d9df8
equal deleted inserted replaced
9939:6ccf11a01cb5 9940:f2d5ed0d9686
       
     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>