mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-23 07:45:20 +00:00
build: add cimgui to build
This commit is contained in:
@@ -5,7 +5,7 @@ pub fn build(b: *std.Build) !void {
|
||||
const target = b.standardTargetOptions(.{});
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
_ = b.addModule("imgui", .{ .source_file = .{ .path = "main.zig" } });
|
||||
_ = b.addModule("cimgui", .{ .source_file = .{ .path = "main.zig" } });
|
||||
|
||||
const imgui = b.dependency("imgui", .{});
|
||||
const lib = b.addStaticLibrary(.{
|
||||
|
||||
3
pkg/cimgui/c.zig
Normal file
3
pkg/cimgui/c.zig
Normal file
@@ -0,0 +1,3 @@
|
||||
pub usingnamespace @cImport({
|
||||
@cInclude("cimgui.h");
|
||||
});
|
||||
@@ -1 +1,3 @@
|
||||
pub const c = @import("c.zig");
|
||||
|
||||
test {}
|
||||
|
||||
Reference in New Issue
Block a user