build: add -Demit-macos-app

This commit is contained in:
Mitchell Hashimoto
2025-07-04 21:16:23 -07:00
parent 91ee75ae4d
commit 5fc0bbc58f
3 changed files with 95 additions and 64 deletions

View File

@@ -50,14 +50,15 @@ patch_rpath: ?[]const u8 = null,
/// Artifacts
flatpak: bool = false,
emit_test_exe: bool = false,
emit_bench: bool = false,
emit_helpgen: bool = false,
emit_docs: bool = false,
emit_webdata: bool = false,
emit_xcframework: bool = false,
emit_helpgen: bool = false,
emit_macos_app: bool = false,
emit_terminfo: bool = false,
emit_termcap: bool = false,
emit_test_exe: bool = false,
emit_xcframework: bool = false,
emit_webdata: bool = false,
/// Environmental properties
env: std.process.EnvMap,
@@ -350,6 +351,12 @@ pub fn init(b: *std.Build) !Config {
!config.emit_test_exe and
!config.emit_helpgen);
config.emit_macos_app = b.option(
bool,
"emit-macos-app",
"Build and install the macOS app bundle.",
) orelse config.emit_xcframework;
//---------------------------------------------------------------
// System Packages

View File

@@ -65,8 +65,8 @@ pub fn init(
build.expectExitCode(0);
// Capture stdout/stderr so we don't pollute our zig build
_ = build.captureStdOut();
_ = build.captureStdErr();
// _ = build.captureStdOut();
// _ = build.captureStdErr();
break :build build;
};