@gjsify/http2-native 0.64.5 → 0.64.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/meson.build +19 -5
- package/package.json +11 -11
package/meson.build
CHANGED
|
@@ -24,10 +24,24 @@ cc = meson.get_compiler('c')
|
|
|
24
24
|
|
|
25
25
|
nghttp2_lib = cc.find_library('nghttp2', has_headers: ['nghttp2/nghttp2.h'])
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
host_system = host_machine.system()
|
|
28
|
+
|
|
29
|
+
# On darwin every GNOME library is resolved against the HOST PROCESS rather than
|
|
30
|
+
# recorded as an `@rpath/` dependency: a second GLib beside the one the host
|
|
31
|
+
# already loaded gives the process two GType registries, then SIGSEGV.
|
|
32
|
+
# docs/prebuilds.md § One GLib. nghttp2 is NOT host-provided — it reaches no
|
|
33
|
+
# GLib, so it stays an ordinary link dependency.
|
|
34
|
+
host_provided = ['glib-2.0', 'gobject-2.0']
|
|
35
|
+
|
|
36
|
+
vala_deps = []
|
|
37
|
+
foreach pkg : host_provided
|
|
38
|
+
dep = dependency(pkg)
|
|
39
|
+
vala_deps += host_system == 'darwin' \
|
|
40
|
+
? dep.partial_dependency(compile_args: true, includes: true) \
|
|
41
|
+
: dep
|
|
42
|
+
endforeach
|
|
43
|
+
|
|
44
|
+
host_provided_link_args = host_system == 'darwin' ? ['-Wl,-undefined,dynamic_lookup'] : []
|
|
31
45
|
|
|
32
46
|
sources = files(
|
|
33
47
|
'src/vala/nghttp2-helpers.c',
|
|
@@ -42,6 +56,7 @@ inc = include_directories('src/vala')
|
|
|
42
56
|
libGjsifyHttp2 = library('gjsifyhttp2', sources,
|
|
43
57
|
dependencies: vala_deps + [nghttp2_lib],
|
|
44
58
|
include_directories: inc,
|
|
59
|
+
link_args: host_provided_link_args,
|
|
45
60
|
vala_gir: meson.project_name() + '-1.0.gir',
|
|
46
61
|
install: true,
|
|
47
62
|
install_dir: [true, true, true, true],
|
|
@@ -60,7 +75,6 @@ libGjsifyHttp2 = library('gjsifyhttp2', sources,
|
|
|
60
75
|
# work, so `else` (ELF naming) is the honest fallback rather than a .dll branch
|
|
61
76
|
# that would imply support which does not exist.
|
|
62
77
|
# ----------------------------------------------------------------------------
|
|
63
|
-
host_system = host_machine.system()
|
|
64
78
|
if host_system == 'darwin'
|
|
65
79
|
shared_lib_name = 'libgjsifyhttp2.dylib'
|
|
66
80
|
else
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/http2-native",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.6",
|
|
4
4
|
"description": "Optional Vala/GObject bridge providing nghttp2 primitives unreachable through libsoup's high-level GIR API: HPACK header-block encoding (for PUSH_PROMISE / DATA frames), server-side push stream-ID allocation, and a thin nghttp2_session wrapper for future cleartext HTTP/2 (h2c) support. Used by @gjsify/http2 to back ServerHttp2Stream.pushStream() / respondWithFD() / respondWithFile() and enable createServer() over plain TCP once the full Soup ↔ nghttp2 boundary is in place.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/esm/index.js",
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"@girs/gjs": "5.4.0",
|
|
66
66
|
"@girs/glib-2.0": "5.4.0",
|
|
67
67
|
"@girs/gobject-2.0": "5.4.0",
|
|
68
|
-
"@gjsify/utils": "^0.64.
|
|
68
|
+
"@gjsify/utils": "^0.64.6"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@gjsify/cli": "^0.64.
|
|
72
|
-
"@gjsify/unit": "^0.64.
|
|
71
|
+
"@gjsify/cli": "^0.64.6",
|
|
72
|
+
"@gjsify/unit": "^0.64.6",
|
|
73
73
|
"@ts-for-gir/cli": "^4.1.0",
|
|
74
74
|
"@types/node": "^25.9.2",
|
|
75
75
|
"typescript": "^6.0.3"
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
},
|
|
86
86
|
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/node/http2-native#readme",
|
|
87
87
|
"optionalDependencies": {
|
|
88
|
-
"@gjsify/http2-native-darwin-arm64": "0.64.
|
|
89
|
-
"@gjsify/http2-native-darwin-x64": "0.64.
|
|
90
|
-
"@gjsify/http2-native-linux-arm64": "0.64.
|
|
91
|
-
"@gjsify/http2-native-linux-ppc64": "0.64.
|
|
92
|
-
"@gjsify/http2-native-linux-riscv64": "0.64.
|
|
93
|
-
"@gjsify/http2-native-linux-s390x": "0.64.
|
|
94
|
-
"@gjsify/http2-native-linux-x64": "0.64.
|
|
88
|
+
"@gjsify/http2-native-darwin-arm64": "0.64.6",
|
|
89
|
+
"@gjsify/http2-native-darwin-x64": "0.64.6",
|
|
90
|
+
"@gjsify/http2-native-linux-arm64": "0.64.6",
|
|
91
|
+
"@gjsify/http2-native-linux-ppc64": "0.64.6",
|
|
92
|
+
"@gjsify/http2-native-linux-riscv64": "0.64.6",
|
|
93
|
+
"@gjsify/http2-native-linux-s390x": "0.64.6",
|
|
94
|
+
"@gjsify/http2-native-linux-x64": "0.64.6"
|
|
95
95
|
}
|
|
96
96
|
}
|