mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 14:43:28 +00:00
fix build
This commit is contained in:
12
build.zig
12
build.zig
@@ -150,6 +150,8 @@ fn common(b: *Build, opts: *Build.Step.Options, step: *Build.Step.Compile) !void
|
||||
mod.addImport("build_config", opts.createModule());
|
||||
mod.addImport("tigerbeetle-io", b.dependency("tigerbeetle_io", .{}).module("tigerbeetle_io"));
|
||||
|
||||
mod.addIncludePath(b.path("vendor/lightpanda"));
|
||||
|
||||
{
|
||||
// v8
|
||||
mod.link_libcpp = true;
|
||||
@@ -606,16 +608,6 @@ fn buildNghttp2(b: *Build, m: *Build.Module) !void {
|
||||
.root_module = m,
|
||||
});
|
||||
|
||||
const nghttp2_version_file = b.addWriteFile(
|
||||
"vendor/nghttp2/lib/includes/nghttp2/nghttp2ver.h",
|
||||
\\ #ifndef NGHTTP2VER_H
|
||||
\\ #define NGHTTP2VER_H
|
||||
\\ #define NGHTTP2_VERSION "1.66"
|
||||
\\ #define NGHTTP2_VERSION_NUM 0x014300
|
||||
\\ #endif /* NGHTTP2VER_H */
|
||||
);
|
||||
nghttp2.step.dependOn(&nghttp2_version_file.step);
|
||||
|
||||
const root = "vendor/nghttp2/";
|
||||
nghttp2.addIncludePath(b.path(root ++ "lib"));
|
||||
nghttp2.addIncludePath(b.path(root ++ "lib/includes"));
|
||||
|
||||
Reference in New Issue
Block a user