Skip to content

Commit

Permalink
build: PACKAGESSSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Phan committed Feb 4, 2023
1 parent 8ac2162 commit 3992aaa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 38 deletions.
13 changes: 0 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,3 @@
zig-*
docs/
*.o

# Packages
deps.zig

# Gyro
.gyro/
gyro.lock

# Zigmod
.zigmod

# Editors
.idea/
18 changes: 5 additions & 13 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,15 @@ const std = @import("std");
const package_name = "getty";
const package_path = "src/getty.zig";

var cached_pkg: ?std.build.Pkg = null;

pub fn pkg(b: *std.build.Builder) std.build.Pkg {
if (cached_pkg == null) {
cached_pkg = .{
.name = package_name,
.source = .{ .path = libPath(b, "/" ++ package_path) },
};
}

return cached_pkg.?;
}

pub fn build(b: *std.build.Builder) void {
const target = b.standardTargetOptions(.{});
const mode = b.standardOptimizeOption(.{});

_ = b.addModule(.{
.name = "getty",
.source_file = .{ .path = "src/getty.zig" },
});

tests(b, target, mode);
docs(b, target, mode);
clean(b);
Expand Down
5 changes: 5 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.{
.name = "getty",
.version = "0.4.0",
.dependencies = .{},
}
7 changes: 0 additions & 7 deletions gyro.zzz

This file was deleted.

5 changes: 0 additions & 5 deletions zigmod.yml

This file was deleted.

0 comments on commit 3992aaa

Please sign in to comment.