forked from WiringPi/WiringPi-Node
-
Notifications
You must be signed in to change notification settings - Fork 8
/
binding.gyp
44 lines (40 loc) · 893 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
36
37
38
39
40
41
42
43
44
{
'targets': [
{
'target_name': 'nodeWiringPi',
'sources': [
'src/addon.cc',
'src/wiringPi.cc',
'src/softPwm.cc',
'src/softTone.cc',
'src/wiringPiI2C.cc',
'src/wiringPiISR.cc',
'src/wiringPiSPI.cc',
'src/wiringSerial.cc',
'src/wiringShift.cc',
'src/nodeWiringPi.cc'
],
'include_dirs': [
'wiringPi/wiringPi',
'wiringPi/devLib',
'<!(node -e \"require(\'nan\')\")'
],
'libraries': [
'-lwiringPi',
'-lwiringPiDev'
],
'cflags': [
'-Wall',
'-std=c++11',
],
'conditions': [
[ 'OS=="mac"', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS' : [ '-std=c++11', '-stdlib=libc++'],
'MACOSX_DEPLOYMENT_TARGET': '10.9'
}
}],
],
}
]
}