Skip to content

Commit 947f5f5

Browse files
save file
1 parent 8b43ae0 commit 947f5f5

1 file changed

Lines changed: 66 additions & 60 deletions

File tree

blog/26-04-16/node-gyp-always-on-top/node-gyp-always-on-top.html

Lines changed: 66 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@
5353

5454

5555
var data = {
56-
'always-on-top.cpp' : null,
57-
'always-on-top.js' : null,
58-
'binding.gyp' : null,
59-
'node_modules' : {},
56+
'always-on-top' : {
57+
'always-on-top.cpp' : null,
58+
'always-on-top.js' : null,
59+
'binding.gyp' : null,
60+
'node_modules' : {},
61+
}
6062
};
6163

6264
var ndata = project.build(data);
@@ -214,90 +216,84 @@ <h1 slot=title>
214216
<br>
215217

216218
from the installer you will need
217-
</p>
218-
219-
<br>
220-
<br>
221-
222-
<p>
223-
224-
<b>
225-
C++ x64/x86 build tools
226-
</b>
227-
228-
<br>
229-
230-
Go to the Workloads tab select : Desktop development with C++
231-
232-
233-
234-
<br>
235-
<br>
236-
237-
<!--
238-
MSVC v14.x C++ Build Tools
239-
240-
Windows 10 SDK (or Windows 11 SDK — either works)
241-
242-
MSBuild
243-
244-
C++ x64/x86 build tools
245-
-->
246-
247-
248-
When installing Visual Studio Build Tools, you'll find tick boxes on the right, you only need:
249219

250220
<br>
251221
<br>
252222

253223
<b>
254-
MSVC v14.x C++ Build Tools
224+
C++ x64/x86 build tools
255225
</b>
256226

257227
<br>
258228

259-
This gives you:
229+
Go to the Workloads tab, select :
260230

261231
<br>
262232

263-
cl.exe (the compiler)
233+
Desktop development with C++
264234

265-
<br>
266235

267-
link.exe (the linker)
268236

269237
<br>
270238
<br>
271239

272-
Standard C++ headers
240+
When installing Visual Studio Build Tools, you'll find tick boxes on the right, you only need:
273241

274242
<br>
275243
<br>
276244

277245
<b>
278-
Windows 10/11 SDK (any version)
246+
MSVC v14.x C++ Build Tools
279247
</b>
280248

281249
<br>
282250

283251
This gives you:
284252

253+
</p>
254+
255+
<ul>
256+
<li>
257+
cl.exe (the compiler)
258+
</li>
259+
<li>
260+
link.exe (the linker)
261+
</li>
262+
<li>
263+
Standard C++ headers
264+
</li>
265+
</ul>
266+
267+
<p>
268+
285269
<br>
286270

287-
user32.lib (for RegisterHotKey, SetWindowPos, etc.)
288-
289-
<br>
290-
291-
kernel32.lib
292-
293-
<br>
294-
295-
windows.h
271+
<b>
272+
Windows 10/11 SDK (any version)
273+
</b>
296274

297275
<br>
298276

299-
Win32 API headers
277+
This gives you:
300278

279+
</p>
280+
281+
<ul>
282+
<li>
283+
user32.lib (for RegisterHotKey, SetWindowPos, etc.)
284+
</li>
285+
<li>
286+
kernel32.lib
287+
</li>
288+
<li>
289+
windows.h
290+
</li>
291+
<li>
292+
Win32 API headers
293+
</li>
294+
</ul>
295+
296+
<p>
301297
<br>
302298

303299
That’s it.
@@ -352,11 +348,6 @@ <h1 slot=title>
352348
</ul>
353349

354350

355-
<div class=blog-hdr>
356-
What it contains
357-
</div>
358-
359-
360351
<p>
361352
Inside node-addon-api, you’ll find:
362353
</p>
@@ -399,7 +390,7 @@ <h1 slot=title>
399390

400391

401392
<p>
402-
The addon compiles these headers into your .node binary.
393+
The node-addon-api compiles these headers into your .node binary.
403394

404395
<br>
405396

@@ -426,6 +417,10 @@ <h1 slot=title>
426417

427418
<p>
428419

420+
from the project root directory
421+
422+
<br>
423+
429424
<code>
430425

431426
node-gyp configure
@@ -440,13 +435,24 @@ <h1 slot=title>
440435

441436
</p>
442437

438+
<p>
439+
no errors? run the tool
440+
441+
<code>
442+
443+
node always-on-top.js
444+
445+
</code>
446+
447+
</p>
448+
443449
</div>
444450

445451

446452
<div class=blog-text>
447453

448454
<div class=blog-hdr>
449-
Minimum Configuration
455+
Minimal Configuration
450456
</div>
451457

452458
<p>

0 commit comments

Comments
 (0)