From 9dde8fe2b597456734add766f181142374aecc41 Mon Sep 17 00:00:00 2001 From: Speedy_Lex <78314533+speedy-lex@users.noreply.github.com> Date: Thu, 3 Jul 2025 14:55:35 +0200 Subject: [PATCH] install neonucleus.h into zig-out --- build.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.zig b/build.zig index 3576248..1dea115 100644 --- a/build.zig +++ b/build.zig @@ -94,6 +94,8 @@ pub fn build(b: *std.Build) void { const optimize = b.standardOptimizeOption(.{}); + const includeFiles = b.addInstallHeaderFile(b.path("src/neonucleus.h"), "neonucleus.h"); + const engineStatic = b.addStaticLibrary(.{ .name = "neonucleus", //.root_source_file = b.path("src/engine.zig"), @@ -113,10 +115,12 @@ pub fn build(b: *std.Build) void { const engineStep = b.step("engine", "Builds the engine as a static library"); engineStep.dependOn(&engineStatic.step); + engineStep.dependOn(&includeFiles.step); engineStep.dependOn(&b.addInstallArtifact(engineStatic, .{}).step); const sharedStep = b.step("shared", "Builds the engine as a shared library"); sharedStep.dependOn(&engineShared.step); + sharedStep.dependOn(&includeFiles.step); sharedStep.dependOn(&b.addInstallArtifact(engineShared, .{}).step); const emulator = b.addExecutable(.{