-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d17a03f
Showing
7 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
zig-cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const std = @import("std"); | ||
|
||
pub fn main() void { | ||
|
||
} |