mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-02 11:54:41 +00:00
add system SDK to build to enable cross compilation
This commit is contained in:
@@ -14,11 +14,12 @@ fn thisDir() []const u8 {
|
||||
return std.fs.path.dirname(@src().file) orelse ".";
|
||||
}
|
||||
|
||||
pub fn link(b: *std.build.Builder, step: *std.build.LibExeObjStep) !void {
|
||||
pub fn link(b: *std.build.Builder, step: *std.build.LibExeObjStep) !*std.build.LibExeObjStep {
|
||||
const lib = try buildFreetype(b, step);
|
||||
step.linkLibrary(lib);
|
||||
step.addIncludePath(include_path);
|
||||
step.addIncludePath(include_path_self);
|
||||
return lib;
|
||||
}
|
||||
|
||||
pub fn buildFreetype(
|
||||
|
||||
@@ -13,10 +13,11 @@ fn thisDir() []const u8 {
|
||||
return std.fs.path.dirname(@src().file) orelse ".";
|
||||
}
|
||||
|
||||
pub fn link(b: *std.build.Builder, step: *std.build.LibExeObjStep) !void {
|
||||
pub fn link(b: *std.build.Builder, step: *std.build.LibExeObjStep) !*std.build.LibExeObjStep {
|
||||
const libuv = try buildLibuv(b, step);
|
||||
step.linkLibrary(libuv);
|
||||
step.addIncludePath(include_path);
|
||||
return libuv;
|
||||
}
|
||||
|
||||
pub fn buildLibuv(
|
||||
|
||||
@@ -12,10 +12,11 @@ fn thisDir() []const u8 {
|
||||
return std.fs.path.dirname(@src().file) orelse ".";
|
||||
}
|
||||
|
||||
pub fn link(b: *std.build.Builder, step: *std.build.LibExeObjStep) !void {
|
||||
pub fn link(b: *std.build.Builder, step: *std.build.LibExeObjStep) !*std.build.LibExeObjStep {
|
||||
const tracy = try buildTracy(b, step);
|
||||
step.linkLibrary(tracy);
|
||||
step.addIncludePath(root);
|
||||
return tracy;
|
||||
}
|
||||
|
||||
pub fn buildTracy(
|
||||
|
||||
Reference in New Issue
Block a user