Skip to content

Commit 211ed38

Browse files
Gabriel Schulhofmhdawson
authored andcommitted
src: make 'nothing' target a static library
This avoids the creation of `nothing.node` files in other projects. These files will otherwise be identified as non-N-API modules, even though they are empty. PR-URL: #348 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@NickNaso.local>
1 parent fd3c37b commit 211ed38

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/node_api.gyp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
'targets': [
33
{
4-
'target_name': 'nothing'
4+
'target_name': 'nothing',
5+
'type': 'static_library',
6+
'sources': [ 'nothing.c' ]
57
},
68
{
79
'target_name': 'node-api',

src/nothing.c

Whitespace-only changes.

0 commit comments

Comments
 (0)