Compare commits
2 Commits
april-fool
...
ca331c60c6
Author | SHA1 | Date | |
---|---|---|---|
ca331c60c6 | |||
0010925caa |
@@ -78,7 +78,7 @@ arm7wrestler GBA Fixed | [destoer](https://github.com/destoer)
|
|||||||
|
|
||||||
## Compiling
|
## Compiling
|
||||||
|
|
||||||
Most recently built on Zig [v0.11.0-dev.1580+a5b34a61a](https://github.com/ziglang/zig/tree/a5b34a61a)
|
Most recently built on Zig [v0.11.0-dev.2168+322ace70f](https://github.com/ziglang/zig/tree/322ace70f)
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|
||||||
|
10
build.zig
10
build.zig
@@ -8,7 +8,7 @@ const nfd = @import("lib/nfd-zig/build.zig");
|
|||||||
|
|
||||||
pub fn build(b: *std.build.Builder) void {
|
pub fn build(b: *std.build.Builder) void {
|
||||||
// Minimum Zig Version
|
// Minimum Zig Version
|
||||||
const min_ver = std.SemanticVersion.parse("0.11.0-dev.1580+a5b34a61a") catch return; // https://github.com/ziglang/zig/commit/a5b34a61a
|
const min_ver = std.SemanticVersion.parse("0.11.0-dev.2168+322ace70f") catch return; // https://github.com/ziglang/zig/commit/322ace70f
|
||||||
if (builtin.zig_version.order(min_ver).compare(.lt)) {
|
if (builtin.zig_version.order(min_ver).compare(.lt)) {
|
||||||
std.log.err("{s}", .{b.fmt("Zig v{} does not meet the minimum version requirement. (Zig v{})", .{ builtin.zig_version, min_ver })});
|
std.log.err("{s}", .{b.fmt("Zig v{} does not meet the minimum version requirement. (Zig v{})", .{ builtin.zig_version, min_ver })});
|
||||||
std.os.exit(1);
|
std.os.exit(1);
|
||||||
@@ -48,7 +48,8 @@ pub fn build(b: *std.build.Builder) void {
|
|||||||
exe.addAnonymousModule("zba-util", .{ .source_file = .{ .path = "lib/zba-util/src/lib.zig" } });
|
exe.addAnonymousModule("zba-util", .{ .source_file = .{ .path = "lib/zba-util/src/lib.zig" } });
|
||||||
|
|
||||||
// gdbstub
|
// gdbstub
|
||||||
gdbstub.link(exe);
|
exe.addModule("gdbstub", gdbstub.getModule(b));
|
||||||
|
|
||||||
// NativeFileDialog(ue) Bindings
|
// NativeFileDialog(ue) Bindings
|
||||||
exe.linkLibrary(nfd.makeLib(b, target, optimize));
|
exe.linkLibrary(nfd.makeLib(b, target, optimize));
|
||||||
exe.addModule("nfd", nfd.getModule(b));
|
exe.addModule("nfd", nfd.getModule(b));
|
||||||
@@ -59,9 +60,8 @@ pub fn build(b: *std.build.Builder) void {
|
|||||||
exe.addModule("sdl2", sdk.getNativeModule());
|
exe.addModule("sdl2", sdk.getNativeModule());
|
||||||
|
|
||||||
// Dear ImGui bindings
|
// Dear ImGui bindings
|
||||||
const zgui_pkg = zgui.package(b, .{ .options = .{ .backend = .sdl2_opengl3 } });
|
const zgui_pkg = zgui.package(b, target, optimize, .{ .options = .{ .backend = .sdl2_opengl3 } });
|
||||||
exe.addModule("zgui", zgui_pkg.module);
|
zgui_pkg.link(exe);
|
||||||
zgui.link(exe, zgui_pkg.options);
|
|
||||||
|
|
||||||
exe.install();
|
exe.install();
|
||||||
|
|
||||||
|
Submodule lib/SDL.zig updated: aa063fab40...cc3b023f50
Submodule lib/zba-gdbstub updated: acb59994fc...215e053b9a
2
lib/zgui
2
lib/zgui
Submodule lib/zgui updated: ceca3dd660...70d7c0dc02
Submodule lib/zig-clap updated: cb13519431...6310cbd576
Reference in New Issue
Block a user