Skip to content

Commit

Permalink
fix: key for wapping drawing's system condition (nodejs#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
kecsou authored and Deepak Rajamohan committed Oct 15, 2021
1 parent 3170a69 commit cc8534f
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 cc8534f

Please sign in to comment.