@gjsify/gl-runtime-win32-x64 0.52.0

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/LICENSE ADDED
@@ -0,0 +1,27 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 gjsify contributors
4
+
5
+ This license covers the SOURCE of this package (index.js, index.d.ts) and the
6
+ build script in the gjsify repository that assembles the payload. It does NOT
7
+ cover the third-party Mesa / LLVM binaries under `bin/`: those keep the terms
8
+ of their own projects, reproduced in `bin/THIRD-PARTY-NOTICES.md` and
9
+ `bin/licenses/` inside the published tarball.
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # @gjsify/gl-runtime-win32-x64
2
+
3
+ Optional OpenGL for GTK apps on Windows hosts that have **no OpenGL driver of their own**:
4
+ VMs, RDP sessions, Windows Server, CI runners. It contains Mesa's WGL build
5
+ (`opengl32.dll` + `libgallium_wgl.dll`) from the pinned
6
+ [mesa-dist-win](https://github.com/pal1000/mesa-dist-win) release, plus the licence texts
7
+ that must travel with them (`bin/THIRD-PARTY-NOTICES.md`).
8
+
9
+ > **Not yet published on npm.** The first publish of this name is queued in
10
+ > `status/pending-npm-bootstrap.json`; until then the dependency below 404s.
11
+
12
+ ```json
13
+ "dependencies": {
14
+ "@gjsify/gl-runtime-win32-x64": "^0.52.0"
15
+ }
16
+ ```
17
+
18
+ ## Why it is separate
19
+
20
+ It is ~22 MB in the tarball (59 MiB unpacked, almost all of it LLVM for Mesa's llvmpipe),
21
+ and most Windows machines never use it: a host with a vendor GPU driver keeps that driver.
22
+ So it is an opt-in, never part of `@gjsify/gtk-runtime-win32-x64` and never a dependency of
23
+ `@gjsify/node-gi` — node-gi finds it **by name** when an app has installed it.
24
+
25
+ ## What happens at run time
26
+
27
+ `@gjsify/node-gi` asks whether the host has an OpenGL driver (the display driver's
28
+ user-mode ICD, or one registered under `HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers`).
29
+ Only when it has none, it loads this package's `opengl32.dll` **by absolute path** before GTK
30
+ loads. That is the only way it can take effect: `gtk-4-1.dll` imports `OPENGL32` statically,
31
+ and Windows never looks for it on `PATH`. Mesa then uses its d3d12 driver where a D3D12 device
32
+ exists (WARP included) and llvmpipe otherwise. Measured on a GitHub `windows-latest` runner:
33
+ GDK gets an OpenGL **4.6 core** context (`D3D12 (Microsoft Basic Render Driver)`), where
34
+ without this package it gets `No GL implementation is available`.
35
+
36
+ `GJSIFY_OPENGL=bundle` forces Mesa even over a vendor driver, `GJSIFY_OPENGL=system` never
37
+ uses it. `openGLActivation()` from `@gjsify/node-gi/gtk-runtime` reports the decision and why.
38
+
39
+ GSK itself still renders with cairo by default on Windows: GTK's win32 GL renderer requires
40
+ DirectComposition, which GTK makes opt-in (`GDK_DEBUG=dcomp`). `Gtk.GLArea` works either way.
41
+
42
+ ## Building the payload
43
+
44
+ `node scripts/build-gl-runtime.mjs` downloads the pinned release, checks its sha256, extracts
45
+ the two DLLs into `bin/` and writes the notice. The pin lives in
46
+ `packages/node-gi/scripts/fetch-gl-implementation.mjs`; `licenses/provenance.json` must name
47
+ the same release (held by `node-gi/test/gl-runtime-package.test.mjs`).
@@ -0,0 +1,20 @@
1
+ # Third-party notices — @gjsify/gl-runtime-win32-x64
2
+
3
+ This package is MIT (its two JavaScript files). The binaries in this directory are NOT:
4
+
5
+ - `opengl32.dll` (0.1 MiB)
6
+ - `libgallium_wgl.dll` (58.9 MiB)
7
+
8
+ They are Mesa 26.1.8, byte-identical from the mesa-dist-win 26.1.8 MSVC release (https://github.com/pal1000/mesa-dist-win/releases/download/26.1.8/mesa3d-26.1.8-release-msvc.7z, sha256 4c6d32e653e0ff9ad07796e40c0bcfabf2764d849e3ce4f3b1590112c87e42f9). `libgallium_wgl.dll` links LLVM 23.1.1 statically (llvmpipe).
9
+
10
+ Mesa's terms are per source file (SPDX); its own summary and the permissive licence texts it uses, LLVM's Apache-2.0 WITH LLVM-exception, and the notices of third-party code compiled into `libgallium_wgl.dll` (`NOTICE-*`: SoftFloat, xxHash, Henry Spencer regex) are in:
11
+
12
+ - `licenses/llvm/LICENSE.TXT`
13
+ - `licenses/llvm/NOTICE-BSD-2-Clause-xxHash`
14
+ - `licenses/llvm/NOTICE-regex`
15
+ - `licenses/mesa/LICENSE-Apache-2.0`
16
+ - `licenses/mesa/LICENSE-BSL-1.0`
17
+ - `licenses/mesa/LICENSE-MIT`
18
+ - `licenses/mesa/LICENSE.rst`
19
+ - `licenses/mesa/NOTICE-BSD-2-Clause-xxHash`
20
+ - `licenses/mesa/NOTICE-BSD-3-Clause-SoftFloat`
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/bin/libgallium_wgl.dll
3
+ size: 61716480 bytes
4
+ sha256: ff543fd582df39a2df0356d98396a463a9de974cf926b8173a57060627212e6d
@@ -0,0 +1,279 @@
1
+ ==============================================================================
2
+ The LLVM Project is under the Apache License v2.0 with LLVM Exceptions:
3
+ ==============================================================================
4
+
5
+ Apache License
6
+ Version 2.0, January 2004
7
+ http://www.apache.org/licenses/
8
+
9
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
+
11
+ 1. Definitions.
12
+
13
+ "License" shall mean the terms and conditions for use, reproduction,
14
+ and distribution as defined by Sections 1 through 9 of this document.
15
+
16
+ "Licensor" shall mean the copyright owner or entity authorized by
17
+ the copyright owner that is granting the License.
18
+
19
+ "Legal Entity" shall mean the union of the acting entity and all
20
+ other entities that control, are controlled by, or are under common
21
+ control with that entity. For the purposes of this definition,
22
+ "control" means (i) the power, direct or indirect, to cause the
23
+ direction or management of such entity, whether by contract or
24
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
25
+ outstanding shares, or (iii) beneficial ownership of such entity.
26
+
27
+ "You" (or "Your") shall mean an individual or Legal Entity
28
+ exercising permissions granted by this License.
29
+
30
+ "Source" form shall mean the preferred form for making modifications,
31
+ including but not limited to software source code, documentation
32
+ source, and configuration files.
33
+
34
+ "Object" form shall mean any form resulting from mechanical
35
+ transformation or translation of a Source form, including but
36
+ not limited to compiled object code, generated documentation,
37
+ and conversions to other media types.
38
+
39
+ "Work" shall mean the work of authorship, whether in Source or
40
+ Object form, made available under the License, as indicated by a
41
+ copyright notice that is included in or attached to the work
42
+ (an example is provided in the Appendix below).
43
+
44
+ "Derivative Works" shall mean any work, whether in Source or Object
45
+ form, that is based on (or derived from) the Work and for which the
46
+ editorial revisions, annotations, elaborations, or other modifications
47
+ represent, as a whole, an original work of authorship. For the purposes
48
+ of this License, Derivative Works shall not include works that remain
49
+ separable from, or merely link (or bind by name) to the interfaces of,
50
+ the Work and Derivative Works thereof.
51
+
52
+ "Contribution" shall mean any work of authorship, including
53
+ the original version of the Work and any modifications or additions
54
+ to that Work or Derivative Works thereof, that is intentionally
55
+ submitted to Licensor for inclusion in the Work by the copyright owner
56
+ or by an individual or Legal Entity authorized to submit on behalf of
57
+ the copyright owner. For the purposes of this definition, "submitted"
58
+ means any form of electronic, verbal, or written communication sent
59
+ to the Licensor or its representatives, including but not limited to
60
+ communication on electronic mailing lists, source code control systems,
61
+ and issue tracking systems that are managed by, or on behalf of, the
62
+ Licensor for the purpose of discussing and improving the Work, but
63
+ excluding communication that is conspicuously marked or otherwise
64
+ designated in writing by the copyright owner as "Not a Contribution."
65
+
66
+ "Contributor" shall mean Licensor and any individual or Legal Entity
67
+ on behalf of whom a Contribution has been received by Licensor and
68
+ subsequently incorporated within the Work.
69
+
70
+ 2. Grant of Copyright License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ copyright license to reproduce, prepare Derivative Works of,
74
+ publicly display, publicly perform, sublicense, and distribute the
75
+ Work and such Derivative Works in Source or Object form.
76
+
77
+ 3. Grant of Patent License. Subject to the terms and conditions of
78
+ this License, each Contributor hereby grants to You a perpetual,
79
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80
+ (except as stated in this section) patent license to make, have made,
81
+ use, offer to sell, sell, import, and otherwise transfer the Work,
82
+ where such license applies only to those patent claims licensable
83
+ by such Contributor that are necessarily infringed by their
84
+ Contribution(s) alone or by combination of their Contribution(s)
85
+ with the Work to which such Contribution(s) was submitted. If You
86
+ institute patent litigation against any entity (including a
87
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
88
+ or a Contribution incorporated within the Work constitutes direct
89
+ or contributory patent infringement, then any patent licenses
90
+ granted to You under this License for that Work shall terminate
91
+ as of the date such litigation is filed.
92
+
93
+ 4. Redistribution. You may reproduce and distribute copies of the
94
+ Work or Derivative Works thereof in any medium, with or without
95
+ modifications, and in Source or Object form, provided that You
96
+ meet the following conditions:
97
+
98
+ (a) You must give any other recipients of the Work or
99
+ Derivative Works a copy of this License; and
100
+
101
+ (b) You must cause any modified files to carry prominent notices
102
+ stating that You changed the files; and
103
+
104
+ (c) You must retain, in the Source form of any Derivative Works
105
+ that You distribute, all copyright, patent, trademark, and
106
+ attribution notices from the Source form of the Work,
107
+ excluding those notices that do not pertain to any part of
108
+ the Derivative Works; and
109
+
110
+ (d) If the Work includes a "NOTICE" text file as part of its
111
+ distribution, then any Derivative Works that You distribute must
112
+ include a readable copy of the attribution notices contained
113
+ within such NOTICE file, excluding those notices that do not
114
+ pertain to any part of the Derivative Works, in at least one
115
+ of the following places: within a NOTICE text file distributed
116
+ as part of the Derivative Works; within the Source form or
117
+ documentation, if provided along with the Derivative Works; or,
118
+ within a display generated by the Derivative Works, if and
119
+ wherever such third-party notices normally appear. The contents
120
+ of the NOTICE file are for informational purposes only and
121
+ do not modify the License. You may add Your own attribution
122
+ notices within Derivative Works that You distribute, alongside
123
+ or as an addendum to the NOTICE text from the Work, provided
124
+ that such additional attribution notices cannot be construed
125
+ as modifying the License.
126
+
127
+ You may add Your own copyright statement to Your modifications and
128
+ may provide additional or different license terms and conditions
129
+ for use, reproduction, or distribution of Your modifications, or
130
+ for any such Derivative Works as a whole, provided Your use,
131
+ reproduction, and distribution of the Work otherwise complies with
132
+ the conditions stated in this License.
133
+
134
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
135
+ any Contribution intentionally submitted for inclusion in the Work
136
+ by You to the Licensor shall be under the terms and conditions of
137
+ this License, without any additional terms or conditions.
138
+ Notwithstanding the above, nothing herein shall supersede or modify
139
+ the terms of any separate license agreement you may have executed
140
+ with Licensor regarding such Contributions.
141
+
142
+ 6. Trademarks. This License does not grant permission to use the trade
143
+ names, trademarks, service marks, or product names of the Licensor,
144
+ except as required for reasonable and customary use in describing the
145
+ origin of the Work and reproducing the content of the NOTICE file.
146
+
147
+ 7. Disclaimer of Warranty. Unless required by applicable law or
148
+ agreed to in writing, Licensor provides the Work (and each
149
+ Contributor provides its Contributions) on an "AS IS" BASIS,
150
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
151
+ implied, including, without limitation, any warranties or conditions
152
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
153
+ PARTICULAR PURPOSE. You are solely responsible for determining the
154
+ appropriateness of using or redistributing the Work and assume any
155
+ risks associated with Your exercise of permissions under this License.
156
+
157
+ 8. Limitation of Liability. In no event and under no legal theory,
158
+ whether in tort (including negligence), contract, or otherwise,
159
+ unless required by applicable law (such as deliberate and grossly
160
+ negligent acts) or agreed to in writing, shall any Contributor be
161
+ liable to You for damages, including any direct, indirect, special,
162
+ incidental, or consequential damages of any character arising as a
163
+ result of this License or out of the use or inability to use the
164
+ Work (including but not limited to damages for loss of goodwill,
165
+ work stoppage, computer failure or malfunction, or any and all
166
+ other commercial damages or losses), even if such Contributor
167
+ has been advised of the possibility of such damages.
168
+
169
+ 9. Accepting Warranty or Additional Liability. While redistributing
170
+ the Work or Derivative Works thereof, You may choose to offer,
171
+ and charge a fee for, acceptance of support, warranty, indemnity,
172
+ or other liability obligations and/or rights consistent with this
173
+ License. However, in accepting such obligations, You may act only
174
+ on Your own behalf and on Your sole responsibility, not on behalf
175
+ of any other Contributor, and only if You agree to indemnify,
176
+ defend, and hold each Contributor harmless for any liability
177
+ incurred by, or claims asserted against, such Contributor by reason
178
+ of your accepting any such warranty or additional liability.
179
+
180
+ END OF TERMS AND CONDITIONS
181
+
182
+ APPENDIX: How to apply the Apache License to your work.
183
+
184
+ To apply the Apache License to your work, attach the following
185
+ boilerplate notice, with the fields enclosed by brackets "[]"
186
+ replaced with your own identifying information. (Don't include
187
+ the brackets!) The text should be enclosed in the appropriate
188
+ comment syntax for the file format. We also recommend that a
189
+ file or class name and description of purpose be included on the
190
+ same "printed page" as the copyright notice for easier
191
+ identification within third-party archives.
192
+
193
+ Copyright [yyyy] [name of copyright owner]
194
+
195
+ Licensed under the Apache License, Version 2.0 (the "License");
196
+ you may not use this file except in compliance with the License.
197
+ You may obtain a copy of the License at
198
+
199
+ http://www.apache.org/licenses/LICENSE-2.0
200
+
201
+ Unless required by applicable law or agreed to in writing, software
202
+ distributed under the License is distributed on an "AS IS" BASIS,
203
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204
+ See the License for the specific language governing permissions and
205
+ limitations under the License.
206
+
207
+
208
+ ---- LLVM Exceptions to the Apache 2.0 License ----
209
+
210
+ As an exception, if, as a result of your compiling your source code, portions
211
+ of this Software are embedded into an Object form of such source code, you
212
+ may redistribute such embedded portions in such Object form without complying
213
+ with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
214
+
215
+ In addition, if you combine or link compiled forms of this Software with
216
+ software that is licensed under the GPLv2 ("Combined Software") and if a
217
+ court of competent jurisdiction determines that the patent provision (Section
218
+ 3), the indemnity provision (Section 9) or other Section of the License
219
+ conflicts with the conditions of the GPLv2, you may retroactively and
220
+ prospectively choose to deem waived or otherwise exclude such Section(s) of
221
+ the License, but only in their entirety and only with respect to the Combined
222
+ Software.
223
+
224
+ ==============================================================================
225
+ Software from third parties included in the LLVM Project:
226
+ ==============================================================================
227
+ The LLVM Project contains third party software which is under different license
228
+ terms. All such code will be identified clearly using at least one of two
229
+ mechanisms:
230
+ 1) It will be in a separate directory tree with its own `LICENSE.txt` or
231
+ `LICENSE` file at the top containing the specific license and restrictions
232
+ which apply to that software, or
233
+ 2) It will contain specific license and restriction terms at the top of every
234
+ file.
235
+
236
+ ==============================================================================
237
+ Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy):
238
+ ==============================================================================
239
+ University of Illinois/NCSA
240
+ Open Source License
241
+
242
+ Copyright (c) 2003-2019 University of Illinois at Urbana-Champaign.
243
+ All rights reserved.
244
+
245
+ Developed by:
246
+
247
+ LLVM Team
248
+
249
+ University of Illinois at Urbana-Champaign
250
+
251
+ http://llvm.org
252
+
253
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
254
+ this software and associated documentation files (the "Software"), to deal with
255
+ the Software without restriction, including without limitation the rights to
256
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
257
+ of the Software, and to permit persons to whom the Software is furnished to do
258
+ so, subject to the following conditions:
259
+
260
+ * Redistributions of source code must retain the above copyright notice,
261
+ this list of conditions and the following disclaimers.
262
+
263
+ * Redistributions in binary form must reproduce the above copyright notice,
264
+ this list of conditions and the following disclaimers in the
265
+ documentation and/or other materials provided with the distribution.
266
+
267
+ * Neither the names of the LLVM Team, University of Illinois at
268
+ Urbana-Champaign, nor the names of its contributors may be used to
269
+ endorse or promote products derived from this Software without specific
270
+ prior written permission.
271
+
272
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
273
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
274
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
275
+ CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
276
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
277
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
278
+ SOFTWARE.
279
+
@@ -0,0 +1,33 @@
1
+ xxHash — from llvm/lib/Support/xxhash.cpp, linked statically into libgallium_wgl.dll.
2
+ Taken from llvmorg-23.1.1.
3
+
4
+ xxHash - Extremely Fast Hash algorithm
5
+ Copyright (C) 2012-2023, Yann Collet
6
+
7
+ BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
8
+
9
+ Redistribution and use in source and binary forms, with or without
10
+ modification, are permitted provided that the following conditions are
11
+ met:
12
+
13
+ * Redistributions of source code must retain the above copyright
14
+ notice, this list of conditions and the following disclaimer.
15
+ * Redistributions in binary form must reproduce the above
16
+ copyright notice, this list of conditions and the following disclaimer
17
+ in the documentation and/or other materials provided with the
18
+ distribution.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+
32
+ You can contact the author at :
33
+ - xxHash homepage: http://www.xxhash.com
@@ -0,0 +1,57 @@
1
+ Henry Spencer regex — llvm/lib/Support/reg*.c, linked statically into libgallium_wgl.dll.
2
+ Verbatim llvm/lib/Support/COPYRIGHT.regex, taken from llvmorg-23.1.1.
3
+
4
+ $OpenBSD: COPYRIGHT,v 1.3 2003/06/02 20:18:36 millert Exp $
5
+
6
+ Copyright 1992, 1993, 1994 Henry Spencer. All rights reserved.
7
+ This software is not subject to any license of the American Telephone
8
+ and Telegraph Company or of the Regents of the University of California.
9
+
10
+ Permission is granted to anyone to use this software for any purpose on
11
+ any computer system, and to alter it and redistribute it, subject
12
+ to the following restrictions:
13
+
14
+ 1. The author is not responsible for the consequences of use of this
15
+ software, no matter how awful, even if they arise from flaws in it.
16
+
17
+ 2. The origin of this software must not be misrepresented, either by
18
+ explicit claim or by omission. Since few users ever read sources,
19
+ credits must appear in the documentation.
20
+
21
+ 3. Altered versions must be plainly marked as such, and must not be
22
+ misrepresented as being the original software. Since few users
23
+ ever read sources, credits must appear in the documentation.
24
+
25
+ 4. This notice may not be removed or altered.
26
+
27
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
28
+ /*-
29
+ * Copyright (c) 1994
30
+ * The Regents of the University of California. All rights reserved.
31
+ *
32
+ * Redistribution and use in source and binary forms, with or without
33
+ * modification, are permitted provided that the following conditions
34
+ * are met:
35
+ * 1. Redistributions of source code must retain the above copyright
36
+ * notice, this list of conditions and the following disclaimer.
37
+ * 2. Redistributions in binary form must reproduce the above copyright
38
+ * notice, this list of conditions and the following disclaimer in the
39
+ * documentation and/or other materials provided with the distribution.
40
+ * 3. Neither the name of the University nor the names of its contributors
41
+ * may be used to endorse or promote products derived from this software
42
+ * without specific prior written permission.
43
+ *
44
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
45
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
48
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
49
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
50
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
51
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54
+ * SUCH DAMAGE.
55
+ *
56
+ * @(#)COPYRIGHT 8.1 (Berkeley) 3/16/94
57
+ */
@@ -0,0 +1,187 @@
1
+ Valid-License-Identifier: Apache-2.0
2
+ SPDX-URL: https://spdx.org/licenses/Apache-2.0.html
3
+ Usage-Guide:
4
+ Do NOT use. The Apache-2.0 is not GPL2 compatible. It may only be used
5
+ for dual-licensed files where the other license is GPL2 compatible.
6
+ If you end up using this it MUST be used together with a GPL2 compatible
7
+ license using "OR".
8
+ To use the Apache License version 2.0 put the following SPDX tag/value
9
+ pair into a comment according to the placement guidelines in the
10
+ licensing rules documentation:
11
+ SPDX-License-Identifier: Apache-2.0
12
+ License-Text:
13
+
14
+ Apache License
15
+
16
+ Version 2.0, January 2004
17
+
18
+ http://www.apache.org/licenses/
19
+
20
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
21
+
22
+ 1. Definitions.
23
+
24
+ "License" shall mean the terms and conditions for use, reproduction, and
25
+ distribution as defined by Sections 1 through 9 of this document.
26
+
27
+ "Licensor" shall mean the copyright owner or entity authorized by the
28
+ copyright owner that is granting the License.
29
+
30
+ "Legal Entity" shall mean the union of the acting entity and all other
31
+ entities that control, are controlled by, or are under common control with
32
+ that entity. For the purposes of this definition, "control" means (i) the
33
+ power, direct or indirect, to cause the direction or management of such
34
+ entity, whether by contract or otherwise, or (ii) ownership of fifty
35
+ percent (50%) or more of the outstanding shares, or (iii) beneficial
36
+ ownership of such entity.
37
+
38
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
39
+ permissions granted by this License.
40
+
41
+ "Source" form shall mean the preferred form for making modifications,
42
+ including but not limited to software source code, documentation source,
43
+ and configuration files.
44
+
45
+ "Object" form shall mean any form resulting from mechanical transformation
46
+ or translation of a Source form, including but not limited to compiled
47
+ object code, generated documentation, and conversions to other media types.
48
+
49
+ "Work" shall mean the work of authorship, whether in Source or Object form,
50
+ made available under the License, as indicated by a copyright notice that
51
+ is included in or attached to the work (an example is provided in the
52
+ Appendix below).
53
+
54
+ "Derivative Works" shall mean any work, whether in Source or Object form,
55
+ that is based on (or derived from) the Work and for which the editorial
56
+ revisions, annotations, elaborations, or other modifications represent, as
57
+ a whole, an original work of authorship. For the purposes of this License,
58
+ Derivative Works shall not include works that remain separable from, or
59
+ merely link (or bind by name) to the interfaces of, the Work and Derivative
60
+ Works thereof.
61
+
62
+ "Contribution" shall mean any work of authorship, including the original
63
+ version of the Work and any modifications or additions to that Work or
64
+ Derivative Works thereof, that is intentionally submitted to Licensor for
65
+ inclusion in the Work by the copyright owner or by an individual or Legal
66
+ Entity authorized to submit on behalf of the copyright owner. For the
67
+ purposes of this definition, "submitted" means any form of electronic,
68
+ verbal, or written communication sent to the Licensor or its
69
+ representatives, including but not limited to communication on electronic
70
+ mailing lists, source code control systems, and issue tracking systems that
71
+ are managed by, or on behalf of, the Licensor for the purpose of discussing
72
+ and improving the Work, but excluding communication that is conspicuously
73
+ marked or otherwise designated in writing by the copyright owner as "Not a
74
+ Contribution."
75
+
76
+ "Contributor" shall mean Licensor and any individual or Legal Entity on
77
+ behalf of whom a Contribution has been received by Licensor and
78
+ subsequently incorporated within the Work.
79
+
80
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
81
+ License, each Contributor hereby grants to You a perpetual, worldwide,
82
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
83
+ reproduce, prepare Derivative Works of, publicly display, publicly
84
+ perform, sublicense, and distribute the Work and such Derivative Works
85
+ in Source or Object form.
86
+
87
+ 3. Grant of Patent License. Subject to the terms and conditions of this
88
+ License, each Contributor hereby grants to You a perpetual, worldwide,
89
+ non-exclusive, no-charge, royalty-free, irrevocable (except as stated in
90
+ this section) patent license to make, have made, use, offer to sell,
91
+ sell, import, and otherwise transfer the Work, where such license
92
+ applies only to those patent claims licensable by such Contributor that
93
+ are necessarily infringed by their Contribution(s) alone or by
94
+ combination of their Contribution(s) with the Work to which such
95
+ Contribution(s) was submitted. If You institute patent litigation
96
+ against any entity (including a cross-claim or counterclaim in a
97
+ lawsuit) alleging that the Work or a Contribution incorporated within
98
+ the Work constitutes direct or contributory patent infringement, then
99
+ any patent licenses granted to You under this License for that Work
100
+ shall terminate as of the date such litigation is filed.
101
+
102
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
103
+ Derivative Works thereof in any medium, with or without modifications,
104
+ and in Source or Object form, provided that You meet the following
105
+ conditions:
106
+
107
+ a. You must give any other recipients of the Work or Derivative Works a
108
+ copy of this License; and
109
+
110
+ b. You must cause any modified files to carry prominent notices stating
111
+ that You changed the files; and
112
+
113
+ c. You must retain, in the Source form of any Derivative Works that You
114
+ distribute, all copyright, patent, trademark, and attribution notices
115
+ from the Source form of the Work, excluding those notices that do not
116
+ pertain to any part of the Derivative Works; and
117
+
118
+ d. If the Work includes a "NOTICE" text file as part of its
119
+ distribution, then any Derivative Works that You distribute must
120
+ include a readable copy of the attribution notices contained within
121
+ such NOTICE file, excluding those notices that do not pertain to any
122
+ part of the Derivative Works, in at least one of the following
123
+ places: within a NOTICE text file distributed as part of the
124
+ Derivative Works; within the Source form or documentation, if
125
+ provided along with the Derivative Works; or, within a display
126
+ generated by the Derivative Works, if and wherever such third-party
127
+ notices normally appear. The contents of the NOTICE file are for
128
+ informational purposes only and do not modify the License. You may
129
+ add Your own attribution notices within Derivative Works that You
130
+ distribute, alongside or as an addendum to the NOTICE text from the
131
+ Work, provided that such additional attribution notices cannot be
132
+ construed as modifying the License.
133
+
134
+ You may add Your own copyright statement to Your modifications and may
135
+ provide additional or different license terms and conditions for use,
136
+ reproduction, or distribution of Your modifications, or for any such
137
+ Derivative Works as a whole, provided Your use, reproduction, and
138
+ distribution of the Work otherwise complies with the conditions stated
139
+ in this License.
140
+
141
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
142
+ Contribution intentionally submitted for inclusion in the Work by You to
143
+ the Licensor shall be under the terms and conditions of this License,
144
+ without any additional terms or conditions. Notwithstanding the above,
145
+ nothing herein shall supersede or modify the terms of any separate
146
+ license agreement you may have executed with Licensor regarding such
147
+ Contributions.
148
+
149
+ 6. Trademarks. This License does not grant permission to use the trade
150
+ names, trademarks, service marks, or product names of the Licensor,
151
+ except as required for reasonable and customary use in describing the
152
+ origin of the Work and reproducing the content of the NOTICE file.
153
+
154
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to
155
+ in writing, Licensor provides the Work (and each Contributor provides
156
+ its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
157
+ OF ANY KIND, either express or implied, including, without limitation,
158
+ any warranties or conditions of TITLE, NON-INFRINGEMENT,
159
+ MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
160
+ responsible for determining the appropriateness of using or
161
+ redistributing the Work and assume any risks associated with Your
162
+ exercise of permissions under this License.
163
+
164
+ 8. Limitation of Liability. In no event and under no legal theory, whether
165
+ in tort (including negligence), contract, or otherwise, unless required
166
+ by applicable law (such as deliberate and grossly negligent acts) or
167
+ agreed to in writing, shall any Contributor be liable to You for
168
+ damages, including any direct, indirect, special, incidental, or
169
+ consequential damages of any character arising as a result of this
170
+ License or out of the use or inability to use the Work (including but
171
+ not limited to damages for loss of goodwill, work stoppage, computer
172
+ failure or malfunction, or any and all other commercial damages or
173
+ losses), even if such Contributor has been advised of the possibility of
174
+ such damages.
175
+
176
+ 9. Accepting Warranty or Additional Liability. While redistributing the
177
+ Work or Derivative Works thereof, You may choose to offer, and charge a
178
+ fee for, acceptance of support, warranty, indemnity, or other liability
179
+ obligations and/or rights consistent with this License. However, in
180
+ accepting such obligations, You may act only on Your own behalf and on
181
+ Your sole responsibility, not on behalf of any other Contributor, and
182
+ only if You agree to indemnify, defend, and hold each Contributor
183
+ harmless for any liability incurred by, or claims asserted against, such
184
+ Contributor by reason of your accepting any such warranty or additional
185
+ liability.
186
+
187
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,17 @@
1
+ Valid-License-Identifier: BSL-1.0
2
+ SPDX-URL: https://spdx.org/licenses/BSL-1.0.html
3
+ Usage-Guide:
4
+ To use the BSL-1.0 License put the following SPDX tag/value pair into a
5
+ comment according to the placement guidelines in the licensing rules
6
+ documentation:
7
+ SPDX-License-Identifier: BSL-1.0
8
+ License-Text:
9
+
10
+ Boost Software License - Version 1.0 - August 17th, 2003
11
+
12
+ Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:
13
+
14
+ The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
+
@@ -0,0 +1,30 @@
1
+ Valid-License-Identifier: MIT
2
+ SPDX-URL: https://spdx.org/licenses/MIT.html
3
+ Usage-Guide:
4
+ To use the MIT License put the following SPDX tag/value pair into a
5
+ comment according to the placement guidelines in the licensing rules
6
+ documentation:
7
+ SPDX-License-Identifier: MIT
8
+ License-Text:
9
+
10
+ MIT License
11
+
12
+ Copyright (c) <year> <copyright holders>
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a
15
+ copy of this software and associated documentation files (the "Software"),
16
+ to deal in the Software without restriction, including without limitation
17
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
18
+ and/or sell copies of the Software, and to permit persons to whom the
19
+ Software is furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in
22
+ all copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
30
+ DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,50 @@
1
+ License and Copyright
2
+ =====================
3
+
4
+ Disclaimer
5
+ ----------
6
+
7
+ Mesa implements various APIs, including `OpenGL`_, `OpenGL ES`_,
8
+ `Vulkan`_ and `OpenCL`_. Even though Mesa implements these APIs, the
9
+ implementation isn't formally conformant on all combinations of drivers
10
+ and hardware. `Khronos`_ maintains lists of conformant implementations
11
+ for each of their APIs, as well as `trademark details`_.
12
+
13
+ This project is called *Mesa*, *Mesa3D*, or *The Mesa 3-D graphics library*.
14
+
15
+ .. _OpenGL: https://www.opengl.org/
16
+ .. _OpenGL ES: https://www.khronos.org/opengles/
17
+ .. _Vulkan: https://www.vulkan.org/
18
+ .. _OpenCL: https://www.khronos.org/opencl/
19
+ .. _Khronos: https://www.khronos.org/
20
+ .. _trademark details: https://www.khronos.org/legal/trademarks/
21
+
22
+ License / Copyright Information
23
+ -------------------------------
24
+
25
+ The Mesa distribution consists of several components. Different
26
+ copyrights and licenses apply to different components. For example, the
27
+ GLX client code uses the SGI Free Software License B, and some of the
28
+ Mesa device drivers are copyrighted by their authors. See below for a
29
+ list of Mesa's main components and the license for each.
30
+
31
+ The core Mesa library is licensed according to the terms of the MIT
32
+ license.
33
+
34
+ Most of the Mesa code is licensed under MIT license,
35
+ but individual files may have their own licenses.
36
+
37
+ You may find all the licenses used within this project in the licenses/ directory.
38
+
39
+ Attention, Contributors
40
+ -----------------------
41
+
42
+ When contributing to the Mesa project you must agree to the licensing
43
+ terms of the component to which you're contributing. The following
44
+ section lists the primary components of the Mesa distribution and their
45
+ respective licenses.
46
+
47
+ Mesa Component Licenses
48
+ -----------------------
49
+
50
+ In general, consult each source file SPDX identifier for license terms.
@@ -0,0 +1,35 @@
1
+ xxHash — from mesa src/util/xxhash.h, compiled into libgallium_wgl.dll. Taken from mesa-26.1.8.
2
+
3
+ xxHash - Extremely Fast Hash algorithm
4
+ Header File
5
+ Copyright (C) 2012-2023 Yann Collet
6
+
7
+ BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
8
+
9
+ Redistribution and use in source and binary forms, with or without
10
+ modification, are permitted provided that the following conditions are
11
+ met:
12
+
13
+ * Redistributions of source code must retain the above copyright
14
+ notice, this list of conditions and the following disclaimer.
15
+ * Redistributions in binary form must reproduce the above
16
+ copyright notice, this list of conditions and the following disclaimer
17
+ in the documentation and/or other materials provided with the
18
+ distribution.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+
32
+ You can contact the author at:
33
+ - xxHash homepage: https://www.xxhash.com
34
+ - xxHash source repository: https://github.com/Cyan4973/xxHash
35
+
@@ -0,0 +1,42 @@
1
+ Berkeley SoftFloat Release 3e — from mesa src/compiler/glsl/float64.glsl, compiled into
2
+ libgallium_wgl.dll (fp64 lowering). Taken from mesa-26.1.8.
3
+
4
+ The implementations contained in this file are heavily based on the
5
+ implementations found in the Berkeley SoftFloat library. As such, they are
6
+ licensed under the same 3-clause BSD license:
7
+
8
+ License for Berkeley SoftFloat Release 3e
9
+
10
+ John R. Hauser
11
+ 2018 January 20
12
+
13
+ The following applies to the whole of SoftFloat Release 3e as well as to
14
+ each source file individually.
15
+
16
+ Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 The Regents of the
17
+ University of California. All rights reserved.
18
+
19
+ Redistribution and use in source and binary forms, with or without
20
+ modification, are permitted provided that the following conditions are met:
21
+
22
+ 1. Redistributions of source code must retain the above copyright notice,
23
+ this list of conditions, and the following disclaimer.
24
+
25
+ 2. Redistributions in binary form must reproduce the above copyright
26
+ notice, this list of conditions, and the following disclaimer in the
27
+ documentation and/or other materials provided with the distribution.
28
+
29
+ 3. Neither the name of the University nor the names of its contributors
30
+ may be used to endorse or promote products derived from this software
31
+ without specific prior written permission.
32
+
33
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS", AND ANY
34
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE
36
+ DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
37
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
38
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
39
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
40
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
41
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
42
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": "26.1.8",
3
+ "asset": "mesa3d-26.1.8-release-msvc.7z",
4
+ "sha256": "4c6d32e653e0ff9ad07796e40c0bcfabf2764d849e3ce4f3b1590112c87e42f9",
5
+ "url": "https://github.com/pal1000/mesa-dist-win/releases/download/26.1.8/mesa3d-26.1.8-release-msvc.7z"
6
+ }
Binary file
package/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ // SPDX-License-Identifier: MIT
2
+ /** The platform-arch this package carries an OpenGL implementation for. */
3
+ export const target: 'win32-x64';
4
+ /** Absolute path to the payload directory (the DLLs, their licences and the notice). */
5
+ export const binDir: string;
6
+ /** Mesa's WGL front end — the file node-gi preloads. */
7
+ export const openGLPath: string;
8
+ /** Whether the payload is actually present (it is fetched on CI, not committed). */
9
+ export const isPresent: boolean;
10
+ declare const _default: { target: typeof target; binDir: string; openGLPath: string; isPresent: boolean };
11
+ export default _default;
package/index.js ADDED
@@ -0,0 +1,25 @@
1
+ // SPDX-License-Identifier: MIT
2
+ // @gjsify/gl-runtime-win32-x64 — where the optional OpenGL implementation is.
3
+ //
4
+ // A path helper and nothing else. @gjsify/node-gi resolves this package BY NAME (it never
5
+ // depends on it — ADR 0023) and preloads `openGLPath` only on a host with no OpenGL driver;
6
+ // see activateBundledOpenGL in node-gi's gtk-runtime.js.
7
+ import { existsSync } from 'node:fs';
8
+ import { dirname, join } from 'node:path';
9
+ import { fileURLToPath } from 'node:url';
10
+
11
+ const here = dirname(fileURLToPath(import.meta.url));
12
+
13
+ /** The platform-arch this package carries an OpenGL implementation for. */
14
+ export const target = 'win32-x64';
15
+
16
+ /** Absolute path to the payload directory (the DLLs, their licences and the notice). */
17
+ export const binDir = join(here, 'bin');
18
+
19
+ /** Mesa's WGL front end — the file node-gi preloads; `libgallium_wgl.dll` sits beside it. */
20
+ export const openGLPath = join(binDir, 'opengl32.dll');
21
+
22
+ /** Whether the payload is actually present (it is fetched on CI, not committed). */
23
+ export const isPresent = existsSync(openGLPath) && existsSync(join(binDir, 'libgallium_wgl.dll'));
24
+
25
+ export default { target, binDir, openGLPath, isPresent };
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@gjsify/gl-runtime-win32-x64",
3
+ "version": "0.52.0",
4
+ "description": "Optional OpenGL implementation for the Windows x64 GTK runtime — Mesa's WGL build (opengl32.dll + libgallium_wgl.dll) that @gjsify/node-gi preloads on a host with no OpenGL driver of its own (VMs, RDP sessions, CI), so Gtk.GLArea and GSK's GL renderer work there. Opt in by adding it as a dependency. Platform-gated (win32/x64 only).",
5
+ "type": "module",
6
+ "license": "SEE LICENSE IN bin/THIRD-PARTY-NOTICES.md",
7
+ "os": [
8
+ "win32"
9
+ ],
10
+ "cpu": [
11
+ "x64"
12
+ ],
13
+ "main": "./index.js",
14
+ "types": "./index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./index.d.ts",
18
+ "default": "./index.js"
19
+ },
20
+ "./bin/*": "./bin/*"
21
+ },
22
+ "files": [
23
+ "index.js",
24
+ "index.d.ts",
25
+ "bin"
26
+ ],
27
+ "gjsify": {
28
+ "runtimes": {
29
+ "gjs": "none",
30
+ "node": "polyfill",
31
+ "browser": "none",
32
+ "nativescript": "none"
33
+ },
34
+ "tier": 3
35
+ },
36
+ "scripts": {
37
+ "build:bundle": "node scripts/build-gl-runtime.mjs"
38
+ },
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "git+https://github.com/gjsify/gjsify.git",
42
+ "directory": "packages/node-gi/gl-runtime-win32-x64"
43
+ }
44
+ }