init project setup and zig build config

This commit is contained in:
2026-07-21 16:42:15 +02:00
commit 3e860871f9
8 changed files with 37 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
.zig-cache
zig-out
zig-pkg
+22
View File
@@ -0,0 +1,22 @@
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const exe = b.addExecutable(.{
.name = "6soz",
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
b.installArtifact(exe);
const test_step = b.step("test", "Run unit tests");
const exe_tests = b.addTest(.{
.root_module = exe.root_module,
});
const run_exe_tests = b.addRunArtifact(exe_tests);
test_step.dependOn(&run_exe_tests.step);
}
+7
View File
@@ -0,0 +1,7 @@
.{
.name = ._6soz,
.version = "0.0.1",
.minimum_zig_version = "0.16.0",
.paths = .{""},
.fingerprint = 0xad233139f14a4bea,
}
View File
+5
View File
@@ -0,0 +1,5 @@
const std = @import("std");
pub fn main() !void {
std.debug.print("6soz 6502 emulator\n", .{});
}
View File
View File
View File