Skip to content

Commit

Permalink
Initial commit of GBA Hello World
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigojaeger committed Dec 8, 2019
0 parents commit e463483
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
*.zig text eol=lf
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
zig-cache
14 changes: 14 additions & 0 deletions build.zig
@@ -0,0 +1,14 @@
const Builder = @import("std").build.Builder;

pub fn build(b: *Builder) void {
const mode = b.standardReleaseOptions();
const exe = b.addExecutable("GBAHelloWorld", "src/main.zig");
exe.setBuildMode(mode);
exe.install();

const run_cmd = exe.run();
run_cmd.step.dependOn(b.getInstallStep());

const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
}
5 changes: 5 additions & 0 deletions src/main.zig
@@ -0,0 +1,5 @@
const std = @import("std");

pub fn main() anyerror!void {
std.debug.warn("All your base are belong to us.\n");
}

0 comments on commit e463483

Please sign in to comment.