diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-18 21:43:03 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-18 22:03:06 -0300 |
| commit | 92d553123673376adf6126ab90d49a22c5b833d2 (patch) | |
| tree | 2a4e83a7e5a0d8766358ce87ccebba72b95f9a2a /build/macos.zig | |
| parent | f9a3179542012ec1a700e2020ac9f616b819f972 (diff) | |
| download | pardes-92d553123673376adf6126ab90d49a22c5b833d2.tar.gz pardes-92d553123673376adf6126ab90d49a22c5b833d2.zip | |
abi: plain.zig and term.zig, the addon header and its Zig module, pardes.h and the replica stream's wire into abi/ (the reorganisation's tree, step 2c; abi.zig, the seam, is step 12's): plain, the addon's and pardes.h's modules as before from their new place, the wire a module of its own (`wire`, named by the core, the runtime and main.zig); shell-test runs the wire's tests on the core's set, since a window's set links the window's C, whose allocator gui.zig holds; nothing else changes: the ledger, frames byte-identical, replicas and process-test the base's
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build/macos.zig')
| -rw-r--r-- | build/macos.zig | 8 |
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{ |
