build: update build configuration and test ROM dependencies

This commit is contained in:
2026-08-27 07:16:22 +02:00
parent 425ebe0938
commit f028213c11
2 changed files with 5 additions and 12 deletions
+5 -10
View File
@@ -85,16 +85,11 @@ pub fn build(b: *std.Build) void {
const test_step = b.step("test", "Run 6soz tests");
const test_options = b.addOptions();
if (b.lazyDependency("nes_test_roms", .{})) |roms_dep| {
test_options.addOption(?[]const u8, "nes_test_roms_dir", roms_dep.path("").getPath(b));
} else {
test_options.addOption(?[]const u8, "nes_test_roms_dir", null);
}
if (b.lazyDependency("m6502_functional_tests", .{})) |func_dep| {
test_options.addOption(?[]const u8, "m6502_functional_tests_dir", func_dep.path("").getPath(b));
} else {
test_options.addOption(?[]const u8, "m6502_functional_tests_dir", null);
}
const roms_dep = b.dependency("nes_test_roms", .{});
test_options.addOption(?[]const u8, "nes_test_roms_dir", roms_dep.path("").getPath(b));
const func_dep = b.dependency("m6502_functional_tests", .{});
test_options.addOption(?[]const u8, "m6502_functional_tests_dir", func_dep.path("").getPath(b));
const options_mod = test_options.createModule();
-2
View File
@@ -6,12 +6,10 @@
.nes_test_roms = .{
.url = "https://github.com/christopherpow/nes-test-roms/archive/refs/heads/master.tar.gz",
.hash = "N-V-__8AANPxaAENPnXYuDVuqgUcOdrux1zKqz8bZZYf0RA2",
.lazy = true,
},
.m6502_functional_tests = .{
.url = "https://github.com/Klaus2m5/6502_65C02_functional_tests/archive/refs/heads/master.tar.gz",
.hash = "N-V-__8AAKmLHACkwIMCMRdqnsyLtL5hbQdi8cm3nGs8n-O7",
.lazy = true,
},
.raylib = .{
.url = "https://github.com/raysan5/raylib/archive/refs/heads/master.tar.gz",