mirror of
https://git.robbyzambito.me/zaprus
synced 2025-12-20 08:14:50 +00:00
use InstallHeader function to install the header
This commit is contained in:
@@ -59,12 +59,7 @@ pub fn build(b: *std.Build) void {
|
||||
b.installArtifact(dynamic_lib);
|
||||
|
||||
// C Headers
|
||||
const c_header = b.addInstallFileWithDir(
|
||||
b.path("include/zaprus.h"),
|
||||
.header,
|
||||
"zaprus.h",
|
||||
);
|
||||
|
||||
const c_header = b.addInstallHeaderFile(b.path("include/zaprus.h"), "zaprus.h");
|
||||
b.getInstallStep().dependOn(&c_header.step);
|
||||
|
||||
// This creates another `std.Build.Step.Compile`, but this one builds an executable
|
||||
|
||||
Reference in New Issue
Block a user