node-serialport-bindings-cpp/binding.gyp
Anton Litvinov f24110b196
Refactoring of EIO_List for Windows: … (#1019)
* Refactoring of EIO_List for Windows:  …
1. use single API -- SetupAPI directly without COM-object
2. supply ResultItem with vendorId, productId and locationId (issue #877)
3. solve problem with pnpId not being returned on some systems
2016-11-27 22:09:24 -05:00

49 lines
1.1 KiB
Python

{
'targets': [
{
'target_name': 'serialport',
'sources': [
'src/serialport.cpp',
],
'include_dirs': [
'<!(node -e "require(\'nan\')")'
],
'conditions': [
['OS=="win"',
{
'sources': [
'src/serialport_win.cpp'
],
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': '2',
'DisableSpecificWarnings': [ '4530', '4506' ],
},
},
},
],
['OS=="mac"',
{
'sources': [
'src/serialport_unix.cpp',
'src/read-poller.cpp',
],
'xcode_settings': {
'OTHER_LDFLAGS': [
'-framework CoreFoundation -framework IOKit'
]
}
}
],
['OS!="win"',
{
'sources': [
'src/serialport_unix.cpp',
'src/read-poller.cpp',
],
}
],
],
}
],
}