Skip to content

Commit

Permalink
fix(build.zig): make the configuration header portable
Browse files Browse the repository at this point in the history
  • Loading branch information
fjebaker authored and NanoMichael committed Aug 6, 2024
1 parent 9ead05f commit 086f4eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,14 @@ pub fn build(b: *std.Build) !void {
.optimize = optimize,
});

// also install the configuration header into the include directory
lib.step.dependOn(&install_config.step);

lib.linkLibCpp();
lib.addConfigHeader(conf_header);

lib.addIncludePath(b.path("lib"));
lib.defineCMacro("GLYPH_RENDER_TYPE", glyph_render_type);
lib.addIncludePath(b.path("zig-out/include"));
lib.addCSourceFiles(.{
.root = b.path("lib"),
.files = SOURCE_FILES,
Expand Down

0 comments on commit 086f4eb

Please sign in to comment.