mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
Merge pull request #19 from speedy-lex/install-headers
install neonucleus.h into zig-out
This commit is contained in:
commit
2d4bec8734
@ -88,6 +88,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"),
|
||||
@ -107,10 +109,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(.{
|
||||
|
Loading…
x
Reference in New Issue
Block a user