1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 07:44:09 +02:00

Adding better support for platforms

This commit is contained in:
Brian Fiete 2019-10-01 12:46:38 -07:00
parent 85648cda63
commit 62346a53b0
9 changed files with 286 additions and 109 deletions

View file

@ -55,6 +55,20 @@ namespace IDE
default: return .Unknown;
}
}
public static PlatformType GetHostPlatform()
{
#if BF_PLATFORM_WINDOWS
return .Windows;
#endif
#if BF_PLATFORM_LINUX
return .Linux;
#endif
#unwarn
return .Unknown;
}
}
public enum ToolsetType
@ -338,6 +352,7 @@ namespace IDE
public bool mForceNextCompile;
public List<CompileInstance> mCompileInstanceList = new List<CompileInstance>() ~ DeleteContainerAndItems!(_); // First item is primary compile, secondaries are hot reloads
public List<String> mPlatforms = new List<String>() ~ DeleteContainerAndItems!(_);
public List<String> mUserPlatforms = new List<String>() ~ DeleteContainerAndItems!(_);
public bool mIsDebugSession;
public int32 HotCompileIdx
@ -866,6 +881,14 @@ namespace IDE
}
}
public void FixOptionsForPlatform(String platformName)
{
for (var configKV in mConfigs)
{
FixOptions(configKV.key, platformName);
}
}
public void FixOptions(String configName, String platformName)
{
bool isTest = configName.Contains("Test");