-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: make most dependencies optional
- Loading branch information
1 parent
b2ffc95
commit d21940b
Showing
4 changed files
with
45 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
//! Specialized TUI Widgets | ||
|
||
const opts = @import("build_options"); | ||
|
||
pub const border = @import("widgets/border.zig"); | ||
pub const alignment = @import("widgets/alignment.zig"); | ||
pub const Scrollbar = @import("widgets/Scrollbar.zig"); | ||
pub const Table = @import("widgets/Table.zig"); | ||
pub const TextInput = @import("widgets/TextInput.zig"); | ||
pub const nvim = @import("widgets/nvim.zig"); | ||
pub const ScrollView = @import("widgets/ScrollView.zig"); | ||
pub const LineNumbers = @import("widgets/LineNumbers.zig"); | ||
pub const TextView = @import("widgets/TextView.zig"); | ||
pub const CodeView = @import("widgets/CodeView.zig"); | ||
|
||
// Widgets with dependencies | ||
|
||
pub const TextInput = if (opts.text_input) @import("widgets/TextInput.zig") else undefined; | ||
pub const nvim = if (opts.nvim) @import("widgets/nvim.zig") else undefined; |