add: README, LICENSE and initial project structure
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m44s
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m44s
This commit is contained in:
23
build.zig
Normal file
23
build.zig
Normal file
@@ -0,0 +1,23 @@
|
||||
const std = @import("std");
|
||||
|
||||
pub fn build(b: *std.Build) void {
|
||||
const target = b.standardTargetOptions(.{});
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const lib_mod = b.createModule(.{
|
||||
.root_source_file = b.path("src/root.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
||||
const lib = b.addLibrary(.{
|
||||
.linkage = .static,
|
||||
.name = "parser",
|
||||
.root_module = lib_mod,
|
||||
});
|
||||
b.installArtifact(lib);
|
||||
|
||||
const run_lib_unit_tests = b.addRunArtifact(b.addTest(.{ .root_module = lib_mod }));
|
||||
const test_step = b.step("test", "Run unit tests");
|
||||
test_step.dependOn(&run_lib_unit_tests.step);
|
||||
}
|
||||
Reference in New Issue
Block a user