@deepseek-ai/libreoffice-kit 0.2.0 → 0.2.2
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/NOTICE +1 -1
- package/README.md +5 -5
- package/README.zh.md +5 -5
- package/frame-forwarding/CMakeLists.txt +3 -4
- package/frame-forwarding/README.md +18 -18
- package/frame-forwarding/README.zh.md +19 -19
- package/frame-forwarding/include/dsh_frame_forwarding.h +33 -9
- package/frame-forwarding/index.d.ts +58 -54
- package/frame-forwarding/index.mjs +14 -17
- package/frame-forwarding/prebuilds/darwin-arm64/frame-forwarding.node +0 -0
- package/frame-forwarding/prebuilds/darwin-arm64/libdsh_frame_forwarding_sdk.a +0 -0
- package/frame-forwarding/prebuilds/darwin-arm64/manifest.json +22 -21
- package/frame-forwarding/prebuilds/darwin-x64/frame-forwarding.node +0 -0
- package/frame-forwarding/prebuilds/darwin-x64/libdsh_frame_forwarding_sdk.a +0 -0
- package/frame-forwarding/prebuilds/darwin-x64/manifest.json +22 -21
- package/frame-forwarding/prebuilds/win32-arm64/dsh_frame_forwarding_sdk.lib +0 -0
- package/frame-forwarding/prebuilds/win32-arm64/frame-forwarding.node +0 -0
- package/frame-forwarding/prebuilds/win32-arm64/manifest.json +22 -21
- package/frame-forwarding/prebuilds/win32-x64/dsh_frame_forwarding_sdk.lib +0 -0
- package/frame-forwarding/prebuilds/win32-x64/frame-forwarding.node +0 -0
- package/frame-forwarding/prebuilds/win32-x64/manifest.json +22 -21
- package/frame-forwarding/receipt.json +15 -14
- package/frame-forwarding/scripts/build-webgpu.mjs +1 -0
- package/frame-forwarding/scripts/build.mjs +3 -3
- package/frame-forwarding/scripts/metadata.mjs +11 -8
- package/frame-forwarding/scripts/source-identity.mjs +3 -3
- package/frame-forwarding/sdk.json +6 -5
- package/frame-forwarding/{include/dsh_webgpu.h → src/graphite-interop-internal.hxx} +22 -22
- package/frame-forwarding/src/{webgpu.cc → graphite-interop.cc} +34 -24
- package/frame-forwarding/src/node-producer.cc +24 -154
- package/frame-forwarding/src/producer.cc +93 -26
- package/frame-forwarding/src/receiver.cc +416 -212
- package/frame-forwarding/src/relay-transport.inc +38 -10
- package/frame-forwarding/src/transport.cc +307 -141
- package/frame-forwarding/src/transport.h +60 -9
- package/frame-forwarding/verify.d.mts +1 -1
- package/frame-forwarding/verify.mjs +19 -17
- package/lib/cli.js +6 -6
- package/lib/editor.js +15 -10
- package/lib/index.js +6 -6
- package/lib/types/editor.d.ts +17 -4
- package/lib/types/engine.d.ts +1 -1
- package/lib/types/fonts.d.ts +1 -1
- package/lib/worker.js +3 -2
- package/package.json +8 -10
- package/frame-forwarding/include/dsh_frame_forwarding_engine.h +0 -66
- package/frame-forwarding/include/dsh_frame_forwarding_node.h +0 -27
|
@@ -2,30 +2,51 @@
|
|
|
2
2
|
export type FrameForwardingAdapterId = string & { readonly __frameForwardingAdapterId: unique symbol };
|
|
3
3
|
/** Receiver-owned delivery identity; independent of reusable producer frame IDs. */
|
|
4
4
|
export type FrameForwardingDeliveryId = number & { readonly __frameForwardingDeliveryId: unique symbol };
|
|
5
|
-
/**
|
|
5
|
+
/** Opaque credential that lets any holder connect a producer to one channel; never a renderer-facing value or log field. */
|
|
6
|
+
export type FrameForwardingTx = string & { readonly __frameForwardingTx: unique symbol };
|
|
7
|
+
/** Increasing, never reused identity of one producer connection within its channel. */
|
|
8
|
+
export type FrameForwardingConnectionId = number & { readonly __frameForwardingConnectionId: unique symbol };
|
|
9
|
+
/** Receiver notifications on the JavaScript thread. Every connection event names its connection. */
|
|
6
10
|
export type FrameForwardingEvent =
|
|
7
|
-
|
|
8
|
-
| { type: '
|
|
11
|
+
/** A producer holding the TX credential received ready; its frames follow. */
|
|
12
|
+
| { type: 'connected'; connectionId: FrameForwardingConnectionId; pid: number }
|
|
13
|
+
| { type: 'frame'; connectionId: FrameForwardingConnectionId; frameId: number; deliveryId: FrameForwardingDeliveryId; width: number; height: number; stride: number; metadata: string; adapterId: FrameForwardingAdapterId;
|
|
9
14
|
transport: 'shared-texture'; handle: Buffer;
|
|
10
15
|
/** Actual source descriptor declares key-0 synchronization; false for legacy producers and macOS. */
|
|
11
16
|
sourceKeyedMutex: boolean;
|
|
12
17
|
/** Windows adapter owning the output texture; null for macOS IOSurface. */
|
|
13
18
|
presentationAdapterId: FrameForwardingAdapterId | null }
|
|
14
|
-
| { type: 'message'
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
| { type: 'message'; connectionId: FrameForwardingConnectionId; text: string }
|
|
20
|
+
/** The producer left or failed; text is empty after its goodbye. Delivered frames stay valid and the connection drains. */
|
|
21
|
+
| { type: 'disconnected'; connectionId: FrameForwardingConnectionId; text?: string }
|
|
22
|
+
/** Every frame and resource of the connection was released; a waiting successor connects next. */
|
|
23
|
+
| { type: 'drained'; connectionId: FrameForwardingConnectionId }
|
|
24
|
+
/** GPU completion is unknown, so the connection keeps its resources and budget and its drain waits. */
|
|
25
|
+
| { type: 'drain-blocked'; connectionId: FrameForwardingConnectionId; text: string }
|
|
26
|
+
/**
|
|
27
|
+
* A candidate was refused: channel-busy, transferable-tx-required, invalid-credential, channel-closed, protocol-mismatch
|
|
28
|
+
* naming both protocol versions, or a setup failure.
|
|
29
|
+
*/
|
|
30
|
+
| { type: 'rejected'; text: string }
|
|
31
|
+
/** The channel stopped accepting producers; close it. */
|
|
32
|
+
| { type: 'failed'; text: string };
|
|
33
|
+
/**
|
|
34
|
+
* One frame-forwarding channel: a stable listener serving one producer connection at a time. A connection's frames,
|
|
35
|
+
* allocations, credit and GPU relay state belong to it; after it disconnects they drain before the next producer
|
|
36
|
+
* holding the TX credential receives ready. Frame resources remain retained until explicit release. GC and Worker
|
|
37
|
+
* termination request asynchronous native cleanup.
|
|
38
|
+
*/
|
|
17
39
|
export interface FrameForwardingReceiver {
|
|
18
|
-
/**
|
|
19
|
-
readonly
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
send(json: string): void;
|
|
24
|
-
/** Release after Electron allReferencesReleased; duplicate releases return false. */
|
|
40
|
+
/** Transferable credential: any process holding a copy may connect; pass it only to trusted producers. */
|
|
41
|
+
readonly tx: FrameForwardingTx;
|
|
42
|
+
/** Send application JSON to one connection; throws unless it is the connected one, or above 16383 UTF-8 bytes. */
|
|
43
|
+
send(connectionId: FrameForwardingConnectionId, json: string): void;
|
|
44
|
+
/** Release after Electron allReferencesReleased; credit returns only to the frame's own connection. Duplicate releases return false. */
|
|
25
45
|
release(deliveryId: FrameForwardingDeliveryId): boolean;
|
|
26
46
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
47
|
+
* Close the channel: the listener stops, so the TX credential no longer connects, and the current connection ends.
|
|
48
|
+
* Asynchronously awaits GPU completion or confirmed device removal and worker exit. Outstanding delivered frames
|
|
49
|
+
* remain owned until release(). Unfinished copies retain their resource and budget reservations.
|
|
29
50
|
* A stalled driver can leave this promise and Worker termination pending; operation deadlines do not establish GPU completion.
|
|
30
51
|
*/
|
|
31
52
|
close(): Promise<void>;
|
|
@@ -34,12 +55,12 @@ export interface FrameForwardingReceiver {
|
|
|
34
55
|
export interface FrameForwardingBudget { readonly __frameForwardingBudget: unique symbol }
|
|
35
56
|
/** Create one budget per window and share it among that window's receivers. */
|
|
36
57
|
export function createBudget(maxBytes: number): FrameForwardingBudget;
|
|
37
|
-
/** Create a
|
|
58
|
+
/** Create a channel whose producer allocations reserve bytes from the shared budget. */
|
|
38
59
|
export function createReceiver(options: {
|
|
39
60
|
maxFrames: number; maxBytes: number; budget: FrameForwardingBudget;
|
|
40
61
|
/** Electron's actual adapter for shared-texture on Windows; null on macOS. */
|
|
41
62
|
displayAdapter: FrameForwardingAdapterId | null;
|
|
42
|
-
/** Total queued GPU readback/upload deadline. Expiry
|
|
63
|
+
/** Total queued GPU readback/upload deadline, also bounding a connected client's handshake. Expiry ends the connection; safe resource retirement may take longer. */
|
|
43
64
|
readbackTimeoutMs: number;
|
|
44
65
|
/** Ordered by default; latest permits replacing pending full-frame images. */
|
|
45
66
|
framePolicy?: 'ordered' | 'latest';
|
|
@@ -47,8 +68,6 @@ export function createReceiver(options: {
|
|
|
47
68
|
/** Identify the GPU owning a borrowed native texture handle; null means unavailable. */
|
|
48
69
|
export function getAdapter(handle: Buffer): FrameForwardingAdapterId | null;
|
|
49
70
|
|
|
50
|
-
/** Opaque engine descriptor exported by a Node addon with dsh_frame_forwarding_export_engine(). */
|
|
51
|
-
export interface FrameForwardingEngine { readonly __frameForwardingEngine: unique symbol }
|
|
52
71
|
/** Native worker notifications delivered serially on the creating JavaScript thread. */
|
|
53
72
|
export type FrameForwardingProducerEvent = { type: 'message' | 'error'; text: string } | { type: 'closed' };
|
|
54
73
|
/** An acquired surface remains owned until submit, discard, or producer close; GC never releases it. */
|
|
@@ -62,11 +81,6 @@ export interface FrameForwardingProducerSurface {
|
|
|
62
81
|
* @returns Resolves when input bytes are copied and may be reused; Windows GPU completion is asynchronous. Failure may close the producer.
|
|
63
82
|
*/
|
|
64
83
|
writeBgra(pixels: Buffer, stride: number): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Invoke the configured native engine on this acquired texture, without the streaming prepare callback.
|
|
67
|
-
* @returns Resolves after Windows commands are queued and keyed access released, or macOS GPU writes complete. A missing engine rejects without consuming the surface.
|
|
68
|
-
*/
|
|
69
|
-
render(): Promise<void>;
|
|
70
84
|
/**
|
|
71
85
|
* Transfer the frame to the receiver; a successful call consumes this lease.
|
|
72
86
|
* @param frameId Positive safe integer, unique among outstanding frames.
|
|
@@ -74,6 +88,15 @@ export interface FrameForwardingProducerSurface {
|
|
|
74
88
|
* @returns Resolves on native submission, not display or receiver release.
|
|
75
89
|
*/
|
|
76
90
|
submit(frameId: number, metadata: string): Promise<void>;
|
|
91
|
+
/**
|
|
92
|
+
* Transfer the frame as the producer's newest state; a successful call consumes this lease. While all but one of the
|
|
93
|
+
* receiver's surfaces await release, the frame waits in the producer and a newer latest submission replaces it, and a
|
|
94
|
+
* receiver may drop it before presentation once a newer latest frame is ready.
|
|
95
|
+
* @param frameId Positive safe integer, unique among outstanding frames.
|
|
96
|
+
* @param metadata Application JSON, at most 16383 UTF-8 bytes with no NUL.
|
|
97
|
+
* @returns Resolves on native submission or replacement, not display or receiver release.
|
|
98
|
+
*/
|
|
99
|
+
submitLatest(frameId: number, metadata: string): Promise<void>;
|
|
77
100
|
/** @returns Resolves after returning an unsubmitted, idle surface to the pool; busy or consumed leases reject. */
|
|
78
101
|
discard(): Promise<void>;
|
|
79
102
|
/** @returns The same explicit release as discard(); busy or consumed leases reject. */
|
|
@@ -81,29 +104,21 @@ export interface FrameForwardingProducerSurface {
|
|
|
81
104
|
}
|
|
82
105
|
/** Options for a bounded producer worker. Application configuration supplies every limit. */
|
|
83
106
|
export interface FrameForwardingProducerOptions {
|
|
84
|
-
/**
|
|
85
|
-
|
|
107
|
+
/** The channel's TX credential; a parent process may pass it to the producer it starts. */
|
|
108
|
+
tx: FrameForwardingTx | string;
|
|
86
109
|
/** Maximum ordinary operations awaiting completion, including acquisitions; 1–65536. Discard has one reserved slot per owned lease. */
|
|
87
110
|
maxPendingOperations: number;
|
|
88
111
|
/** Positive connection, queue/acquisition, and GPU-wait deadline in milliseconds. */
|
|
89
112
|
operationTimeoutMs: number;
|
|
90
|
-
/** Retained through native teardown; callbacks share one native worker and must honor cancellation. */
|
|
91
|
-
engine?: FrameForwardingEngine;
|
|
92
|
-
}
|
|
93
|
-
/** Native continuous rendering avoids per-frame JavaScript work and obeys receiver credits. */
|
|
94
|
-
export interface FrameForwardingProducerStreamOptions {
|
|
95
|
-
width: number;
|
|
96
|
-
height: number;
|
|
97
|
-
/** Viewport generation written into each frame's metadata. */
|
|
98
|
-
generation: number;
|
|
99
|
-
/** Target frame interval in milliseconds, at least 1; fractions such as 1000 / 60 are accepted. Rendering time is included, and elapsed deadlines are skipped without catch-up bursts. */
|
|
100
|
-
frameIntervalMs: number;
|
|
101
113
|
}
|
|
102
114
|
/** Producer backed by the C SDK, with explicit asynchronous teardown. */
|
|
103
115
|
export interface FrameForwardingProducer {
|
|
104
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* Resolves after the receiver's ready, which waits while a previous producer of the channel
|
|
118
|
+
* drains; rejects with a message starting "channel-busy" while another producer holds the channel. Queued operations may precede it.
|
|
119
|
+
*/
|
|
105
120
|
readonly ready: Promise<void>;
|
|
106
|
-
/** Resolves after worker exit, C client close,
|
|
121
|
+
/** Resolves after worker exit, C client close, and pending operation settlement. */
|
|
107
122
|
readonly closed: Promise<void>;
|
|
108
123
|
/**
|
|
109
124
|
* Wait for native allocation credit without blocking the worker. Discard remains admissible at queue capacity.
|
|
@@ -119,26 +134,15 @@ export interface FrameForwardingProducer {
|
|
|
119
134
|
*/
|
|
120
135
|
send(json: string): Promise<void>;
|
|
121
136
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
* @returns
|
|
125
|
-
*/
|
|
126
|
-
start(options: FrameForwardingProducerStreamOptions): Promise<void>;
|
|
127
|
-
/**
|
|
128
|
-
* Apply a batch of engine state before subsequent frames on the same native worker and make the next change check immediately eligible.
|
|
129
|
-
* @param json Engine-specific JSON of at most 16383 UTF-8 bytes with no NUL.
|
|
130
|
-
* @param inputSequence Nondecreasing safe integer echoed in subsequent frame metadata.
|
|
131
|
-
* @returns Resolves after the engine applies the update.
|
|
137
|
+
* Close this producer's connection: no further operation is sent, unsubmitted frames are dropped, and the receiver
|
|
138
|
+
* drains the frames it holds before a successor with the same TX credential becomes ready.
|
|
139
|
+
* @returns Idempotent closed promise after interrupting connect, poll, and acquisition waits.
|
|
132
140
|
*/
|
|
133
|
-
update(json: string, inputSequence: number): Promise<void>;
|
|
134
|
-
/** @returns Resolves once streaming stops; receiver-owned frames retain their credits until released. */
|
|
135
|
-
stop(): Promise<void>;
|
|
136
|
-
/** @returns Idempotent closed promise after interrupting connect/poll and cancellable engine waits. */
|
|
137
141
|
close(): Promise<void>;
|
|
138
142
|
}
|
|
139
143
|
/**
|
|
140
144
|
* Create a C-SDK producer worker without blocking the JavaScript event loop.
|
|
141
|
-
* @param options
|
|
145
|
+
* @param options TX credential and explicit limits.
|
|
142
146
|
* @param onEvent Message/error/closed listener; listener exceptions are contained so teardown can complete.
|
|
143
147
|
* @returns A producer requiring explicit close; its native worker keeps the process alive.
|
|
144
148
|
*/
|
|
@@ -13,19 +13,21 @@ export function createBudget(maxBytes) {
|
|
|
13
13
|
budgets.set(budget, loadBinding().createBudget(maxBytes));
|
|
14
14
|
return budget;
|
|
15
15
|
}
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Create a frame-forwarding channel and publish its listener. Calls onEvent only on the JavaScript thread. The returned
|
|
18
|
+
* TX credential lets any producer holding it connect; the channel serves one connection at a time.
|
|
19
|
+
*/
|
|
17
20
|
export function createReceiver({ maxFrames, maxBytes, budget, displayAdapter, readbackTimeoutMs, framePolicy = 'ordered' }, onEvent) {
|
|
18
21
|
loadBinding();
|
|
19
22
|
const allocationBudget = budgets.get(budget);
|
|
20
23
|
if (!allocationBudget) throw new TypeError("Receiver requires a budget from createBudget()");
|
|
21
24
|
if (framePolicy !== 'ordered' && framePolicy !== 'latest') throw new TypeError('Invalid native frame policy');
|
|
22
|
-
const { native,
|
|
25
|
+
const { native, tx } = binding.create(maxFrames, maxBytes, onEvent, allocationBudget, displayAdapter === null ? '' : displayAdapter,
|
|
23
26
|
readbackTimeoutMs, framePolicy === 'latest');
|
|
24
27
|
let closed;
|
|
25
28
|
return {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
send(json) { binding.send(native, json); },
|
|
29
|
+
tx,
|
|
30
|
+
send(connectionId, json) { binding.send(native, connectionId, json); },
|
|
29
31
|
release(deliveryId) { return binding.release(native, deliveryId); },
|
|
30
32
|
close() { return closed ??= binding.close(native); },
|
|
31
33
|
};
|
|
@@ -35,17 +37,17 @@ export function getAdapter(handle) {
|
|
|
35
37
|
return loadBinding().getAdapter(handle) || null;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
/** Create a producer whose transport and
|
|
39
|
-
export function createProducer({
|
|
40
|
+
/** Create a producer whose transport and surface operations run on one native thread. */
|
|
41
|
+
export function createProducer({ tx, maxPendingOperations, operationTimeoutMs }, onEvent) {
|
|
40
42
|
const api = loadBinding();
|
|
41
|
-
const { native, ready, closed } = api.createProducer(
|
|
43
|
+
const { native, ready, closed } = api.createProducer(tx, maxPendingOperations, operationTimeoutMs, onEvent);
|
|
42
44
|
const command = (kind, ...args) => api.producerCommand(native, kind, ...args);
|
|
43
45
|
return Object.freeze({
|
|
44
46
|
ready,
|
|
45
47
|
closed,
|
|
46
48
|
async acquire(width, height) {
|
|
47
49
|
const surface = await command(0, width, height);
|
|
48
|
-
const discard = async () => command(
|
|
50
|
+
const discard = async () => command(3, surface);
|
|
49
51
|
return Object.freeze({
|
|
50
52
|
width, height,
|
|
51
53
|
async writeBgra(pixels, stride) {
|
|
@@ -54,18 +56,13 @@ export function createProducer({ endpoint, maxPendingOperations, operationTimeou
|
|
|
54
56
|
}
|
|
55
57
|
await command(1, surface, pixels, stride);
|
|
56
58
|
},
|
|
57
|
-
async
|
|
58
|
-
async
|
|
59
|
+
async submit(frameId, metadata) { await command(2, surface, frameId, metadata); },
|
|
60
|
+
async submitLatest(frameId, metadata) { await command(5, surface, frameId, metadata); },
|
|
59
61
|
discard,
|
|
60
62
|
close: discard,
|
|
61
63
|
});
|
|
62
64
|
},
|
|
63
|
-
async send(json) { await command(
|
|
64
|
-
async start({ width, height, generation, frameIntervalMs }) {
|
|
65
|
-
await command(6, width, height, generation, frameIntervalMs);
|
|
66
|
-
},
|
|
67
|
-
async update(json, inputSequence) { await command(7, json, inputSequence); },
|
|
68
|
-
async stop() { await command(8); },
|
|
65
|
+
async send(json) { await command(4, json); },
|
|
69
66
|
close() { api.closeProducer(native); return closed; },
|
|
70
67
|
});
|
|
71
68
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sources": {
|
|
3
|
-
"include/dsh_frame_forwarding.h": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"include/dsh_webgpu.h": "641b5e1f129add0238fd2016ea06c30d737530632045fc76cb885cdf6ef8c3ac",
|
|
7
|
-
"src/node-producer.cc": "92f9a72d76bbf1360b11afc50bc0fd07a3f3e4fa48cbaedb78413eefd9224b66",
|
|
3
|
+
"include/dsh_frame_forwarding.h": "b60cb71c80d0401b89990f8faeb19416ec553b231d9f84c7f06a71d0fe0acd02",
|
|
4
|
+
"src/graphite-interop-internal.hxx": "012bba82e8e0e49f8ed9e62a357d61d5932d248582eafbcd914358d46711bfab",
|
|
5
|
+
"src/node-producer.cc": "69f4dd6499a7af1d0efce3aa78710e6b6d3564363db077d109eb09791cc565cb",
|
|
8
6
|
"src/producer-internal.h": "7ebe4756fa7d693567be6fbff3b25e6c29a3be474f0ac42fd51986ecdd14bc72",
|
|
9
|
-
"src/transport.h": "
|
|
10
|
-
"src/transport.cc": "
|
|
11
|
-
"src/relay-transport.inc": "
|
|
12
|
-
"src/producer.cc": "
|
|
13
|
-
"src/receiver.cc": "
|
|
7
|
+
"src/transport.h": "e844c1ef2efdc490ad0be400d1f45dc31b9b071d9258bca3ca4b27e12ce8b069",
|
|
8
|
+
"src/transport.cc": "c3e752f6213eeeb4070e1885a1fc4b15e9307041834ab8a0f907018107224a8f",
|
|
9
|
+
"src/relay-transport.inc": "3e96b42414c3397ed59fc3323ee29de040f9889c0c474c277e02fd077a92c607",
|
|
10
|
+
"src/producer.cc": "df01da4048d8e7849407708be978e98232a5090fed59afbba617e896f6fad156",
|
|
11
|
+
"src/receiver.cc": "08346d8020744adefdc5e1b59d011f9ecffa6c161bbbd59eed17068d696a301b",
|
|
14
12
|
"src/win-delay-load.cc": "7acf6bad7bdea695163cbf151286787eb0f9144bc53a7a137f3373888c54cb20",
|
|
15
13
|
"src/win-delay-load.LICENSE": "662a1b0115251cfb29c6aed0f221f8847bc49c6365d1c53a62c9f4bccc2489c3",
|
|
16
|
-
"src/
|
|
17
|
-
"CMakeLists.txt": "
|
|
18
|
-
"sdk.json": "
|
|
19
|
-
"scripts/build.mjs": "
|
|
20
|
-
"scripts/metadata.mjs": "
|
|
21
|
-
"scripts/source-identity.mjs": "
|
|
22
|
-
"scripts/build-webgpu.mjs": "
|
|
14
|
+
"src/graphite-interop.cc": "4f2de8e9ad4bd1aef9220c95d3660937980893f12af006116bed720e7dfaf013",
|
|
15
|
+
"CMakeLists.txt": "90e821d3718037a60d989b80bc156cb4cc267d66487139e81cf568cb8a54d344",
|
|
16
|
+
"sdk.json": "e8f6b12f2772ae71aabae2a10616ffc8eb999d33698084522ab8afe82d52e1b9",
|
|
17
|
+
"scripts/build.mjs": "0824c5975106ce2101026d3c7f451643fe28e358b8bff644739fe7614e82c6fa",
|
|
18
|
+
"scripts/metadata.mjs": "dd794ba154b147ee37ce10926fb6fae2bb1f60b3c32c10c14b4b498b8a49d589",
|
|
19
|
+
"scripts/source-identity.mjs": "e8360e59c4c83eeb4110d3a1c278d330f4a2d20b87edefb1f1e527dc17301602",
|
|
20
|
+
"scripts/build-webgpu.mjs": "919d40e78b7f5d3e2a7de6d5d2e46ca4a26bcce18f98abc1220c59f8cb79ebdd",
|
|
23
21
|
"webgpu-dependencies.json": "99fd5b4763f3621ffe72290ca5ddaa9c26f8d2404b54c9158f20f6fd29a403c2"
|
|
24
22
|
},
|
|
25
|
-
"sourceCommit": "
|
|
23
|
+
"sourceCommit": "ed3e1c52a8c78b5038ca5d624360a3eed6f0c705",
|
|
26
24
|
"sourceDirty": false,
|
|
27
|
-
"version": "0.2.
|
|
25
|
+
"version": "0.2.2",
|
|
28
26
|
"protocolVersion": 1,
|
|
27
|
+
"capabilities": [
|
|
28
|
+
"transferable-tx"
|
|
29
|
+
],
|
|
29
30
|
"platform": "darwin-arm64",
|
|
30
31
|
"files": {
|
|
31
|
-
"frame-forwarding.node": "
|
|
32
|
-
"libdsh_frame_forwarding_sdk.a": "
|
|
32
|
+
"frame-forwarding.node": "78d7969a3096eb6930944f2722e3233b9886a3db9a84c371bee8a0f556acd18e",
|
|
33
|
+
"libdsh_frame_forwarding_sdk.a": "3ad0d84ca86efd81e9f95aac5214ff34c8d78e504187aa864fb0f846a67b2a80"
|
|
33
34
|
}
|
|
34
35
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sources": {
|
|
3
|
-
"include/dsh_frame_forwarding.h": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"include/dsh_webgpu.h": "641b5e1f129add0238fd2016ea06c30d737530632045fc76cb885cdf6ef8c3ac",
|
|
7
|
-
"src/node-producer.cc": "92f9a72d76bbf1360b11afc50bc0fd07a3f3e4fa48cbaedb78413eefd9224b66",
|
|
3
|
+
"include/dsh_frame_forwarding.h": "b60cb71c80d0401b89990f8faeb19416ec553b231d9f84c7f06a71d0fe0acd02",
|
|
4
|
+
"src/graphite-interop-internal.hxx": "012bba82e8e0e49f8ed9e62a357d61d5932d248582eafbcd914358d46711bfab",
|
|
5
|
+
"src/node-producer.cc": "69f4dd6499a7af1d0efce3aa78710e6b6d3564363db077d109eb09791cc565cb",
|
|
8
6
|
"src/producer-internal.h": "7ebe4756fa7d693567be6fbff3b25e6c29a3be474f0ac42fd51986ecdd14bc72",
|
|
9
|
-
"src/transport.h": "
|
|
10
|
-
"src/transport.cc": "
|
|
11
|
-
"src/relay-transport.inc": "
|
|
12
|
-
"src/producer.cc": "
|
|
13
|
-
"src/receiver.cc": "
|
|
7
|
+
"src/transport.h": "e844c1ef2efdc490ad0be400d1f45dc31b9b071d9258bca3ca4b27e12ce8b069",
|
|
8
|
+
"src/transport.cc": "c3e752f6213eeeb4070e1885a1fc4b15e9307041834ab8a0f907018107224a8f",
|
|
9
|
+
"src/relay-transport.inc": "3e96b42414c3397ed59fc3323ee29de040f9889c0c474c277e02fd077a92c607",
|
|
10
|
+
"src/producer.cc": "df01da4048d8e7849407708be978e98232a5090fed59afbba617e896f6fad156",
|
|
11
|
+
"src/receiver.cc": "08346d8020744adefdc5e1b59d011f9ecffa6c161bbbd59eed17068d696a301b",
|
|
14
12
|
"src/win-delay-load.cc": "7acf6bad7bdea695163cbf151286787eb0f9144bc53a7a137f3373888c54cb20",
|
|
15
13
|
"src/win-delay-load.LICENSE": "662a1b0115251cfb29c6aed0f221f8847bc49c6365d1c53a62c9f4bccc2489c3",
|
|
16
|
-
"src/
|
|
17
|
-
"CMakeLists.txt": "
|
|
18
|
-
"sdk.json": "
|
|
19
|
-
"scripts/build.mjs": "
|
|
20
|
-
"scripts/metadata.mjs": "
|
|
21
|
-
"scripts/source-identity.mjs": "
|
|
22
|
-
"scripts/build-webgpu.mjs": "
|
|
14
|
+
"src/graphite-interop.cc": "4f2de8e9ad4bd1aef9220c95d3660937980893f12af006116bed720e7dfaf013",
|
|
15
|
+
"CMakeLists.txt": "90e821d3718037a60d989b80bc156cb4cc267d66487139e81cf568cb8a54d344",
|
|
16
|
+
"sdk.json": "e8f6b12f2772ae71aabae2a10616ffc8eb999d33698084522ab8afe82d52e1b9",
|
|
17
|
+
"scripts/build.mjs": "0824c5975106ce2101026d3c7f451643fe28e358b8bff644739fe7614e82c6fa",
|
|
18
|
+
"scripts/metadata.mjs": "dd794ba154b147ee37ce10926fb6fae2bb1f60b3c32c10c14b4b498b8a49d589",
|
|
19
|
+
"scripts/source-identity.mjs": "e8360e59c4c83eeb4110d3a1c278d330f4a2d20b87edefb1f1e527dc17301602",
|
|
20
|
+
"scripts/build-webgpu.mjs": "919d40e78b7f5d3e2a7de6d5d2e46ca4a26bcce18f98abc1220c59f8cb79ebdd",
|
|
23
21
|
"webgpu-dependencies.json": "99fd5b4763f3621ffe72290ca5ddaa9c26f8d2404b54c9158f20f6fd29a403c2"
|
|
24
22
|
},
|
|
25
|
-
"sourceCommit": "
|
|
23
|
+
"sourceCommit": "ed3e1c52a8c78b5038ca5d624360a3eed6f0c705",
|
|
26
24
|
"sourceDirty": false,
|
|
27
|
-
"version": "0.2.
|
|
25
|
+
"version": "0.2.2",
|
|
28
26
|
"protocolVersion": 1,
|
|
27
|
+
"capabilities": [
|
|
28
|
+
"transferable-tx"
|
|
29
|
+
],
|
|
29
30
|
"platform": "darwin-x64",
|
|
30
31
|
"files": {
|
|
31
|
-
"frame-forwarding.node": "
|
|
32
|
-
"libdsh_frame_forwarding_sdk.a": "
|
|
32
|
+
"frame-forwarding.node": "caff4701541dea921809a963e79629f16ff3474dff50cc87e6afd2c6758e3a14",
|
|
33
|
+
"libdsh_frame_forwarding_sdk.a": "9b92cf49ac886048c8019da9d066776365ad8e4389794ac64920c3ebebe4d0df"
|
|
33
34
|
}
|
|
34
35
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sources": {
|
|
3
|
-
"include/dsh_frame_forwarding.h": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"include/dsh_webgpu.h": "641b5e1f129add0238fd2016ea06c30d737530632045fc76cb885cdf6ef8c3ac",
|
|
7
|
-
"src/node-producer.cc": "92f9a72d76bbf1360b11afc50bc0fd07a3f3e4fa48cbaedb78413eefd9224b66",
|
|
3
|
+
"include/dsh_frame_forwarding.h": "b60cb71c80d0401b89990f8faeb19416ec553b231d9f84c7f06a71d0fe0acd02",
|
|
4
|
+
"src/graphite-interop-internal.hxx": "012bba82e8e0e49f8ed9e62a357d61d5932d248582eafbcd914358d46711bfab",
|
|
5
|
+
"src/node-producer.cc": "69f4dd6499a7af1d0efce3aa78710e6b6d3564363db077d109eb09791cc565cb",
|
|
8
6
|
"src/producer-internal.h": "7ebe4756fa7d693567be6fbff3b25e6c29a3be474f0ac42fd51986ecdd14bc72",
|
|
9
|
-
"src/transport.h": "
|
|
10
|
-
"src/transport.cc": "
|
|
11
|
-
"src/relay-transport.inc": "
|
|
12
|
-
"src/producer.cc": "
|
|
13
|
-
"src/receiver.cc": "
|
|
7
|
+
"src/transport.h": "e844c1ef2efdc490ad0be400d1f45dc31b9b071d9258bca3ca4b27e12ce8b069",
|
|
8
|
+
"src/transport.cc": "c3e752f6213eeeb4070e1885a1fc4b15e9307041834ab8a0f907018107224a8f",
|
|
9
|
+
"src/relay-transport.inc": "3e96b42414c3397ed59fc3323ee29de040f9889c0c474c277e02fd077a92c607",
|
|
10
|
+
"src/producer.cc": "df01da4048d8e7849407708be978e98232a5090fed59afbba617e896f6fad156",
|
|
11
|
+
"src/receiver.cc": "08346d8020744adefdc5e1b59d011f9ecffa6c161bbbd59eed17068d696a301b",
|
|
14
12
|
"src/win-delay-load.cc": "7acf6bad7bdea695163cbf151286787eb0f9144bc53a7a137f3373888c54cb20",
|
|
15
13
|
"src/win-delay-load.LICENSE": "662a1b0115251cfb29c6aed0f221f8847bc49c6365d1c53a62c9f4bccc2489c3",
|
|
16
|
-
"src/
|
|
17
|
-
"CMakeLists.txt": "
|
|
18
|
-
"sdk.json": "
|
|
19
|
-
"scripts/build.mjs": "
|
|
20
|
-
"scripts/metadata.mjs": "
|
|
21
|
-
"scripts/source-identity.mjs": "
|
|
22
|
-
"scripts/build-webgpu.mjs": "
|
|
14
|
+
"src/graphite-interop.cc": "4f2de8e9ad4bd1aef9220c95d3660937980893f12af006116bed720e7dfaf013",
|
|
15
|
+
"CMakeLists.txt": "90e821d3718037a60d989b80bc156cb4cc267d66487139e81cf568cb8a54d344",
|
|
16
|
+
"sdk.json": "e8f6b12f2772ae71aabae2a10616ffc8eb999d33698084522ab8afe82d52e1b9",
|
|
17
|
+
"scripts/build.mjs": "0824c5975106ce2101026d3c7f451643fe28e358b8bff644739fe7614e82c6fa",
|
|
18
|
+
"scripts/metadata.mjs": "dd794ba154b147ee37ce10926fb6fae2bb1f60b3c32c10c14b4b498b8a49d589",
|
|
19
|
+
"scripts/source-identity.mjs": "e8360e59c4c83eeb4110d3a1c278d330f4a2d20b87edefb1f1e527dc17301602",
|
|
20
|
+
"scripts/build-webgpu.mjs": "919d40e78b7f5d3e2a7de6d5d2e46ca4a26bcce18f98abc1220c59f8cb79ebdd",
|
|
23
21
|
"webgpu-dependencies.json": "99fd5b4763f3621ffe72290ca5ddaa9c26f8d2404b54c9158f20f6fd29a403c2"
|
|
24
22
|
},
|
|
25
|
-
"sourceCommit": "
|
|
23
|
+
"sourceCommit": "ed3e1c52a8c78b5038ca5d624360a3eed6f0c705",
|
|
26
24
|
"sourceDirty": false,
|
|
27
|
-
"version": "0.2.
|
|
25
|
+
"version": "0.2.2",
|
|
28
26
|
"protocolVersion": 1,
|
|
27
|
+
"capabilities": [
|
|
28
|
+
"transferable-tx"
|
|
29
|
+
],
|
|
29
30
|
"platform": "win32-arm64",
|
|
30
31
|
"files": {
|
|
31
|
-
"frame-forwarding.node": "
|
|
32
|
-
"dsh_frame_forwarding_sdk.lib": "
|
|
32
|
+
"frame-forwarding.node": "28159458b8e421ad74e5b5bde84fa2ea2ef77f5cd458422cafac5f8e4c0d53bc",
|
|
33
|
+
"dsh_frame_forwarding_sdk.lib": "e1c3f5a995cb742a0b58748a9e70f971dc82db5c7d12359e9b2558271c9ff4a1"
|
|
33
34
|
}
|
|
34
35
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sources": {
|
|
3
|
-
"include/dsh_frame_forwarding.h": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"include/dsh_webgpu.h": "641b5e1f129add0238fd2016ea06c30d737530632045fc76cb885cdf6ef8c3ac",
|
|
7
|
-
"src/node-producer.cc": "92f9a72d76bbf1360b11afc50bc0fd07a3f3e4fa48cbaedb78413eefd9224b66",
|
|
3
|
+
"include/dsh_frame_forwarding.h": "b60cb71c80d0401b89990f8faeb19416ec553b231d9f84c7f06a71d0fe0acd02",
|
|
4
|
+
"src/graphite-interop-internal.hxx": "012bba82e8e0e49f8ed9e62a357d61d5932d248582eafbcd914358d46711bfab",
|
|
5
|
+
"src/node-producer.cc": "69f4dd6499a7af1d0efce3aa78710e6b6d3564363db077d109eb09791cc565cb",
|
|
8
6
|
"src/producer-internal.h": "7ebe4756fa7d693567be6fbff3b25e6c29a3be474f0ac42fd51986ecdd14bc72",
|
|
9
|
-
"src/transport.h": "
|
|
10
|
-
"src/transport.cc": "
|
|
11
|
-
"src/relay-transport.inc": "
|
|
12
|
-
"src/producer.cc": "
|
|
13
|
-
"src/receiver.cc": "
|
|
7
|
+
"src/transport.h": "e844c1ef2efdc490ad0be400d1f45dc31b9b071d9258bca3ca4b27e12ce8b069",
|
|
8
|
+
"src/transport.cc": "c3e752f6213eeeb4070e1885a1fc4b15e9307041834ab8a0f907018107224a8f",
|
|
9
|
+
"src/relay-transport.inc": "3e96b42414c3397ed59fc3323ee29de040f9889c0c474c277e02fd077a92c607",
|
|
10
|
+
"src/producer.cc": "df01da4048d8e7849407708be978e98232a5090fed59afbba617e896f6fad156",
|
|
11
|
+
"src/receiver.cc": "08346d8020744adefdc5e1b59d011f9ecffa6c161bbbd59eed17068d696a301b",
|
|
14
12
|
"src/win-delay-load.cc": "7acf6bad7bdea695163cbf151286787eb0f9144bc53a7a137f3373888c54cb20",
|
|
15
13
|
"src/win-delay-load.LICENSE": "662a1b0115251cfb29c6aed0f221f8847bc49c6365d1c53a62c9f4bccc2489c3",
|
|
16
|
-
"src/
|
|
17
|
-
"CMakeLists.txt": "
|
|
18
|
-
"sdk.json": "
|
|
19
|
-
"scripts/build.mjs": "
|
|
20
|
-
"scripts/metadata.mjs": "
|
|
21
|
-
"scripts/source-identity.mjs": "
|
|
22
|
-
"scripts/build-webgpu.mjs": "
|
|
14
|
+
"src/graphite-interop.cc": "4f2de8e9ad4bd1aef9220c95d3660937980893f12af006116bed720e7dfaf013",
|
|
15
|
+
"CMakeLists.txt": "90e821d3718037a60d989b80bc156cb4cc267d66487139e81cf568cb8a54d344",
|
|
16
|
+
"sdk.json": "e8f6b12f2772ae71aabae2a10616ffc8eb999d33698084522ab8afe82d52e1b9",
|
|
17
|
+
"scripts/build.mjs": "0824c5975106ce2101026d3c7f451643fe28e358b8bff644739fe7614e82c6fa",
|
|
18
|
+
"scripts/metadata.mjs": "dd794ba154b147ee37ce10926fb6fae2bb1f60b3c32c10c14b4b498b8a49d589",
|
|
19
|
+
"scripts/source-identity.mjs": "e8360e59c4c83eeb4110d3a1c278d330f4a2d20b87edefb1f1e527dc17301602",
|
|
20
|
+
"scripts/build-webgpu.mjs": "919d40e78b7f5d3e2a7de6d5d2e46ca4a26bcce18f98abc1220c59f8cb79ebdd",
|
|
23
21
|
"webgpu-dependencies.json": "99fd5b4763f3621ffe72290ca5ddaa9c26f8d2404b54c9158f20f6fd29a403c2"
|
|
24
22
|
},
|
|
25
|
-
"sourceCommit": "
|
|
23
|
+
"sourceCommit": "ed3e1c52a8c78b5038ca5d624360a3eed6f0c705",
|
|
26
24
|
"sourceDirty": false,
|
|
27
|
-
"version": "0.2.
|
|
25
|
+
"version": "0.2.2",
|
|
28
26
|
"protocolVersion": 1,
|
|
27
|
+
"capabilities": [
|
|
28
|
+
"transferable-tx"
|
|
29
|
+
],
|
|
29
30
|
"platform": "win32-x64",
|
|
30
31
|
"files": {
|
|
31
|
-
"frame-forwarding.node": "
|
|
32
|
-
"dsh_frame_forwarding_sdk.lib": "
|
|
32
|
+
"frame-forwarding.node": "db9c21bedc21773284c5832c1925f319f781254f836540b68ca6af03cef51081",
|
|
33
|
+
"dsh_frame_forwarding_sdk.lib": "3f4b81468c5de6df0986259b06d188c7b14a487a2edc6a621911edcd182cf3de"
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@deepseek-ai/libreoffice-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"protocolVersion": 1,
|
|
5
|
+
"capabilities": [
|
|
6
|
+
"transferable-tx"
|
|
7
|
+
],
|
|
5
8
|
"files": {
|
|
6
9
|
"LICENSE": "ebb4f09972aee8608be255debaf78451a68e95c290f55c240dec2ecfa16ea6be",
|
|
7
|
-
"CMakeLists.txt": "
|
|
8
|
-
"sdk.json": "
|
|
9
|
-
"scripts/metadata.mjs": "
|
|
10
|
+
"CMakeLists.txt": "90e821d3718037a60d989b80bc156cb4cc267d66487139e81cf568cb8a54d344",
|
|
11
|
+
"sdk.json": "e8f6b12f2772ae71aabae2a10616ffc8eb999d33698084522ab8afe82d52e1b9",
|
|
12
|
+
"scripts/metadata.mjs": "dd794ba154b147ee37ce10926fb6fae2bb1f60b3c32c10c14b4b498b8a49d589",
|
|
10
13
|
"webgpu-dependencies.json": "99fd5b4763f3621ffe72290ca5ddaa9c26f8d2404b54c9158f20f6fd29a403c2",
|
|
11
|
-
"scripts/build-webgpu.mjs": "
|
|
12
|
-
"include/dsh_frame_forwarding.h": "
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"include/dsh_webgpu.h": "641b5e1f129add0238fd2016ea06c30d737530632045fc76cb885cdf6ef8c3ac",
|
|
16
|
-
"src/producer.cc": "084e8f7133549d7865178632e316fefd01d9aaad9384e838abd482208ce582a3",
|
|
14
|
+
"scripts/build-webgpu.mjs": "919d40e78b7f5d3e2a7de6d5d2e46ca4a26bcce18f98abc1220c59f8cb79ebdd",
|
|
15
|
+
"include/dsh_frame_forwarding.h": "b60cb71c80d0401b89990f8faeb19416ec553b231d9f84c7f06a71d0fe0acd02",
|
|
16
|
+
"src/graphite-interop-internal.hxx": "012bba82e8e0e49f8ed9e62a357d61d5932d248582eafbcd914358d46711bfab",
|
|
17
|
+
"src/producer.cc": "df01da4048d8e7849407708be978e98232a5090fed59afbba617e896f6fad156",
|
|
17
18
|
"src/producer-internal.h": "7ebe4756fa7d693567be6fbff3b25e6c29a3be474f0ac42fd51986ecdd14bc72",
|
|
18
|
-
"src/transport.cc": "
|
|
19
|
-
"src/transport.h": "
|
|
20
|
-
"src/relay-transport.inc": "
|
|
21
|
-
"src/
|
|
19
|
+
"src/transport.cc": "c3e752f6213eeeb4070e1885a1fc4b15e9307041834ab8a0f907018107224a8f",
|
|
20
|
+
"src/transport.h": "e844c1ef2efdc490ad0be400d1f45dc31b9b071d9258bca3ca4b27e12ce8b069",
|
|
21
|
+
"src/relay-transport.inc": "3e96b42414c3397ed59fc3323ee29de040f9889c0c474c277e02fd077a92c607",
|
|
22
|
+
"src/graphite-interop.cc": "4f2de8e9ad4bd1aef9220c95d3660937980893f12af006116bed720e7dfaf013"
|
|
22
23
|
}
|
|
23
24
|
}
|
|
@@ -170,6 +170,7 @@ export async function buildWebGPU({ root = defaultRoot, arch = process.arch, out
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
await cp(join(root, 'LICENSE'), join(output, 'licenses', 'DSH-LICENSE'));
|
|
173
|
+
await rm(join(output, 'include/dsh_webgpu.h'), { force: true });
|
|
173
174
|
const artifacts = await tree(output);
|
|
174
175
|
delete artifacts['receipt.json'];
|
|
175
176
|
for (const [file, hash] of Object.entries(sources))
|
|
@@ -11,7 +11,7 @@ const sdk = updateSdkMetadata(root);
|
|
|
11
11
|
const { sourceCommit, sourceDirty } = frameForwardingSourceIdentity(root);
|
|
12
12
|
const archIndex = process.argv.indexOf('--arch');
|
|
13
13
|
const arch = archIndex < 0 ? process.arch : process.argv[archIndex + 1];
|
|
14
|
-
if (!['arm64', 'x64'].includes(arch) || !['darwin', 'win32'].includes(process.platform)) throw new Error('Unsupported
|
|
14
|
+
if (!['arm64', 'x64'].includes(arch) || !['darwin', 'win32'].includes(process.platform)) throw new Error('Unsupported frame-forwarding build architecture');
|
|
15
15
|
if (process.platform === 'win32' && arch !== process.arch && process.env.VSCMD_ARG_TGT_ARCH !== arch) throw new Error('Windows cross-build requires the matching MSVC developer environment');
|
|
16
16
|
const platform = `${process.platform}-${arch}`;
|
|
17
17
|
const output = resolve(root, 'prebuilds', platform);
|
|
@@ -37,8 +37,8 @@ if (process.platform === 'darwin') {
|
|
|
37
37
|
run('cl', [...common, '/I' + nodeInclude, '/DNAPI_VERSION=8', '/DNODE_GYP_MODULE_NAME=dsh_frame_forwarding', '/LD', '/Fo' + output + '/', 'src/receiver.cc', 'src/node-producer.cc', 'src/producer.cc', 'src/transport.cc', 'src/win-delay-load.cc', '/link', '/DELAYLOAD:node.exe', 'delayimp.lib', '/OUT:' + resolve(output, 'frame-forwarding.node'), nodeLib, 'd3d11.lib', 'dxgi.lib', 'advapi32.lib', 'bcrypt.lib']);
|
|
38
38
|
for (const source of ['producer', 'transport']) run('cl', [...common, '/c', `src/${source}.cc`, '/Fo' + resolve(output, `${source}.obj`)]);
|
|
39
39
|
run('lib', ['/nologo', '/OUT:' + resolve(output, 'dsh_frame_forwarding_sdk.lib'), resolve(output, 'producer.obj'), resolve(output, 'transport.obj')]);
|
|
40
|
-
} else throw new Error(`Unsupported
|
|
40
|
+
} else throw new Error(`Unsupported frame-forwarding platform ${platform}`);
|
|
41
41
|
const files = process.platform === 'darwin' ? ['frame-forwarding.node', 'libdsh_frame_forwarding_sdk.a'] : ['frame-forwarding.node', 'dsh_frame_forwarding_sdk.lib'];
|
|
42
42
|
const hashes = Object.fromEntries(files.map(file => [file, createHash('sha256').update(readFileSync(resolve(output, file))).digest('hex')]));
|
|
43
43
|
const sources = Object.fromEntries(sdk.buildSources.map(file => [file, hashFile(resolve(root, file))]));
|
|
44
|
-
writeFileSync(resolve(output, 'manifest.json'), JSON.stringify({ sources, sourceCommit, sourceDirty, version: sdk.version, protocolVersion: sdk.protocolVersion, platform, files: hashes }, null, 2) + '\n');
|
|
44
|
+
writeFileSync(resolve(output, 'manifest.json'), JSON.stringify({ sources, sourceCommit, sourceDirty, version: sdk.version, protocolVersion: sdk.protocolVersion, capabilities: sdk.capabilities, platform, files: hashes }, null, 2) + '\n');
|