VisualC-WinRT/SDL2-WinRT.targets
author Ryan C. Gordon <icculus@icculus.org>
Sun, 28 Aug 2016 13:36:13 -0400
changeset 10286 3b884985835c
parent 9940 f2d5ed0d9686
permissions -rw-r--r--
Merge audio capture work back into the mainline.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9940
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
     2
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
     3
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
     4
  <PropertyGroup>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
     5
    <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)' == '8.0'">WinRT80</LibSDL2-DeviceType>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
     6
    <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)' == '8.1'">WinRT81</LibSDL2-DeviceType>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
     7
    <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows Phone' and '$(TargetPlatformVersion)' == '8.0'">WinPhone80</LibSDL2-DeviceType>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
     8
    <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'WindowsPhoneApp' and '$(TargetPlatformVersion)' == '8.1'">WinPhone81</LibSDL2-DeviceType>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
     9
    <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'UAP'">UWP</LibSDL2-DeviceType>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    10
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    11
  	<LibSDL2-BinPath>$(MSBuildThisFileDirectory)..\..\bin\$(LibSDL2-DeviceType)\$(Platform)</LibSDL2-BinPath>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    12
  </PropertyGroup>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    13
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    14
  <Target Name="LibSDL2-DeviceType-Check" BeforeTargets="ResolveAssemblyReferences">
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    15
      <Error Condition="'$(LibSDL2-DeviceType)' == ''" Text="Unable to determine which version of Windows is being built-for" />
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    16
  </Target>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    17
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    18
  <ItemDefinitionGroup>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    19
    <Link>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    20
      <AdditionalLibraryDirectories>$(LibSDL2-BinPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    21
      <AdditionalDependencies>SDL2.lib;%(AdditionalDependencies)</AdditionalDependencies>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    22
    </Link>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    23
  </ItemDefinitionGroup>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    24
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    25
  <ItemDefinitionGroup>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    26
    <ClCompile>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    27
      <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    28
    </ClCompile>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    29
  </ItemDefinitionGroup>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    30
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    31
  <ItemGroup Label="LibSDL2">
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    32
    <PackagingOutputs Include="$(LibSDL2-BinPath)\SDL2.dll">
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    33
        <OutputGroup>LibSDL2Binaries</OutputGroup>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    34
        <ProjectName>$(ProjectName)</ProjectName>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    35
        <TargetPath>%(Filename)%(Extension)</TargetPath>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    36
    </PackagingOutputs>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    37
  </ItemGroup>
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    38
f2d5ed0d9686 WinRT: added NuGet-package creation support to WinRT build script
David Ludwig <dludwig@pobox.com>
parents:
diff changeset
    39
</Project>