Skip to content

Commit

Permalink
fix: key for wapping drawing's system condition (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
kecsou authored Apr 16, 2021
1 parent 1c9d528 commit 8f120b0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions doc/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ To use **Node-API** in a native module:
following settings in the `binding.gyp` file:

```gyp
['OS=="mac"', {
'cflags+': ['-fvisibility=hidden'],
'xcode_settings': {
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
}
}]
'conditions': [
['OS=="mac"', {
'cflags+': ['-fvisibility=hidden'],
'xcode_settings': {
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
}
}]
]
```

5. Include `napi.h` in the native module code.
Expand Down

0 comments on commit 8f120b0

Please sign in to comment.