@gjsify/lightningcss-native 0.64.4 → 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 -7
- package/package.json +12 -12
package/meson.build
CHANGED
|
@@ -16,10 +16,23 @@ project('GjsifyLightningcss', ['c', 'vala'], version: '1.0',
|
|
|
16
16
|
|
|
17
17
|
cc = meson.get_compiler('c')
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
host_system = host_machine.system()
|
|
20
|
+
|
|
21
|
+
# On darwin every GNOME library is resolved against the HOST PROCESS rather than
|
|
22
|
+
# recorded as an `@rpath/` dependency: a second GLib beside the one the host
|
|
23
|
+
# already loaded gives the process two GType registries, then SIGSEGV.
|
|
24
|
+
# docs/prebuilds.md § One GLib.
|
|
25
|
+
host_provided = ['glib-2.0', 'gobject-2.0']
|
|
26
|
+
|
|
27
|
+
vala_deps = []
|
|
28
|
+
foreach pkg : host_provided
|
|
29
|
+
dep = dependency(pkg)
|
|
30
|
+
vala_deps += host_system == 'darwin' \
|
|
31
|
+
? dep.partial_dependency(compile_args: true, includes: true) \
|
|
32
|
+
: dep
|
|
33
|
+
endforeach
|
|
34
|
+
|
|
35
|
+
host_provided_link_args = host_system == 'darwin' ? ['-Wl,-undefined,dynamic_lookup'] : []
|
|
23
36
|
|
|
24
37
|
# ----------------------------------------------------------------------------
|
|
25
38
|
# Host-dependent naming + runtime-lookup conventions
|
|
@@ -42,8 +55,6 @@ vala_deps = [
|
|
|
42
55
|
# portability work, so `else` (ELF naming) is the honest fallback rather than a
|
|
43
56
|
# .dll branch that would imply support that does not exist.
|
|
44
57
|
# ----------------------------------------------------------------------------
|
|
45
|
-
host_system = host_machine.system()
|
|
46
|
-
|
|
47
58
|
if host_system == 'darwin'
|
|
48
59
|
rust_cdylib_name = 'libgjsify_lightningcss.dylib'
|
|
49
60
|
shared_lib_name = 'libgjsifylightningcss.dylib'
|
|
@@ -156,7 +167,8 @@ sources = files(
|
|
|
156
167
|
inc = include_directories('src/vala')
|
|
157
168
|
|
|
158
169
|
# Tell ld where to find libgjsify_lightningcss.so (placed there by rust_cdylib)
|
|
159
|
-
link_args = ['-L' + meson.current_build_dir(), '-lgjsify_lightningcss']
|
|
170
|
+
link_args = ['-L' + meson.current_build_dir(), '-lgjsify_lightningcss'] \
|
|
171
|
+
+ host_provided_link_args
|
|
160
172
|
|
|
161
173
|
libGjsifyLightningcss = library('gjsifylightningcss', sources,
|
|
162
174
|
dependencies: vala_deps,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/lightningcss-native",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.6",
|
|
4
4
|
"description": "Vala/GObject + Rust cdylib bridge to lightningcss for GJS. Replaces the Node-only npm `lightningcss` package: parse, transform, minify, and browserslist-target lowering of CSS without leaving a Node-free GJS process. Backs `@gjsify/rolldown-plugin-gjsify`'s cssAsStringPlugin under `--app gjs` so GTK4-CSS lowering (firefox60) works without a Node runtime in the build pipeline.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/esm/index.js",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"@girs/gobject-2.0": "5.4.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@gjsify/cli": "^0.64.
|
|
67
|
-
"@gjsify/unit": "^0.64.
|
|
66
|
+
"@gjsify/cli": "^0.64.6",
|
|
67
|
+
"@gjsify/unit": "^0.64.6",
|
|
68
68
|
"@ts-for-gir/cli": "^4.1.0",
|
|
69
69
|
"@types/node": "^25.9.2",
|
|
70
70
|
"typescript": "^6.0.3"
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
},
|
|
82
82
|
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/infra/lightningcss-native#readme",
|
|
83
83
|
"optionalDependencies": {
|
|
84
|
-
"@gjsify/lightningcss-native-darwin-arm64": "0.64.
|
|
85
|
-
"@gjsify/lightningcss-native-darwin-x64": "0.64.
|
|
86
|
-
"@gjsify/lightningcss-native-linux-arm64": "0.64.
|
|
87
|
-
"@gjsify/lightningcss-native-linux-arm64-musl": "0.64.
|
|
88
|
-
"@gjsify/lightningcss-native-linux-ppc64": "0.64.
|
|
89
|
-
"@gjsify/lightningcss-native-linux-riscv64": "0.64.
|
|
90
|
-
"@gjsify/lightningcss-native-linux-s390x": "0.64.
|
|
91
|
-
"@gjsify/lightningcss-native-linux-x64": "0.64.
|
|
92
|
-
"@gjsify/lightningcss-native-linux-x64-musl": "0.64.
|
|
84
|
+
"@gjsify/lightningcss-native-darwin-arm64": "0.64.6",
|
|
85
|
+
"@gjsify/lightningcss-native-darwin-x64": "0.64.6",
|
|
86
|
+
"@gjsify/lightningcss-native-linux-arm64": "0.64.6",
|
|
87
|
+
"@gjsify/lightningcss-native-linux-arm64-musl": "0.64.6",
|
|
88
|
+
"@gjsify/lightningcss-native-linux-ppc64": "0.64.6",
|
|
89
|
+
"@gjsify/lightningcss-native-linux-riscv64": "0.64.6",
|
|
90
|
+
"@gjsify/lightningcss-native-linux-s390x": "0.64.6",
|
|
91
|
+
"@gjsify/lightningcss-native-linux-x64": "0.64.6",
|
|
92
|
+
"@gjsify/lightningcss-native-linux-x64-musl": "0.64.6"
|
|
93
93
|
}
|
|
94
94
|
}
|