Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexu committed Jan 20, 2020
0 parents commit d17a03f
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zig-cache/
25 changes: 25 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const Builder = @import("std").build.Builder;

pub fn build(b: *Builder) void {
const mode = b.standardReleaseOptions();
const lib = b.addStaticLibrary("bog", "src/lib.zig");
lib.setBuildMode(mode);
lib.linkSystemLibrary("c");
lib.install();

var main_tests = b.addTest("src/main.zig");
main_tests.setBuildMode(mode);
var bog_tests = b.addTest("src/bog.zig");
bog_tests.setBuildMode(mode);

const test_step = b.step("test", "Run all tests");
test_step.dependOn(&bog_tests.step);
test_step.dependOn(&main_tests.step);

var exe = b.addExecutable("bog", "src/main.zig");
exe.setBuildMode(mode);
exe.install();

const run_step = b.step("run", "Run Bog");
run_step.dependOn(&exe.run().step);
}
Empty file added src/bog.zig
Empty file.
Empty file added src/bog/parse.zig
Empty file.
Empty file added src/bog/value.zig
Empty file.
Empty file added src/lib.zig
Empty file.
5 changes: 5 additions & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const std = @import("std");

pub fn main() void {

}

0 comments on commit d17a03f

Please sign in to comment.