From c37855a945278d4462bf24a9ed7ab8d29fee94b8 Mon Sep 17 00:00:00 2001 From: Virgile Bello Date: Mon, 27 May 2019 16:45:25 +0200 Subject: [PATCH] [Build] Reorganized targets to more easily choose multiple graphics platforms at once. --- build/Xenko.PreSettings.Local.targets | 4 +- sources/targets/Xenko.GlobalSettings.targets | 40 +++++++++----------- 2 files changed, 19 insertions(+), 25 deletions(-) diff --git a/build/Xenko.PreSettings.Local.targets b/build/Xenko.PreSettings.Local.targets index dd6f47630..d5d9bb36c 100644 --- a/build/Xenko.PreSettings.Local.targets +++ b/build/Xenko.PreSettings.Local.targets @@ -1,9 +1,9 @@ - + Xenko Windows - false + Direct3D11 diff --git a/sources/targets/Xenko.GlobalSettings.targets b/sources/targets/Xenko.GlobalSettings.targets index 54ee2a874..17bcf704d 100644 --- a/sources/targets/Xenko.GlobalSettings.targets +++ b/sources/targets/Xenko.GlobalSettings.targets @@ -11,7 +11,6 @@ OpenGL Vulkan $(XenkoGraphicsApi) - $(XenkoDefaultGraphicsApi) $(XenkoAssemblyProcessorDefaultOptions) @@ -24,29 +23,24 @@ - - - $(RuntimeIdentifiers);win-d3d11 - $(RuntimeIdentifiers);win-d3d12 - $(RuntimeIdentifiers);win-opengl - $(RuntimeIdentifiers);win-opengles - $(RuntimeIdentifiers);win-vulkan - $(RuntimeIdentifiers);linux-opengl - $(RuntimeIdentifiers);linux-vulkan - $(RuntimeIdentifiers);osx-vulkan - - - - - win-d3d11;win-d3d12;win-opengl;win-opengles;win-vulkan - $(RuntimeIdentifiers);linux-opengl;linux-vulkan - $(RuntimeIdentifiers);osx-vulkan - - win-d3d11;win-d3d12;win-opengl;win-opengles;win-vulkan - linux-opengl;linux-vulkan - osx-vulkan - + + Direct3D11;Direct3D12;OpenGL;OpenGLES;Vulkan + $(XenkoGraphicsApiOriginal) + + <_XenkoGraphicsApis Condition="'$(XenkoGraphicsApis)' != ''">;$(XenkoGraphicsApis); + + + + $(RuntimeIdentifiers);win-d3d11 + $(RuntimeIdentifiers);win-d3d12 + $(RuntimeIdentifiers);win-opengl + $(RuntimeIdentifiers);win-opengles + $(RuntimeIdentifiers);win-vulkan + $(RuntimeIdentifiers);linux-opengl + $(RuntimeIdentifiers);linux-vulkan + $(RuntimeIdentifiers);osx-vulkan + $([MSBuild]::Unescape($(RuntimeIdentifiers.Trim(';')))) linux-opengl