Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support for build.zig.zon #34

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/genzig.zig
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ pub fn main() !u8 {
try src_dir.copyFile(mod ++ ".zig", out_win32_dir, mod ++ ".zig", .{});
}
try src_dir.copyFile("zigwin32.build.zig", out_dir, "build.zig", .{});
try src_dir.copyFile("zigwin32.build.zig.zon", out_dir, "build.zig.zon", .{});
}
print_time_summary = true;

Expand Down
33 changes: 33 additions & 0 deletions src/zigwin32.build.zig.zon
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.{
.name = "zigwin32",
// This is a [Semantic Version](https://semver.org/).
// In a future version of Zig it will be used for package deduplication.
.version = "25.0.28",

// This field is optional.
// This is currently advisory only; Zig does not yet do anything
// with this value.
.minimum_zig_version = "0.11.0",

// This field is optional.
// Each dependency must either provide a `url` and `hash`, or a `path`.
// `zig build --fetch` can be used to fetch all dependencies of a package, recursively.
// Once all dependencies are fetched, `zig build` no longer requires
// internet connectivity.
.dependencies = .{},

// Specifies the set of files and directories that are included in this package.
// Only files and directories listed here are included in the `hash` that
// is computed for this package.
// Paths are relative to the build root. Use the empty string (`""`) to refer to
// the build root itself.
// A directory listed here means that all files within, recursively, are included.
.paths = .{
"build.zig",
"build.zig.zon",
"win32",
"win32.zig",
"LICENSE",
"README.md",
},
}