mirror of https://github.com/fairyglade/ly.git
Merge pull request 'Refactor: Pull termbox2 in as a Zig dependency' (#799) from jlucaso/ly:refactor/termbox2-dependency into master
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/799 Reviewed-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
commit
98f59a69cc
|
@ -68,13 +68,17 @@ pub fn build(b: *std.Build) !void {
|
|||
const clap = b.dependency("clap", .{ .target = target, .optimize = optimize });
|
||||
exe.root_module.addImport("clap", clap.module("clap"));
|
||||
|
||||
exe.addIncludePath(b.path("include"));
|
||||
const termbox_dep = b.dependency("termbox2", .{
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
||||
exe.linkSystemLibrary("pam");
|
||||
if (enable_x11_support) exe.linkSystemLibrary("xcb");
|
||||
exe.linkLibC();
|
||||
|
||||
const translate_c = b.addTranslateC(.{
|
||||
.root_source_file = b.path("include/termbox2.h"),
|
||||
.root_source_file = termbox_dep.path("termbox2.h"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
.url = "https://github.com/Kawaii-Ash/zigini/archive/2ed3d417f17fab5b0ee8cad8a63c6d62d7ac1042.tar.gz",
|
||||
.hash = "zigini-0.3.1-BSkB7XJGAAB2E-sKyzhTaQCBlYBL8yqzE4E_jmSY99sC",
|
||||
},
|
||||
.termbox2 = .{
|
||||
.url = "git+https://github.com/AnErrupTion/termbox2?ref=get_cell#e975d250ee6567773400e9d5b0b5c2f175349c57",
|
||||
.hash = "N-V-__8AAMruBACJ7xT-O64hnS7lNeTiZQMketHdkHKrR1A8",
|
||||
},
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
|
|
4321
include/termbox2.h
4321
include/termbox2.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue