summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-07-05 13:36:26 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-07-05 13:36:31 -0700
commit0929f39e890438126b599a9937d1222b31a906f6 (patch)
tree99961d052db6a3b6e4696a13ccaa93dc845a4c9a /build.zig
parent8653229607572c2e591f8d4e44c1bc4f853ce456 (diff)
build: xcodebuild properly sets up resources
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig20
1 files changed, 12 insertions, 8 deletions
diff --git a/build.zig b/build.zig
index a5e5407b6..024e2db61 100644
--- a/build.zig
+++ b/build.zig
@@ -104,7 +104,12 @@ pub fn build(b: *std.Build) !void {
const macos_app = try buildpkg.GhosttyXcodebuild.init(
b,
&config,
- &xcframework,
+ .{
+ .xcframework = &xcframework,
+ .docs = &docs,
+ .i18n = &i18n,
+ .resources = &resources,
+ },
);
if (config.emit_macos_app) {
macos_app.install();
@@ -144,15 +149,14 @@ pub fn build(b: *std.Build) !void {
const macos_app_native_only = try buildpkg.GhosttyXcodebuild.init(
b,
&config,
- &xcframework_native,
+ .{
+ .xcframework = &xcframework_native,
+ .docs = &docs,
+ .i18n = &i18n,
+ .resources = &resources,
+ },
);
- // The app depends on the resources and i18n to be in the
- // install directory too.
- resources.addStepDependencies(&macos_app_native_only.build.step);
- i18n.addStepDependencies(&macos_app_native_only.build.step);
- docs.installDummy(&macos_app_native_only.build.step);
-
const run_step = b.step("run", "Run the app");
run_step.dependOn(&macos_app_native_only.open.step);
}