Skip to content
Permalink
Browse files

[Build] Properly setup RuntimeIdentifier if it was not a Graphics-API…

…-specific one
  • Loading branch information
xen2 committed Jan 9, 2019
1 parent b55b9ec commit 1d59bce041a59622862ff201248444eeb41721f6
Showing with 3 additions and 3 deletions.
  1. +3 −3 sources/targets/Xenko.GlobalSettings.targets
@@ -51,9 +51,9 @@

<!-- Compute RuntimeIdentifier (it might be different if passed from a ProjectReference) -->
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' And '$(RuntimeIdentifierDefault)' != ''">$(RuntimeIdentifierDefault)</RuntimeIdentifier>

<RuntimeIdentifier Condition="'$(XenkoPlatform)' == 'Windows' And '$(RuntimeIdentifier)' == 'win'">win-d3d11</RuntimeIdentifier>
<RuntimeIdentifier Condition="'$(XenkoPlatform)' == 'Linux' And '$(RuntimeIdentifier)' == 'linux'">linux-opengl</RuntimeIdentifier>
<!-- Properly setup RuntimeIdentifier if it was not a Graphics-API-specific one -->
<RuntimeIdentifier Condition="'$(XenkoPlatform)' == 'Windows' And ('$(RuntimeIdentifier)' == 'win' Or '$(RuntimeIdentifier)' == 'any')">$(RuntimeIdentifierDefault)</RuntimeIdentifier>
<RuntimeIdentifier Condition="'$(XenkoPlatform)' == 'Linux' And ('$(RuntimeIdentifier)' == 'linux' Or '$(RuntimeIdentifier)' == 'any')">$(RuntimeIdentifierDefault)</RuntimeIdentifier>

<XenkoGraphicsApi Condition="'$(RuntimeIdentifier)' == 'win-d3d11'">Direct3D11</XenkoGraphicsApi>
<XenkoGraphicsApi Condition="'$(RuntimeIdentifier)' == 'win-d3d12'">Direct3D12</XenkoGraphicsApi>

0 comments on commit 1d59bce

Please sign in to comment.
You can’t perform that action at this time.