freetype: disable harfbuzz for now (build is broken, clang warning cannot be disabled)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3a561ec1c7
commit
142c8b5b2e
1 changed files with 22 additions and 18 deletions
|
|
@ -96,29 +96,32 @@ pub fn testStep(b: *Build, optimize: std.builtin.OptimizeMode, target: std.zig.C
|
|||
.freetype = .{
|
||||
.brotli = true,
|
||||
},
|
||||
.harfbuzz = .{},
|
||||
// TODO: harfbuzz is broken
|
||||
// .harfbuzz = .{},
|
||||
});
|
||||
main_tests.main_pkg_path = sdkPath("/");
|
||||
b.installArtifact(main_tests);
|
||||
|
||||
const harfbuzz_tests = b.addTest(.{
|
||||
.name = "harfbuzz-tests",
|
||||
.root_source_file = .{ .path = sdkPath("/src/harfbuzz/main.zig") },
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
harfbuzz_tests.addModule("freetype", module(b));
|
||||
link(b, harfbuzz_tests, .{
|
||||
.freetype = .{
|
||||
.brotli = true,
|
||||
},
|
||||
.harfbuzz = .{},
|
||||
});
|
||||
harfbuzz_tests.main_pkg_path = sdkPath("/");
|
||||
b.installArtifact(harfbuzz_tests);
|
||||
// TODO: harfbuzz is broken
|
||||
// const harfbuzz_tests = b.addTest(.{
|
||||
// .name = "harfbuzz-tests",
|
||||
// .root_source_file = .{ .path = sdkPath("/src/harfbuzz/main.zig") },
|
||||
// .target = target,
|
||||
// .optimize = optimize,
|
||||
// });
|
||||
// harfbuzz_tests.addModule("freetype", module(b));
|
||||
// link(b, harfbuzz_tests, .{
|
||||
// .freetype = .{
|
||||
// .brotli = true,
|
||||
// },
|
||||
// .harfbuzz = .{},
|
||||
// });
|
||||
// harfbuzz_tests.main_pkg_path = sdkPath("/");
|
||||
// b.installArtifact(harfbuzz_tests);
|
||||
|
||||
const main_tests_run = b.addRunArtifact(main_tests);
|
||||
main_tests_run.step.dependOn(&b.addRunArtifact(harfbuzz_tests).step);
|
||||
// TODO: harfbuzz is broken
|
||||
// main_tests_run.step.dependOn(&b.addRunArtifact(harfbuzz_tests).step);
|
||||
return main_tests_run;
|
||||
}
|
||||
|
||||
|
|
@ -194,10 +197,11 @@ pub fn buildFreetype(b: *Build, optimize: std.builtin.OptimizeMode, target: std.
|
|||
pub fn buildHarfbuzz(b: *Build, optimize: std.builtin.OptimizeMode, target: std.zig.CrossTarget, options: HarfbuzzOptions) *std.build.CompileStep {
|
||||
const lib = b.addStaticLibrary(.{
|
||||
.name = "harfbuzz",
|
||||
.root_source_file = .{ .path = hb_root ++ "/src/harfbuzz.cc" },
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
// TODO: `-Wno-error` is not respected for some reason; as a result harfbuzz builds are broken.
|
||||
lib.addCSourceFile(hb_root ++ "/src/harfbuzz.cc", &.{"-Wno-error=cast-function-type-strict"});
|
||||
lib.linkLibCpp();
|
||||
lib.addIncludePath(hb_include_path);
|
||||
lib.addIncludePath(ft_include_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue