-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathbinding.gyp
35 lines (35 loc) · 912 Bytes
/
binding.gyp
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
34
35
{
'variables': {
'openssl_fips': ''
},
'targets': [
{
'target_name': 'validation',
'sources': [
'src/validation.cc',
'deps/is_utf8/src/is_utf8.cpp'
],
'cflags_cc': ['-std=gnu++11'],
'conditions': [
["OS=='mac'", {
'variables': {
'clang_version':
'<!(cc -v 2>&1 | perl -ne \'print $1 if /clang version ([0-9]+(\\.[0-9]+){2,})/\')'
},
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.7'
},
'conditions': [
# Use Perl v-strings to compare versions.
['clang_version and <!(perl -e \'print <(clang_version) cmp 12.0.0\')==1', {
'xcode_settings': {
'OTHER_CFLAGS': ['-arch arm64'],
'OTHER_LDFLAGS': ['-arch arm64']
}
}]
]
}]
]
}
]
}