Add reusable lists with all platforms, architectures and configurations for Flax.Build targets

This commit is contained in:
Wojtek Figat
2020-12-09 20:07:49 +01:00
parent e5337d8f38
commit 58e45036a5
3 changed files with 39 additions and 33 deletions

View File

@@ -31,16 +31,7 @@ namespace Flax.Deps
var depsToBuild = string.IsNullOrEmpty(Configuration.DepsToBuild) ? new string[0] : Configuration.DepsToBuild.Trim().ToLower().Split(',');
// Pick platforms for build
var platforms = new[]
{
TargetPlatform.Windows,
TargetPlatform.UWP,
TargetPlatform.XboxOne,
TargetPlatform.Linux,
TargetPlatform.PS4,
TargetPlatform.XboxScarlett,
TargetPlatform.Android,
};
var platforms = Globals.AllPlatforms;
if (Configuration.BuildPlatforms != null && Configuration.BuildPlatforms.Length != 0)
platforms = Configuration.BuildPlatforms;
platforms = platforms.Where(x => buildPlatform.CanBuildPlatform(x)).ToArray();