summaryrefslogtreecommitdiff
path: root/build/macos.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build/macos.zig')
-rw-r--r--build/macos.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/macos.zig b/build/macos.zig
index b865740e..c485d7c2 100644
--- a/build/macos.zig
+++ b/build/macos.zig
@@ -17,7 +17,7 @@ pub fn add(b: *std.Build, c: struct {
unit_profile: *std.Build.Step.Compile,
}) void {
const header = b.addTranslateC(.{
- .root_source_file = b.path("src/macos/pardes.h"),
+ .root_source_file = b.path("abi/pardes.h"),
.target = c.target,
.optimize = c.optimize,
});
@@ -39,7 +39,7 @@ pub fn add(b: *std.Build, c: struct {
else
&b.addInstallArtifact(lib, .{}).step;
b.getInstallStep().dependOn(install_lib);
- b.installFile("src/macos/pardes.h", "include/pardes.h");
+ b.installFile("abi/pardes.h", "include/pardes.h");
const app_step = b.step("macos-app", "assemble zig-out/pardes.app (needs macOS + swiftc)");
const dmg_step = b.step("macos-dmg", "package zig-out/pardes.dmg for distribution (needs macOS + swiftc)");
@@ -58,7 +58,7 @@ pub fn add(b: *std.Build, c: struct {
};
const link = b.addSystemCommand(&.{ "swiftc", swift_mode, "-target", triple, "-import-objc-header" });
- link.addFileArg(b.path("src/macos/pardes.h"));
+ link.addFileArg(b.path("abi/pardes.h"));
link.addArg("-o");
const app_bin = link.addOutputFileArg("pardes");
for ([_][]const u8{
@@ -145,7 +145,7 @@ pub fn add(b: *std.Build, c: struct {
const arch = if (c.target.result.cpu.arch == .aarch64) "arm64" else @tagName(c.target.result.cpu.arch);
const triple = b.fmt("{s}-apple-macos{d}.{d}", .{ arch, macos_min_version.major, macos_min_version.minor });
const e2e = b.addSystemCommand(&.{ "swiftc", "-O", "-target", triple, "-import-objc-header" });
- e2e.addFileArg(b.path("src/macos/pardes.h"));
+ e2e.addFileArg(b.path("abi/pardes.h"));
e2e.addArg("-o");
const e2e_bin = e2e.addOutputFileArg("pardes-macos-e2e");
for ([_][]const u8{