@gjsify/webrtc-native 0.64.6 → 0.64.8

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.
Files changed (2) hide show
  1. package/meson.build +23 -7
  2. package/package.json +10 -10
package/meson.build CHANGED
@@ -16,13 +16,18 @@ host_system = host_machine.system()
16
16
  # docs/prebuilds.md § One GLib. The gstreamer packages are in the list because
17
17
  # their own `--libs` carry `-lglib-2.0 -lgobject-2.0` — stripping only the glib
18
18
  # pair would still let ld64 record a GLib load command.
19
- host_provided = [
20
- 'glib-2.0',
21
- 'gobject-2.0',
22
- 'gstreamer-1.0',
23
- 'gstreamer-sdp-1.0',
24
- 'gstreamer-webrtc-1.0',
25
- ]
19
+ #
20
+ # GLib alone is left to `dynamic_lookup`: gjs always loads it. GStreamer is not
21
+ # loaded by the host, so an unrecorded GStreamer leaves `gst_*` unbound and the
22
+ # class init dereferences NULL (SIGSEGV on a bare `imports.gi.<Ns>`). Those
23
+ # libraries are linked by path instead, which records THEIR load command while
24
+ # GLib — absent from the link line — still binds to the host.
25
+ host_provided = ['glib-2.0', 'gobject-2.0']
26
+ gstreamer_libs = {
27
+ 'gstreamer-1.0': 'gstreamer-1.0',
28
+ 'gstreamer-sdp-1.0': 'gstsdp-1.0',
29
+ 'gstreamer-webrtc-1.0': 'gstwebrtc-1.0',
30
+ }
26
31
 
27
32
  dependencies = []
28
33
  foreach pkg : host_provided
@@ -31,6 +36,16 @@ foreach pkg : host_provided
31
36
  ? dep.partial_dependency(compile_args: true, includes: true) \
32
37
  : dep
33
38
  endforeach
39
+ foreach pkg, lib : gstreamer_libs
40
+ dep = dependency(pkg)
41
+ if host_system == 'darwin'
42
+ dependencies += dep.partial_dependency(compile_args: true, includes: true)
43
+ dependencies += meson.get_compiler('c').find_library(lib,
44
+ dirs: dep.get_variable(pkgconfig: 'libdir'))
45
+ else
46
+ dependencies += dep
47
+ endif
48
+ endforeach
34
49
 
35
50
  host_provided_link_args = host_system == 'darwin' ? ['-Wl,-undefined,dynamic_lookup'] : []
36
51
 
@@ -43,6 +58,7 @@ sources = files(
43
58
 
44
59
  libGjsifyWebrtc = library('gjsifywebrtc', sources,
45
60
  dependencies: dependencies,
61
+ link_args: host_provided_link_args,
46
62
  vala_gir: meson.project_name() + '-0.1.gir',
47
63
  install: true,
48
64
  install_dir: [true, true, true, true],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/webrtc-native",
3
- "version": "0.64.6",
3
+ "version": "0.64.8",
4
4
  "description": "Vala-based main-thread signal bridge for @gjsify/webrtc. Marshals webrtcbin signals and GstPromise callbacks from GStreamer's streaming thread onto the GLib main context so GJS can safely handle them.",
5
5
  "type": "module",
6
6
  "main": "lib/esm/index.js",
@@ -61,10 +61,10 @@
61
61
  "@girs/gobject-2.0": "5.4.0",
62
62
  "@girs/gst-1.0": "5.4.0",
63
63
  "@girs/gstwebrtc-1.0": "5.4.0",
64
- "@gjsify/utils": "^0.64.6"
64
+ "@gjsify/utils": "^0.64.8"
65
65
  },
66
66
  "devDependencies": {
67
- "@gjsify/cli": "^0.64.6",
67
+ "@gjsify/cli": "^0.64.8",
68
68
  "@types/node": "^25.9.2",
69
69
  "typescript": "^6.0.3"
70
70
  },
@@ -79,12 +79,12 @@
79
79
  },
80
80
  "homepage": "https://github.com/gjsify/gjsify/tree/main/packages/web/webrtc-native#readme",
81
81
  "optionalDependencies": {
82
- "@gjsify/webrtc-native-darwin-arm64": "0.64.6",
83
- "@gjsify/webrtc-native-darwin-x64": "0.64.6",
84
- "@gjsify/webrtc-native-linux-arm64": "0.64.6",
85
- "@gjsify/webrtc-native-linux-ppc64": "0.64.6",
86
- "@gjsify/webrtc-native-linux-riscv64": "0.64.6",
87
- "@gjsify/webrtc-native-linux-s390x": "0.64.6",
88
- "@gjsify/webrtc-native-linux-x64": "0.64.6"
82
+ "@gjsify/webrtc-native-darwin-arm64": "0.64.8",
83
+ "@gjsify/webrtc-native-darwin-x64": "0.64.8",
84
+ "@gjsify/webrtc-native-linux-arm64": "0.64.8",
85
+ "@gjsify/webrtc-native-linux-ppc64": "0.64.8",
86
+ "@gjsify/webrtc-native-linux-riscv64": "0.64.8",
87
+ "@gjsify/webrtc-native-linux-s390x": "0.64.8",
88
+ "@gjsify/webrtc-native-linux-x64": "0.64.8"
89
89
  }
90
90
  }