Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ pub fn build(b: *std.Build) void {
.{ .path = "src/platform/windows/webview2_host.cpp", .pattern = "InvalidateRect(view.hwnd, &info.dirty_rects[index], FALSE)" },
.{ .path = "src/platform/windows/webview2_host.cpp", .pattern = "for (size_t y_index = y0; y_index < y1; ++y_index)" },
.{ .path = "src/platform/windows/webview2_host.cpp", .pattern = "InvalidateRect(view.hwnd, partial_update ? &dirty_pixels : nullptr, FALSE)" },
.{ .path = "src/platform/windows/gpu_surface_renderer.cpp", .pattern = "D2D1_RENDER_TARGET_TYPE_HARDWARE" },
.{ .path = "src/platform/windows/gpu_surface_renderer.cpp", .pattern = "D3D11_CREATE_DEVICE_BGRA_SUPPORT" },
.{ .path = "src/platform/windows/gpu_surface_renderer.cpp", .pattern = "retained_commands_ = std::move(next_retained)" },
.{ .path = "src/platform/windows/gpu_surface_renderer.cpp", .pattern = "PushAxisAlignedClip(d2dRect(requested)" },
.{ .path = "src/platform/windows/gpu_surface_renderer.cpp", .pattern = "const float expansion = effect.spread + blur" },
Expand Down Expand Up @@ -1720,6 +1720,12 @@ pub fn build(b: *std.Build) void {
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-service-feed-reader", "Run TypeScript service feed-reader example tests", "examples/service-feed-reader", .managed),
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-canvas-preview", "Run canvas preview example tests", "examples/canvas-preview", .managed),
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-example-capabilities", "Run capabilities example tests", "examples/capabilities", .owned),
// Not an example — a measurement fixture (tools/gpu-image-fixture),
// registered here because its whole job is to hold the runtime's
// registered-image ceiling and its tests are what catch that
// ceiling moving out from under it. `scripts/gate.sh fast` already
// maps a tools/ diff to this group, so this is where it belongs.
addExampleTestStep(b, host_cli_exe, native_examples_step, "test-tool-gpu-image-fixture", "Run GPU image fixture limit pins", "tools/gpu-image-fixture", .managed),
};
for (native_example_shard_steps) |shard_step| {
native_examples_step.dependOn(shard_step);
Expand Down
5 changes: 5 additions & 0 deletions build/app.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2379,7 +2379,12 @@ fn linkPlatform(b: *std.Build, dep: *std.Build.Dependency, target: std.Build.Res
// Retained gpu_surface packets are composited into a hardware
// Direct2D target; DirectWrite draws the engine-measured text
// runs (including registered in-memory fonts) on that target.
// The D2D device sits on a D3D11 device created with
// BGRA_SUPPORT, and reaches the compositor through a DXGI 1.2
// flip-model swap chain -- hence d3d11 and dxgi.
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
2 changes: 2 additions & 0 deletions examples/browser/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ fn linkPlatform(b: *std.Build, target: std.Build.ResolvedTarget, app_mod: *std.B
app_mod.linkSystemLibrary("user32", .{});
app_mod.linkSystemLibrary("gdi32", .{});
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
2 changes: 2 additions & 0 deletions examples/capabilities/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ fn linkPlatform(b: *std.Build, target: std.Build.ResolvedTarget, app_mod: *std.B
app_mod.linkSystemLibrary("user32", .{});
app_mod.linkSystemLibrary("gdi32", .{});
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
2 changes: 2 additions & 0 deletions examples/command-app/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ fn linkPlatform(b: *std.Build, target: std.Build.ResolvedTarget, app_mod: *std.B
app_mod.linkSystemLibrary("user32", .{});
app_mod.linkSystemLibrary("gdi32", .{});
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
2 changes: 2 additions & 0 deletions examples/hello/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ fn linkPlatform(b: *std.Build, target: std.Build.ResolvedTarget, app_mod: *std.B
app_mod.linkSystemLibrary("user32", .{});
app_mod.linkSystemLibrary("gdi32", .{});
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
2 changes: 2 additions & 0 deletions examples/native-panels/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ fn linkPlatform(b: *std.Build, target: std.Build.ResolvedTarget, app_mod: *std.B
app_mod.linkSystemLibrary("user32", .{});
app_mod.linkSystemLibrary("gdi32", .{});
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
2 changes: 2 additions & 0 deletions examples/native-shell/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ fn linkPlatform(b: *std.Build, target: std.Build.ResolvedTarget, app_mod: *std.B
app_mod.linkSystemLibrary("user32", .{});
app_mod.linkSystemLibrary("gdi32", .{});
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
2 changes: 2 additions & 0 deletions examples/next/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ fn linkPlatform(b: *std.Build, target: std.Build.ResolvedTarget, app_mod: *std.B
app_mod.linkSystemLibrary("user32", .{});
app_mod.linkSystemLibrary("gdi32", .{});
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
2 changes: 2 additions & 0 deletions examples/react/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ fn linkPlatform(b: *std.Build, target: std.Build.ResolvedTarget, app_mod: *std.B
app_mod.linkSystemLibrary("user32", .{});
app_mod.linkSystemLibrary("gdi32", .{});
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
2 changes: 2 additions & 0 deletions examples/svelte/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ fn linkPlatform(b: *std.Build, target: std.Build.ResolvedTarget, app_mod: *std.B
app_mod.linkSystemLibrary("user32", .{});
app_mod.linkSystemLibrary("gdi32", .{});
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
2 changes: 2 additions & 0 deletions examples/vue/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ fn linkPlatform(b: *std.Build, target: std.Build.ResolvedTarget, app_mod: *std.B
app_mod.linkSystemLibrary("user32", .{});
app_mod.linkSystemLibrary("gdi32", .{});
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
2 changes: 2 additions & 0 deletions examples/webview/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ fn linkPlatform(b: *std.Build, target: std.Build.ResolvedTarget, app_mod: *std.B
app_mod.linkSystemLibrary("user32", .{});
app_mod.linkSystemLibrary("gdi32", .{});
app_mod.linkSystemLibrary("d2d1", .{});
app_mod.linkSystemLibrary("d3d11", .{});
app_mod.linkSystemLibrary("dxgi", .{});
app_mod.linkSystemLibrary("dwrite", .{});
app_mod.linkSystemLibrary("imm32", .{});
app_mod.linkSystemLibrary("comctl32", .{});
Expand Down
Loading
Loading