Skip to content

Commit

Permalink
Use locally-named properties in Veldrid.SDL2.targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
mellinoe committed Mar 29, 2019
1 parent 65d2341 commit d6fc5e2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Veldrid.SDL2/build/net40/Veldrid.SDL2.targets
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</_IsWindows>
<_IsMacOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</_IsMacOS>
<_Veldrid_SDL2_IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</_Veldrid_SDL2_IsWindows>
<_Veldrid_SDL2_IsMacOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</_Veldrid_SDL2_IsMacOS>

<_NativeRuntime Condition=" '$(_NativeRuntime)' == '' And '$(_IsMacOS)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">osx-x64</_NativeRuntime>
<_NativeRuntime Condition=" '$(_NativeRuntime)' == '' And '$(_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'true' Or '$(PlatformTarget)' == 'x86')">win-x86</_NativeRuntime>
<_NativeRuntime Condition=" '$(_NativeRuntime)' == '' And '$(_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">win-x64</_NativeRuntime>
<_Veldrid_SDL2_NativeRuntime Condition=" '$(_Veldrid_SDL2_NativeRuntime)' == '' And '$(_Veldrid_SDL2_IsMacOS)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">osx-x64</_Veldrid_SDL2_NativeRuntime>
<_Veldrid_SDL2_NativeRuntime Condition=" '$(_Veldrid_SDL2_NativeRuntime)' == '' And '$(_Veldrid_SDL2_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'true' Or '$(PlatformTarget)' == 'x86')">win-x86</_Veldrid_SDL2_NativeRuntime>
<_Veldrid_SDL2_NativeRuntime Condition=" '$(_Veldrid_SDL2_NativeRuntime)' == '' And '$(_Veldrid_SDL2_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">win-x64</_Veldrid_SDL2_NativeRuntime>

<_NativeLibName Condition="'$(_NativeRuntime)' == 'win-x86' Or '$(_NativeRuntime)' == 'win-x64'">SDL2.dll</_NativeLibName>
<_NativeLibName Condition="'$(_NativeRuntime)' == 'osx-x64'">libsdl2.dylib</_NativeLibName>
<_Veldrid_SDL2_NativeLibName Condition="'$(_Veldrid_SDL2_NativeRuntime)' == 'win-x86' Or '$(_Veldrid_SDL2_NativeRuntime)' == 'win-x64'">SDL2.dll</_Veldrid_SDL2_NativeLibName>
<_Veldrid_SDL2_NativeLibName Condition="'$(_Veldrid_SDL2_NativeRuntime)' == 'osx-x64'">libsdl2.dylib</_Veldrid_SDL2_NativeLibName>
</PropertyGroup>
<ItemGroup>
<Content Condition="'$(_NativeRuntime)' != ''" Include="$(MSBuildThisFileDirectory)..\..\runtimes\$(_NativeRuntime)\native\$(_NativeLibName)">
<Content Condition="'$(_Veldrid_SDL2_NativeRuntime)' != ''" Include="$(MSBuildThisFileDirectory)..\..\runtimes\$(_Veldrid_SDL2_NativeRuntime)\native\$(_Veldrid_SDL2_NativeLibName)">
<Link>%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Visible>False</Visible>
Expand Down

0 comments on commit d6fc5e2

Please sign in to comment.