Compare commits
13 Commits
c420fec3c6
...
2c8e3cb726
Author | SHA1 | Date |
---|---|---|
Rekai Nyangadzayi Musuka | 2c8e3cb726 | |
Rekai Nyangadzayi Musuka | f2d021a829 | |
Rekai Nyangadzayi Musuka | 826fa4524d | |
Rekai Nyangadzayi Musuka | e3776e65ed | |
Rekai Nyangadzayi Musuka | 28217dd37e | |
Rekai Nyangadzayi Musuka | f3d86f3fa0 | |
Rekai Nyangadzayi Musuka | 59b7d4f04b | |
Rekai Nyangadzayi Musuka | a12f09cd8d | |
Rekai Nyangadzayi Musuka | 2baa3c83e9 | |
Rekai Nyangadzayi Musuka | 2607b1ecb6 | |
Rekai Nyangadzayi Musuka | 0669c9917b | |
Rekai Nyangadzayi Musuka | 8722f56f14 | |
Rekai Nyangadzayi Musuka | c3be1c0a67 |
24
build.zig
24
build.zig
|
@ -26,38 +26,36 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
exe.setMainPkgPath("."); // Necessary so that src/main.zig can embed example.toml
|
exe.setMainPkgPath("."); // Necessary so that src/main.zig can embed example.toml
|
||||||
|
|
||||||
// Known Folders (%APPDATA%, XDG, etc.)
|
// Known Folders (%APPDATA%, XDG, etc.)
|
||||||
exe.addPackagePath("known_folders", "lib/known-folders/known-folders.zig");
|
exe.addAnonymousModule("known_folders", .{ .source_file = .{ .path = "lib/known-folders/known-folders.zig" } });
|
||||||
|
|
||||||
// DateTime Library
|
// DateTime Library
|
||||||
exe.addPackagePath("datetime", "lib/zig-datetime/src/main.zig");
|
exe.addAnonymousModule("datetime", .{ .source_file = .{ .path = "lib/zig-datetime/src/main.zig" } });
|
||||||
|
|
||||||
// Bitfield type from FlorenceOS: https://github.com/FlorenceOS/
|
// Bitfield type from FlorenceOS: https://github.com/FlorenceOS/
|
||||||
// exe.addPackage(.{ .name = "bitfield", .path = .{ .path = "lib/util/bitfield.zig" } });
|
exe.addAnonymousModule("bitfield", .{ .source_file = .{ .path = "lib/util/bitfield.zig" } });
|
||||||
exe.addPackagePath("bitfield", "lib/util/bitfield.zig");
|
|
||||||
|
|
||||||
// Argument Parsing Library
|
// Argument Parsing Library
|
||||||
exe.addPackagePath("clap", "lib/zig-clap/clap.zig");
|
exe.addAnonymousModule("clap", .{ .source_file = .{ .path = "lib/zig-clap/clap.zig" } });
|
||||||
|
|
||||||
// TOML Library
|
// TOML Library
|
||||||
exe.addPackagePath("toml", "lib/zig-toml/src/toml.zig");
|
exe.addAnonymousModule("toml", .{ .source_file = .{ .path = "lib/zig-toml/src/toml.zig" } });
|
||||||
|
|
||||||
// OpenGL 3.3 Bindings
|
// OpenGL 3.3 Bindings
|
||||||
exe.addPackagePath("gl", "lib/gl.zig");
|
exe.addAnonymousModule("gl", .{ .source_file = .{ .path = "lib/gl.zig" } });
|
||||||
|
|
||||||
// NativeFileDialog(ue) Bindings
|
// NativeFileDialog(ue) Bindings
|
||||||
exe.linkLibrary(nfd.makeLib(b, target, optimize));
|
exe.linkLibrary(nfd.makeLib(b, target, optimize));
|
||||||
exe.addPackage(nfd.getPackage("nfd"));
|
exe.addModule("nfd", nfd.getModule(b));
|
||||||
|
|
||||||
// Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig
|
// Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig
|
||||||
const sdk = Sdk.init(b, null);
|
const sdk = Sdk.init(b, null);
|
||||||
sdk.link(exe, .dynamic);
|
sdk.link(exe, .dynamic);
|
||||||
exe.addPackage(sdk.getNativePackage("sdl2"));
|
exe.addModule("sdl2", sdk.getNativeModule());
|
||||||
|
|
||||||
// Dear ImGui bindings
|
// Dear ImGui bindings
|
||||||
const zgui_options = zgui.BuildOptionsStep.init(b, .{ .backend = .sdl2_opengl3 });
|
const zgui_pkg = zgui.package(b, .{ .options = .{ .backend = .sdl2_opengl3 } });
|
||||||
const zgui_pkg = zgui.getPkg(&.{zgui_options.getPkg()});
|
exe.addModule("zgui", zgui_pkg.module);
|
||||||
zgui.link(exe, zgui_options);
|
zgui.link(exe, zgui_pkg.options);
|
||||||
exe.addPackage(zgui_pkg);
|
|
||||||
|
|
||||||
exe.install();
|
exe.install();
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 59a458abd9220703ca4d8b7f99080780c61c2f8c
|
Subproject commit 6b33f1f4299ec8814e9fb3b206cda37791ced574
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6b37490ac7285133bf09441850b8102c9728a776
|
Subproject commit 53fe3b676f32e59d46f4fd201d7ab200e5f6cb98
|
|
@ -1 +1 @@
|
||||||
Subproject commit b8d56260294636f9d7bf596cb558b697e873793f
|
Subproject commit 5e5098bcaf2643d35199ce556da8091626a4d2ef
|
2
lib/zgui
2
lib/zgui
|
@ -1 +1 @@
|
||||||
Subproject commit f9744ec8d613028b908896c410be937b5513f73b
|
Subproject commit 12e480f30d1192eda18bd9245f41f6ff2d4055bd
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6c9ca9025199b145c42a75d10cadb3f97879ee6d
|
Subproject commit 272d8e2088b2cae037349fb260dc05ec46bba422
|
Loading…
Reference in New Issue