diff --git a/build/app.zig b/build/app.zig index 87cbd8d30..451871f67 100644 --- a/build/app.zig +++ b/build/app.zig @@ -1203,7 +1203,7 @@ fn addTests( tour_tests.root_module.addImport("tape", b.createModule(.{ .target = target, .optimize = optimize, - .root_source_file = b.path("sdk/tape/root.zig"), + .root_source_file = b.dependency("fizzy_sdk", .{}).path("tape/root.zig"), })); try unit_test_artifacts.append(b.allocator, tour_tests); @@ -1262,7 +1262,7 @@ fn addTests( keymap_module.addImport("tape", b.createModule(.{ .target = target, .optimize = optimize, - .root_source_file = b.path("sdk/tape/root.zig"), + .root_source_file = b.dependency("fizzy_sdk", .{}).path("tape/root.zig"), })); try unit_test_artifacts.append(b.allocator, b.addTest(.{ .name = "fizzy-keymap-tests", @@ -1344,7 +1344,7 @@ fn addTests( .root_module = b.createModule(.{ .target = target, .optimize = optimize, - .root_source_file = b.path("sdk/remote/fake_fizzy.zig"), + .root_source_file = b.dependency("fizzy_sdk", .{}).path("remote/fake_fizzy.zig"), }), }); const fake_options = b.addOptions(); @@ -1354,7 +1354,7 @@ fn addTests( .root_module = b.createModule(.{ .target = target, .optimize = optimize, - .root_source_file = b.path("sdk/remote/root.zig"), + .root_source_file = b.dependency("fizzy_sdk", .{}).path("remote/root.zig"), .imports = &.{.{ .name = "fake_fizzy_options", .module = fake_options.createModule() }}, }), .filters = test_filters, @@ -1463,13 +1463,13 @@ fn addTests( const replay_only = b.createModule(.{ .target = target, .optimize = optimize, - .root_source_file = b.path("sdk/replay/root.zig"), + .root_source_file = b.dependency("fizzy_sdk", .{}).path("replay/root.zig"), }); replay_only.addImport("dvui", dvui_testing_dep.module("dvui_testing")); replay_only.addImport("tape", b.createModule(.{ .target = target, .optimize = optimize, - .root_source_file = b.path("sdk/tape/root.zig"), + .root_source_file = b.dependency("fizzy_sdk", .{}).path("tape/root.zig"), })); const replay_tests = b.addTest(.{ .name = "fizzy-replay-tests", @@ -2055,7 +2055,7 @@ fn addTests( bench_module.addImport("tape", b.createModule(.{ .target = target, .optimize = optimize, - .root_source_file = b.path("sdk/tape/root.zig"), + .root_source_file = b.dependency("fizzy_sdk", .{}).path("tape/root.zig"), })); const bench_tape = b.addTest(.{ .name = "fizzy-bench-tape", .root_module = bench_module }); diff --git a/src/editor/demos/tour.zig b/src/editor/demos/tour.zig index a6615a70c..daa93272b 100644 --- a/src/editor/demos/tour.zig +++ b/src/editor/demos/tour.zig @@ -7,6 +7,7 @@ //! fresh one. The explorer is pressed open only if it is not showing already. A snapshot holds the window's //! arrangement too (`Demo.Snapshot`), so a seek back across a split or a float puts the window //! back as it was then, rather than replaying from the keyframe. +const std = @import("std"); const Tape = @import("tape").Tape; const Script = @import("tape").Script; const catalog = @import("catalog.zig"); @@ -201,7 +202,6 @@ pub fn build(s: *Script) !void { } test "a frost-first tour names the frosted glass it shows" { - const std = @import("std"); var s: Script = .init(std.testing.allocator, "tour", "Tour"); s.lacks = &.{"liquid"}; try build(&s);