Prevent building with SDL in unsupported platforms
This commit is contained in:
@@ -300,7 +300,8 @@ namespace Flax.Build
|
|||||||
|
|
||||||
public static bool WithSDL(NativeCpp.BuildOptions options)
|
public static bool WithSDL(NativeCpp.BuildOptions options)
|
||||||
{
|
{
|
||||||
return UseSDL;
|
bool supportedPlatform = options.Platform.Target == TargetPlatform.Windows || options.Platform.Target == TargetPlatform.Linux;
|
||||||
|
return UseSDL && supportedPlatform;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user