Skip to content
Permalink
Browse files

[Build] Properly forward XenkoGraphicsApi when building a single grap…

…hics platform
  • Loading branch information
xen2 committed Jan 8, 2019
1 parent be7dcfb commit e1384ebe811fe6aa2e7f3d2c8e3aabb4f79e7d97
Showing with 6 additions and 5 deletions.
  1. +6 −5 build/Xenko.build
@@ -123,6 +123,7 @@ Example of use:
<PropertyGroup>
<RestoreExec><![CDATA[
set XenkoGraphicsApiDependentBuildAll=$(XenkoGraphicsApiDependentBuildAll)
set XenkoGraphicsApi=$(XenkoGraphicsApi)
set XenkoPlatforms=$(XenkoPlatforms)
"$(NuGetPath)" restore "$(XenkoSolution).sln"
]]></RestoreExec>
@@ -154,17 +155,17 @@ Example of use:
</Target>

<Target Name="BuildWindowsDirect3D12" DependsOnTargets="CopyXenkoKey">
<MSBuild Targets="Restore" Projects="$(MSBuildThisFileFullPath)" Properties="XenkoPlatforms=$(XenkoPlatforms);XenkoSolution=$(XenkoSolution).Runtime"/>
<MSBuild Targets="Restore" Projects="$(MSBuildThisFileFullPath)" Properties="XenkoPlatforms=$(XenkoPlatforms);XenkoSolution=$(XenkoSolution).Runtime;XenkoGraphicsApi=Direct3D12"/>
<MSBuild Targets="Build" Projects="$(XenkoSolution).Runtime.sln" Properties="$(BuildProperties);XenkoGraphicsApi=Direct3D12;XenkoSkipAutoPack=true;XenkoSkipUnitTests=true"/>
</Target>

<Target Name="BuildWindowsOpenGL" DependsOnTargets="CopyXenkoKey">
<MSBuild Targets="Restore" Projects="$(MSBuildThisFileFullPath)" Properties="XenkoPlatforms=$(XenkoPlatforms);XenkoSolution=$(XenkoSolution).Runtime"/>
<MSBuild Targets="Restore" Projects="$(MSBuildThisFileFullPath)" Properties="XenkoPlatforms=$(XenkoPlatforms);XenkoSolution=$(XenkoSolution).Runtime;XenkoGraphicsApi=OpenGL"/>
<MSBuild Targets="Build" Projects="$(XenkoSolution).Runtime.sln" Properties="$(BuildProperties);XenkoGraphicsApi=OpenGL;XenkoSkipAutoPack=true;XenkoSkipUnitTests=true"/>
</Target>

<Target Name="BuildWindowsOpenGLES" DependsOnTargets="CopyXenkoKey">
<MSBuild Targets="Restore" Projects="$(MSBuildThisFileFullPath)" Properties="XenkoPlatforms=$(XenkoPlatforms);XenkoSolution=$(XenkoSolution).Runtime"/>
<MSBuild Targets="Restore" Projects="$(MSBuildThisFileFullPath)" Properties="XenkoPlatforms=$(XenkoPlatforms);XenkoSolution=$(XenkoSolution).Runtime;XenkoGraphicsApi=OpenGLES"/>
<MSBuild Targets="Build" Projects="$(XenkoSolution).Runtime.sln" Properties="$(BuildProperties);XenkoGraphicsApi=OpenGLES;XenkoSkipAutoPack=true;XenkoSkipUnitTests=true"/>
</Target>

@@ -200,7 +201,7 @@ Example of use:
</Target>

<Target Name="BuildWindowsVulkan" DependsOnTargets="CopyXenkoKey">
<MSBuild Targets="Restore" Projects="$(MSBuildThisFileFullPath)" Properties="XenkoPlatforms=$(XenkoPlatforms);XenkoSolution=$(XenkoSolution).Runtime"/>
<MSBuild Targets="Restore" Projects="$(MSBuildThisFileFullPath)" Properties="XenkoPlatforms=$(XenkoPlatforms);XenkoSolution=$(XenkoSolution).Runtime;XenkoGraphicsApi=Vulkan"/>
<MSBuild Targets="Build" Projects="$(XenkoSolution).Runtime.sln" Properties="$(BuildProperties);XenkoGraphicsApi=Vulkan;XenkoSkipAutoPack=true;XenkoSkipUnitTests=true"/>
</Target>

@@ -218,7 +219,7 @@ Example of use:
<XenkoSolution>$(XenkoSolution).Runtime</XenkoSolution>
<XenkoPlatforms>Linux</XenkoPlatforms>
</PropertyGroup>
<MSBuild Targets="Restore" Projects="$(MSBuildThisFileFullPath)" Properties="XenkoPlatforms=$(XenkoPlatforms);XenkoSolution=$(XenkoSolution)"/>
<MSBuild Targets="Restore" Projects="$(MSBuildThisFileFullPath)" Properties="XenkoPlatforms=$(XenkoPlatforms);XenkoSolution=$(XenkoSolution);XenkoGraphicsApi=Vulkan"/>
<MSBuild Targets="Build" Projects="$(XenkoSolution).sln" Properties="$(BuildProperties);XenkoPlatforms=$(XenkoPlatforms);XenkoGraphicsApi=Vulkan;XenkoSkipAutoPack=true;XenkoSkipUnitTests=true"/>
</Target>

0 comments on commit e1384eb

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