Skip to content

Commit

Permalink
Native/Vkd3d: Perform configure.ac patching before invoking autogen.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Apr 22, 2024
1 parent f149f04 commit 664de9b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions build/nuke/Native/Vkd3d.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,20 @@ partial class Build {
}

InheritedShell($"./git-sync-deps", SPIRVToolsPath / "utils").AssertZeroExitCode();
InheritedShell($"./autogen.sh", Vkd3dPath).AssertZeroExitCode();

var spirvToolsBuild = SPIRVToolsPath / "build";
var vkd3dBuild = Vkd3dPath / "build";
var vkd3dShaderCompiler = RootDirectory / "src" / "Microsoft" / "Vkd3dCompiler";
var runtimes = RootDirectory / "src" / "Native" / "Silk.NET.Vkd3d.Native" / "runtimes";

// Get rid of the Vulkan library check since we will not be needing it.
File.WriteAllText(
Vkd3dPath / "configure.ac",
File.ReadAllText(Vkd3dPath / "configure.ac")
.Replace("[VKD3D_CHECK_VULKAN]", "[]"));

InheritedShell($"./autogen.sh", Vkd3dPath).AssertZeroExitCode();

var spirvToolsBuild = SPIRVToolsPath / "build";
var vkd3dBuild = Vkd3dPath / "build";
var vkd3dShaderCompiler = RootDirectory / "src" / "Microsoft" / "Vkd3dCompiler";
var runtimes = RootDirectory / "src" / "Native" / "Silk.NET.Vkd3d.Native" / "runtimes";

foreach (var (triple, rid) in new[]
{
("x86_64-linux-gnu", "linux-x64"),
Expand Down

0 comments on commit 664de9b

Please sign in to comment.