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_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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user