diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-18 21:23:22 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-18 21:43:03 -0300 |
| commit | f9a3179542012ec1a700e2020ac9f616b819f972 (patch) | |
| tree | 73f4cb241876196331f7b28c9f773301bd341a7f /build/macos.zig | |
| parent | a75956bb3443aa8aac778d2ff12c42f5ef99e0e9 (diff) | |
| download | pardes-f9a3179542012ec1a700e2020ac9f616b819f972.tar.gz pardes-f9a3179542012ec1a700e2020ac9f616b819f972.zip | |
dev: the frontends (dev/tui, dev/gui, the macOS app's Swift and resources in dev/macos), host_io, file_watch, fonts, the lsp client and Scip, Art, jump_trail, glide and vaxis_input into dev/ (the reorganisation's tree, step 2b): module `dev` (dev/root.zig) beside the core and the runtime, each naming the others; the window wired into it, sketchbook's devices imported as `sketchbook` (its `dev` would be ours); pardes.zig keeps its re-exports (host_io, file_watch, glide, fonts) so every caller reads as before; core-test and shell-test run the devices' test program too, so the same tests run (the ledger, tui and gui); nothing else changes: 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 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/build/macos.zig b/build/macos.zig index 7289e70a..b865740e 100644 --- a/build/macos.zig +++ b/build/macos.zig @@ -23,7 +23,7 @@ pub fn add(b: *std.Build, c: struct { }); c.root_mod.addImport("pardes.h", header.createModule()); // The app's watcher, which macos.zig's test reads beside its own. - c.root_mod.addAnonymousImport("macos/Sources/FileWatcher.swift", .{ .root_source_file = b.path("src/macos/Sources/FileWatcher.swift") }); + c.root_mod.addAnonymousImport("macos/Sources/FileWatcher.swift", .{ .root_source_file = b.path("dev/macos/Sources/FileWatcher.swift") }); const lib = b.addLibrary(.{ .name = "pardes", @@ -68,7 +68,7 @@ pub fn add(b: *std.Build, c: struct { "ScenePostprocessor.swift", "FileWatcher.swift", }) |src| - link.addFileArg(b.path(b.fmt("src/macos/Sources/{s}", .{src}))); + link.addFileArg(b.path(b.fmt("dev/macos/Sources/{s}", .{src}))); link.addFileArg(lib_archive); link.addArgs(&.{ "-lc++", @@ -86,17 +86,17 @@ pub fn add(b: *std.Build, c: struct { const icon_build = b.addSystemCommand(&.{ "swiftc", "-O", "-target", triple, "-o" }); const icon_bin = icon_build.addOutputFileArg("pardes-icon"); - icon_build.addFileArg(b.path("src/macos/icon.swift")); + icon_build.addFileArg(b.path("dev/macos/icon.swift")); const icon_run = std.Build.Step.Run.create(b, "pardes-icon"); icon_run.addFileArg(icon_bin); - icon_run.addFileArg(b.path("src/macos/icon.png")); + icon_run.addFileArg(b.path("dev/macos/icon.png")); const icon_dir = icon_run.addOutputDirectoryArg("Resources"); const plist = b.addSystemCommand(&.{ "plutil", "-replace", "LSMinimumSystemVersion", "-string", min_version, "-o", }); const plist_out = plist.addOutputFileArg("Info.plist"); - plist.addFileArg(b.path("src/macos/Info.plist")); + plist.addFileArg(b.path("dev/macos/Info.plist")); const version_plist = b.addSystemCommand(&.{ "plutil", "-replace", "CFBundleShortVersionString", "-string", display_version, "-o", @@ -149,10 +149,10 @@ pub fn add(b: *std.Build, c: struct { e2e.addArg("-o"); const e2e_bin = e2e.addOutputFileArg("pardes-macos-e2e"); for ([_][]const u8{ - "src/macos/Sources/PardesView.swift", - "src/macos/Sources/ScenePostprocessor.swift", - "src/macos/Sources/FileWatcher.swift", - "src/macos/Sources/AppDelegate.swift", + "dev/macos/Sources/PardesView.swift", + "dev/macos/Sources/ScenePostprocessor.swift", + "dev/macos/Sources/FileWatcher.swift", + "dev/macos/Sources/AppDelegate.swift", "test/macos_e2e.swift", }) |source| e2e.addFileArg(b.path(source)); e2e.addFileArg(lib_archive); |
