Skip to content
Permalink
Browse files

[Build] Only build default graphics platform when opeining sln unless…

… we explicitly set XenkoGraphicsApiDependentBuildAll
  • Loading branch information
xen2 committed Nov 25, 2018
1 parent 99397c6 commit a4ced9d064ff3bff2b6a3fc069516a9623257a96
Showing with 4 additions and 2 deletions.
  1. +1 −0 build/Xenko.PreSettings.Local.targets
  2. +3 −2 sources/targets/Xenko.GlobalSettings.targets
@@ -3,6 +3,7 @@
<PropertyGroup>
<XenkoCommonPreSettingsName>Xenko</XenkoCommonPreSettingsName>
<XenkoPlatforms Condition="'$(XenkoPlatforms)' == ''">Windows</XenkoPlatforms>
<XenkoGraphicsApiDependentBuildAll Condition="'$(XenkoGraphicsApiDependentBuildAll)' == ''">false</XenkoGraphicsApiDependentBuildAll>
</PropertyGroup>
</Project>

@@ -24,12 +24,13 @@

<!-- Include platform dependent assembly when specified -->
<PropertyGroup Condition="'$(XenkoGraphicsApiDependent)' == 'true'">
<RuntimeIdentifiers Condition="'$(TargetFramework)' == 'net45'">win7-d3d11;win7-d3d12;win7-opengl;win7-opengles;win7-vulkan</RuntimeIdentifiers>
<RuntimeIdentifiers Condition="'$(TargetFramework)' == 'net45' And '$(XenkoGraphicsApiDependentBuildAll)' == 'true'">win7-d3d11;win7-d3d12;win7-opengl;win7-opengles;win7-vulkan</RuntimeIdentifiers>
<RuntimeIdentifierDefault Condition="'$(TargetFramework)' == 'net45'">win7-d3d11</RuntimeIdentifierDefault>
<RuntimeIdentifiers Condition="'$(TargetFramework)' == 'netstandard2.0'">linux-opengl;linux-vulkan</RuntimeIdentifiers>
<RuntimeIdentifiers Condition="'$(TargetFramework)' == 'netstandard2.0' And '$(XenkoGraphicsApiDependentBuildAll)' == 'true'">linux-opengl;linux-vulkan</RuntimeIdentifiers>
<RuntimeIdentifierDefault Condition="'$(TargetFramework)' == 'netstandard2.0'">linux-opengl</RuntimeIdentifierDefault>

<ExtrasBuildEachRuntimeIdentifier Condition="'$(RuntimeIdentifiers)' != ''">true</ExtrasBuildEachRuntimeIdentifier>
<DisableFastUpToDateCheck Condition="$(RuntimeIdentifiers.Contains(';'))">true</DisableFastUpToDateCheck>
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' And '$(RuntimeIdentifierDefault)' != ''">$(RuntimeIdentifierDefault)</RuntimeIdentifier>

<XenkoGraphicsApi Condition="'$(RuntimeIdentifier)' == 'win7-d3d11'">Direct3D11</XenkoGraphicsApi>

0 comments on commit a4ced9d

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