mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
drop system-package option
This commit is contained in:

committed by
Mitchell Hashimoto

parent
cf561fcc55
commit
9c95ce28ae
@ -83,8 +83,7 @@ zig build \
|
||||
--prefix /usr \
|
||||
--system /tmp/offline-cache/p \
|
||||
-Doptimize=ReleaseFast \
|
||||
-Dcpu=baseline \
|
||||
-Dsystem-package=true
|
||||
-Dcpu=baseline
|
||||
```
|
||||
|
||||
The build options are covered in the next section, but this will build
|
||||
|
@ -99,7 +99,6 @@ in
|
||||
"-Dgtk-x11=${lib.boolToString enableX11}"
|
||||
"-Dgtk-wayland=${lib.boolToString enableWayland}"
|
||||
"-Dstrip=${lib.boolToString strip}"
|
||||
"-Dsystem-package=true"
|
||||
];
|
||||
|
||||
outputs = [
|
||||
|
@ -45,7 +45,6 @@ version: std.SemanticVersion = .{ .major = 0, .minor = 0, .patch = 0 },
|
||||
pie: bool = false,
|
||||
strip: bool = false,
|
||||
patch_rpath: ?[]const u8 = null,
|
||||
system_package: bool = false,
|
||||
|
||||
/// Artifacts
|
||||
flatpak: bool = false,
|
||||
@ -88,11 +87,7 @@ pub fn init(b: *std.Build) !Config {
|
||||
// This is set to true when we're building a system package. For now
|
||||
// this is trivially detected using the "system_package_mode" bool
|
||||
// but we may want to make this more sophisticated in the future.
|
||||
const system_package = b.option(
|
||||
bool,
|
||||
"system-package",
|
||||
"Controls whether we build a system package",
|
||||
) orelse b.graph.system_package_mode;
|
||||
const system_package = b.graph.system_package_mode;
|
||||
|
||||
// This specifies our target wasm runtime. For now only one semi-usable
|
||||
// one exists so this is hardcoded.
|
||||
@ -266,8 +261,6 @@ pub fn init(b: *std.Build) !Config {
|
||||
.ReleaseFast, .ReleaseSmall => true,
|
||||
};
|
||||
|
||||
config.system_package = system_package;
|
||||
|
||||
//---------------------------------------------------------------
|
||||
// Artifacts to Emit
|
||||
|
||||
|
@ -267,7 +267,7 @@ pub fn init(b: *std.Build, cfg: *const Config) !GhosttyResources {
|
||||
b.fmt(
|
||||
"{s}/systemd/user/com.mitchellh.ghostty{s}.service",
|
||||
.{
|
||||
if (cfg.system_package) "lib" else "share",
|
||||
if (b.graph.system_package_mode) "lib" else "share",
|
||||
switch (cfg.optimize) {
|
||||
.Debug, .ReleaseSafe => "-debug",
|
||||
.ReleaseFast, .ReleaseSmall => "",
|
||||
|
Reference in New Issue
Block a user