Fix compilation with the latest GDK
This commit is contained in:
@@ -35,10 +35,19 @@ namespace Flax.Build.Platforms
|
|||||||
// Setup system paths
|
// Setup system paths
|
||||||
SystemIncludePaths.Add(Path.Combine(GDK.Instance.RootPath, "GRDK\\GameKit\\Include"));
|
SystemIncludePaths.Add(Path.Combine(GDK.Instance.RootPath, "GRDK\\GameKit\\Include"));
|
||||||
SystemLibraryPaths.Add(Path.Combine(GDK.Instance.RootPath, "GRDK\\GameKit\\Lib\\amd64"));
|
SystemLibraryPaths.Add(Path.Combine(GDK.Instance.RootPath, "GRDK\\GameKit\\Lib\\amd64"));
|
||||||
var xboxServicesPath = Path.Combine(GDK.Instance.RootPath, "GRDK\\ExtensionLibraries\\Xbox.Services.API.C\\DesignTime\\CommonConfiguration\\Neutral\\");
|
|
||||||
var xboxServicesToolset = XboxServicesToolset;
|
var xboxServicesToolset = XboxServicesToolset;
|
||||||
SystemIncludePaths.Add(xboxServicesPath + "Include");
|
var xboxServicesPath = Path.Combine(GDK.Instance.RootPath, "GRDK\\ExtensionLibraries\\Xbox.Services.API.C\\DesignTime\\CommonConfiguration\\Neutral\\");
|
||||||
|
if (Directory.Exists(xboxServicesPath))
|
||||||
|
{
|
||||||
SystemLibraryPaths.Add(xboxServicesPath + "Lib\\Release\\" + xboxServicesToolset);
|
SystemLibraryPaths.Add(xboxServicesPath + "Lib\\Release\\" + xboxServicesToolset);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// New location since 250402
|
||||||
|
xboxServicesPath = Path.Combine(GDK.Instance.RootPath, "GRDK\\ExtensionLibraries\\Xbox.Services.API.C\\");
|
||||||
|
SystemLibraryPaths.Add(xboxServicesPath + "Lib\\x64\\Release\\" + xboxServicesToolset);
|
||||||
|
}
|
||||||
|
SystemIncludePaths.Add(xboxServicesPath + "Include");
|
||||||
var curlPath = Path.Combine(GDK.Instance.RootPath, "GRDK\\ExtensionLibraries\\Xbox.XCurl.API\\DesignTime\\CommonConfiguration\\Neutral\\");
|
var curlPath = Path.Combine(GDK.Instance.RootPath, "GRDK\\ExtensionLibraries\\Xbox.XCurl.API\\DesignTime\\CommonConfiguration\\Neutral\\");
|
||||||
SystemIncludePaths.Add(curlPath + "Include");
|
SystemIncludePaths.Add(curlPath + "Include");
|
||||||
SystemLibraryPaths.Add(curlPath + "Lib");
|
SystemLibraryPaths.Add(curlPath + "Lib");
|
||||||
|
|||||||
Reference in New Issue
Block a user