mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
- [osx] remove the 0x from productID and locationId and vendorId - [linux] remove the starting 0x from any values, small refactor - [linux] Fixup output using the hex encoded fields - [windows] Grab the serial number from the pnp id - Isolate list functions to their own platform files (c++) - Better ensure our serialports fields are present closes #1220
48 lines
1,001 B
Python
48 lines
1,001 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',
|
|
'src/darwin_list.cpp'
|
|
],
|
|
'xcode_settings': {
|
|
'OTHER_LDFLAGS': [
|
|
'-framework CoreFoundation -framework IOKit'
|
|
]
|
|
}
|
|
}
|
|
],
|
|
['OS!="win"',
|
|
{
|
|
'sources': [
|
|
'src/serialport_unix.cpp',
|
|
'src/poller.cpp'
|
|
]
|
|
}
|
|
]
|
|
]
|
|
}],
|
|
}
|