Skip to content

Commit 8f120b0

Browse files
authored
fix: key for wapping drawing's system condition (#970)
1 parent 1c9d528 commit 8f120b0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

doc/setup.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ To use **Node-API** in a native module:
5858
following settings in the `binding.gyp` file:
5959

6060
```gyp
61-
['OS=="mac"', {
62-
'cflags+': ['-fvisibility=hidden'],
63-
'xcode_settings': {
64-
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
65-
}
66-
}]
61+
'conditions': [
62+
['OS=="mac"', {
63+
'cflags+': ['-fvisibility=hidden'],
64+
'xcode_settings': {
65+
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
66+
}
67+
}]
68+
]
6769
```
6870

6971
5. Include `napi.h` in the native module code.

0 commit comments

Comments
 (0)