mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 06:33:29 +00:00
fix build
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,4 +5,3 @@ zig-out
|
|||||||
/vendor/libiconv/
|
/vendor/libiconv/
|
||||||
lightpanda.id
|
lightpanda.id
|
||||||
/v8/
|
/v8/
|
||||||
/vendor/nghttp2/lib/includes/nghttp2/nghttp2ver.h
|
|
||||||
|
|||||||
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("build_config", opts.createModule());
|
||||||
mod.addImport("tigerbeetle-io", b.dependency("tigerbeetle_io", .{}).module("tigerbeetle_io"));
|
mod.addImport("tigerbeetle-io", b.dependency("tigerbeetle_io", .{}).module("tigerbeetle_io"));
|
||||||
|
|
||||||
|
mod.addIncludePath(b.path("vendor/lightpanda"));
|
||||||
|
|
||||||
{
|
{
|
||||||
// v8
|
// v8
|
||||||
mod.link_libcpp = true;
|
mod.link_libcpp = true;
|
||||||
@@ -606,16 +608,6 @@ fn buildNghttp2(b: *Build, m: *Build.Module) !void {
|
|||||||
.root_module = m,
|
.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/";
|
const root = "vendor/nghttp2/";
|
||||||
nghttp2.addIncludePath(b.path(root ++ "lib"));
|
nghttp2.addIncludePath(b.path(root ++ "lib"));
|
||||||
nghttp2.addIncludePath(b.path(root ++ "lib/includes"));
|
nghttp2.addIncludePath(b.path(root ++ "lib/includes"));
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ const std = @import("std");
|
|||||||
|
|
||||||
const log = @import("log.zig");
|
const log = @import("log.zig");
|
||||||
const URL = @import("url.zig").URL;
|
const URL = @import("url.zig").URL;
|
||||||
const http = @import("http/client.zig");
|
|
||||||
const page = @import("browser/page.zig");
|
const page = @import("browser/page.zig");
|
||||||
|
const Http = @import("http/Http.zig");
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ pub const Notification = struct {
|
|||||||
arena: Allocator,
|
arena: Allocator,
|
||||||
id: usize,
|
id: usize,
|
||||||
url: *const std.Uri,
|
url: *const std.Uri,
|
||||||
method: http.Method,
|
method: Http.Method,
|
||||||
has_body: bool,
|
has_body: bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
5
vendor/lightpanda/nghttp2/nghttp2ver.h
vendored
Normal file
5
vendor/lightpanda/nghttp2/nghttp2ver.h
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#ifndef NGHTTP2VER_H
|
||||||
|
#define NGHTTP2VER_H
|
||||||
|
#define NGHTTP2_VERSION "1.66"
|
||||||
|
#define NGHTTP2_VERSION_NUM 0x014300
|
||||||
|
#endif /* NGHTTP2VER_H */
|
||||||
Reference in New Issue
Block a user