mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
47 lines
966 B
Python
47 lines
966 B
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/poller.cpp'
|
|
],
|
|
'xcode_settings': {
|
|
'OTHER_LDFLAGS': [
|
|
'-framework CoreFoundation -framework IOKit'
|
|
]
|
|
}
|
|
}
|
|
],
|
|
['OS!="win"',
|
|
{
|
|
'sources': [
|
|
'src/serialport_unix.cpp',
|
|
'src/poller.cpp'
|
|
]
|
|
}
|
|
]
|
|
]
|
|
}],
|
|
}
|