refactor: make bin_path a module
This commit is contained in:
parent
5ad074c681
commit
845403f2ae
3 changed files with 8 additions and 2 deletions
|
@ -305,6 +305,10 @@ pub fn build_exe(
|
|||
.root_source_file = b.path("src/color.zig"),
|
||||
});
|
||||
|
||||
const bin_path_mod = b.createModule(.{
|
||||
.root_source_file = b.path("src/bin_path.zig"),
|
||||
});
|
||||
|
||||
const Buffer_mod = b.createModule(.{
|
||||
.root_source_file = b.path("src/buffer/Buffer.zig"),
|
||||
.imports = &.{
|
||||
|
@ -426,6 +430,7 @@ pub fn build_exe(
|
|||
.{ .name = "thespian", .module = thespian_mod },
|
||||
.{ .name = "cbor", .module = cbor_mod },
|
||||
.{ .name = "shell", .module = shell_mod },
|
||||
.{ .name = "bin_path", .module = bin_path_mod },
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -538,6 +543,7 @@ pub fn build_exe(
|
|||
exe.root_module.addImport("input", input_mod);
|
||||
exe.root_module.addImport("syntax", syntax_mod);
|
||||
exe.root_module.addImport("color", color_mod);
|
||||
exe.root_module.addImport("bin_path", bin_path_mod);
|
||||
exe.root_module.addImport("version", b.createModule(.{ .root_source_file = version_file }));
|
||||
exe.root_module.addImport("version_info", b.createModule(.{ .root_source_file = version_info_file }));
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ const syntax = @import("syntax");
|
|||
const builtin = @import("builtin");
|
||||
const RGB = @import("color").RGB;
|
||||
|
||||
const bin_path = @import("bin_path.zig");
|
||||
const bin_path = @import("bin_path");
|
||||
|
||||
const checkmark_width = if (builtin.os.tag != .windows) 2 else 3;
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ const cbor = @import("cbor");
|
|||
const thespian = @import("thespian");
|
||||
const flags = @import("flags");
|
||||
const builtin = @import("builtin");
|
||||
const bin_path = @import("bin_path");
|
||||
|
||||
const bin_path = @import("bin_path.zig");
|
||||
const list_languages = @import("list_languages.zig");
|
||||
pub const file_link = @import("file_link.zig");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue