mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-25 19:08:39 +03:00
build API change: update usage of addCSourceFiles
This commit is contained in:
@ -157,7 +157,7 @@ pub fn build(b: *std.Build) !void {
|
||||
}
|
||||
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.files = srcs,
|
||||
.flags = flags.items,
|
||||
});
|
||||
|
@ -46,7 +46,7 @@ pub fn build(b: *std.Build) !void {
|
||||
if (libpng_enabled) try flags.append("-DFT_CONFIG_OPTION_USE_PNG=1");
|
||||
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.files = srcs,
|
||||
.flags = flags.items,
|
||||
});
|
||||
|
@ -66,7 +66,7 @@ fn buildGlslang(
|
||||
});
|
||||
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.flags = flags.items,
|
||||
.files = &.{
|
||||
// GenericCodeGen
|
||||
@ -125,7 +125,7 @@ fn buildGlslang(
|
||||
|
||||
if (target.result.os.tag != .windows) {
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.flags = flags.items,
|
||||
.files = &.{
|
||||
"glslang/OSDependent/Unix/ossource.cpp",
|
||||
@ -133,7 +133,7 @@ fn buildGlslang(
|
||||
});
|
||||
} else {
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.flags = flags.items,
|
||||
.files = &.{
|
||||
"glslang/OSDependent/Windows/ossource.cpp",
|
||||
|
@ -73,7 +73,7 @@ pub fn build(b: *std.Build) !void {
|
||||
|
||||
lib.addCSourceFiles(.{ .flags = flags.items, .files = &.{"bridge.cpp"} });
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.flags = flags.items,
|
||||
.files = &.{
|
||||
"hwy/aligned_allocator.cc",
|
||||
|
@ -35,7 +35,7 @@ pub fn build(b: *std.Build) !void {
|
||||
});
|
||||
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.files = srcs,
|
||||
.flags = flags.items,
|
||||
});
|
||||
|
@ -95,7 +95,7 @@ pub fn build(b: *std.Build) !void {
|
||||
}
|
||||
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.files = srcs,
|
||||
.flags = flags.items,
|
||||
});
|
||||
|
@ -71,7 +71,7 @@ fn buildOniguruma(
|
||||
defer flags.deinit();
|
||||
try flags.appendSlice(&.{});
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.flags = flags.items,
|
||||
.files = &.{
|
||||
"src/regerror.c",
|
||||
|
@ -57,7 +57,7 @@ pub fn build(b: *std.Build) !void {
|
||||
}
|
||||
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.files = srcs,
|
||||
.flags = flags.items,
|
||||
});
|
||||
|
@ -58,7 +58,7 @@ fn buildSpirvCross(
|
||||
});
|
||||
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.flags = flags.items,
|
||||
.files = &.{
|
||||
// Core
|
||||
|
@ -21,7 +21,7 @@ pub fn build(b: *std.Build) !void {
|
||||
try flags.append("-DUTF8PROC_EXPORTS");
|
||||
defer flags.deinit();
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.files = &.{"utf8proc.c"},
|
||||
.flags = flags.items,
|
||||
});
|
||||
|
@ -34,7 +34,7 @@ pub fn build(b: *std.Build) !void {
|
||||
"-DZ_HAVE_UNISTD_H",
|
||||
});
|
||||
lib.addCSourceFiles(.{
|
||||
.dependency = upstream,
|
||||
.root = upstream.path(""),
|
||||
.files = srcs,
|
||||
.flags = flags.items,
|
||||
});
|
||||
|
Reference in New Issue
Block a user