mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Add fallback to buil to node-pre-gyp install command, in case remote binary download fails. Added travis automated binary build, to generate and pubslish the serialport packages. Publish binaries adding `[publish binary]` to a commit message or by adding a release tag. Add travis automated build for x86 32 bit binaries.[publish binary]
62 lines
1.4 KiB
Python
62 lines
1.4 KiB
Python
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'serialport',
|
|
'sources': [
|
|
'src/serialport.cpp',
|
|
],
|
|
'include_dirs': [
|
|
'<!(node -e "require(\'nan\')")'
|
|
],
|
|
'conditions': [
|
|
['OS=="win"',
|
|
{
|
|
'sources': [
|
|
'src/serialport_win.cpp',
|
|
'src/win/disphelper.c',
|
|
'src/win/enumser.cpp',
|
|
],
|
|
'msvs_settings': {
|
|
'VCCLCompilerTool': {
|
|
'ExceptionHandling': '2',
|
|
'DisableSpecificWarnings': [ '4530', '4506' ],
|
|
},
|
|
},
|
|
},
|
|
],
|
|
['OS=="mac"',
|
|
{
|
|
'sources': [
|
|
'src/serialport_unix.cpp',
|
|
'src/serialport_poller.cpp',
|
|
],
|
|
'xcode_settings': {
|
|
'OTHER_LDFLAGS': [
|
|
'-framework CoreFoundation -framework IOKit'
|
|
]
|
|
}
|
|
}
|
|
],
|
|
['OS!="win"',
|
|
{
|
|
'sources': [
|
|
'src/serialport_unix.cpp',
|
|
'src/serialport_poller.cpp',
|
|
],
|
|
}
|
|
],
|
|
],
|
|
},
|
|
{
|
|
"target_name": "action_after_build",
|
|
"type": "none",
|
|
"dependencies": [ "<(module_name)" ],
|
|
"copies": [
|
|
{
|
|
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
|
|
"destination": "<(module_path)"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
}
|