mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-26 10:41:58 +00:00
build: add -Demit-macos-app
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user