build: update build configuration and test ROM dependencies
This commit is contained in:
@@ -85,16 +85,11 @@ pub fn build(b: *std.Build) void {
|
|||||||
const test_step = b.step("test", "Run 6soz tests");
|
const test_step = b.step("test", "Run 6soz tests");
|
||||||
|
|
||||||
const test_options = b.addOptions();
|
const test_options = b.addOptions();
|
||||||
if (b.lazyDependency("nes_test_roms", .{})) |roms_dep| {
|
const roms_dep = b.dependency("nes_test_roms", .{});
|
||||||
test_options.addOption(?[]const u8, "nes_test_roms_dir", roms_dep.path("").getPath(b));
|
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);
|
const func_dep = b.dependency("m6502_functional_tests", .{});
|
||||||
}
|
test_options.addOption(?[]const u8, "m6502_functional_tests_dir", func_dep.path("").getPath(b));
|
||||||
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 options_mod = test_options.createModule();
|
const options_mod = test_options.createModule();
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,10 @@
|
|||||||
.nes_test_roms = .{
|
.nes_test_roms = .{
|
||||||
.url = "https://github.com/christopherpow/nes-test-roms/archive/refs/heads/master.tar.gz",
|
.url = "https://github.com/christopherpow/nes-test-roms/archive/refs/heads/master.tar.gz",
|
||||||
.hash = "N-V-__8AANPxaAENPnXYuDVuqgUcOdrux1zKqz8bZZYf0RA2",
|
.hash = "N-V-__8AANPxaAENPnXYuDVuqgUcOdrux1zKqz8bZZYf0RA2",
|
||||||
.lazy = true,
|
|
||||||
},
|
},
|
||||||
.m6502_functional_tests = .{
|
.m6502_functional_tests = .{
|
||||||
.url = "https://github.com/Klaus2m5/6502_65C02_functional_tests/archive/refs/heads/master.tar.gz",
|
.url = "https://github.com/Klaus2m5/6502_65C02_functional_tests/archive/refs/heads/master.tar.gz",
|
||||||
.hash = "N-V-__8AAKmLHACkwIMCMRdqnsyLtL5hbQdi8cm3nGs8n-O7",
|
.hash = "N-V-__8AAKmLHACkwIMCMRdqnsyLtL5hbQdi8cm3nGs8n-O7",
|
||||||
.lazy = true,
|
|
||||||
},
|
},
|
||||||
.raylib = .{
|
.raylib = .{
|
||||||
.url = "https://github.com/raysan5/raylib/archive/refs/heads/master.tar.gz",
|
.url = "https://github.com/raysan5/raylib/archive/refs/heads/master.tar.gz",
|
||||||
|
|||||||
Reference in New Issue
Block a user