add build.zig.zon; update build.zig to zig 0.13
parent
390ffd6732
commit
fc2088fabb
12
build.zig
12
build.zig
|
@ -1,25 +1,23 @@
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
pub fn build(b: *std.build.Builder) void {
|
pub fn build(b: *std.Build) void {
|
||||||
// Standard release options allow the person running `zig build` to select
|
const target = b.standardTargetOptions(.{});
|
||||||
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
|
|
||||||
const optimize = b.standardOptimizeOption(.{});
|
const optimize = b.standardOptimizeOption(.{});
|
||||||
|
|
||||||
const target = b.standardTargetOptions(.{});
|
|
||||||
_ = b.addModule("jwt", .{
|
_ = b.addModule("jwt", .{
|
||||||
.source_file = .{ .path = "jwt.zig" },
|
.root_source_file = b.path("jwt.zig"),
|
||||||
});
|
});
|
||||||
|
|
||||||
const lib = b.addStaticLibrary(.{
|
const lib = b.addStaticLibrary(.{
|
||||||
.name = "zig-jwt",
|
.name = "zig-jwt",
|
||||||
.root_source_file = .{ .path = "jwt.zig" },
|
.root_source_file = b.path("jwt.zig"),
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
.target = target,
|
.target = target,
|
||||||
});
|
});
|
||||||
b.installArtifact(lib);
|
b.installArtifact(lib);
|
||||||
|
|
||||||
const main_tests = b.addTest(.{
|
const main_tests = b.addTest(.{
|
||||||
.root_source_file = .{ .path = "jwt.zig" },
|
.root_source_file = b.path("jwt.zig"),
|
||||||
});
|
});
|
||||||
const run_main_tests = b.addRunArtifact(main_tests);
|
const run_main_tests = b.addRunArtifact(main_tests);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
.{
|
||||||
|
.name = "zig-jwt",
|
||||||
|
.version = "0.0.1",
|
||||||
|
.paths = .{
|
||||||
|
"build.zig",
|
||||||
|
"build.zig.zon",
|
||||||
|
"jwt.zig",
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue