forked from balthisar/cncjs-pendant-gamepad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
38 lines (38 loc) · 975 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
{
'variables': {
'gamepad_dir%': 'vendor/gamepad/source/gamepad'
},
'targets': [
{
'target_name': 'gamepad',
'sources': [
'binding.cc',
'<(gamepad_dir)/Gamepad_private.c',
],
'conditions': [
['OS == "linux"', { 'sources': [ '<(gamepad_dir)/Gamepad_linux.c' ]}],
['OS == "mac"', {
'sources': [ '<(gamepad_dir)/Gamepad_macosx.c' ],
'LDFLAGS': [
'-framework IOKit',
'-framework CoreFoundation'
],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'OTHER_LDFLAGS': [
'-framework IOKit',
'-framework CoreFoundation'
],
}
}],
['OS == "win"', { 'sources': [
'<(gamepad_dir)/Gamepad_windows_dinput.c'
]}]
],
'include_dirs': [
'./vendor/gamepad/source',
"<!(node -e \"require('nan')\")"
],
}
]
}