-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbinding.gyp
More file actions
33 lines (33 loc) · 1 KB
/
binding.gyp
File metadata and controls
33 lines (33 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
'targets': [
{
'target_name': 'electron_native_auth',
'dependencies': [
"<!(node -p \"require('node-addon-api').targets\"):node_addon_api_except",
],
'cflags_cc': ['-std=c++20'],
'conditions': [
# https://github.com/nodejs/node-addon-api/blob/294a43f8c6a4c79b3295a8f1b83d4782d44cfe74/doc/setup.md
['OS=="mac"', {
'cflags+': ['-fvisibility=hidden'],
'xcode_settings': {
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
}
}],
['OS=="mac"', {
'sources': ['src/addon_mac.mm'],
'xcode_settings': {
'OTHER_CFLAGS': ['-mmacos-version-min=10.15', '-std=c++20'],
'OTHER_LDFLAGS': ['-framework AuthenticationServices'],
'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES',
'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
},
},
# else
{
'sources': ['src/addon_none.cc'],
}],
],
},
],
}