| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- {
- 'variables': {
- 'openssl_fips': ''
- },
- 'targets': [{
- 'target_name': 'bindings',
- 'sources': [
- 'src/serialport.cpp'
- ],
- 'include_dirs': ["<!(node -p \"require('node-addon-api').include_dir\")"],
- 'cflags!': [ '-fno-exceptions' ],
- 'cflags_cc!': [ '-fno-exceptions' ],
- "defines": ["NAPI_CPP_EXCEPTIONS"],
- 'conditions': [
- ['OS=="win"',
- {
- 'defines': ['CHECK_NODE_MODULE_VERSION'],
- 'sources': [
- 'src/serialport_win.cpp'
- ],
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- 'ExceptionHandling': '1',
- 'DisableSpecificWarnings': [ '4530', '4506' ],
- }
- }
- }
- ],
- ['OS=="mac"',
- {
- 'sources': [
- 'src/serialport_unix.cpp',
- 'src/poller.cpp',
- 'src/darwin_list.cpp'
- ],
- 'xcode_settings': {
- 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
- 'MACOSX_DEPLOYMENT_TARGET': '10.9',
- 'OTHER_CFLAGS': [
- '-arch x86_64',
- '-arch arm64'
- ],
- 'OTHER_LDFLAGS': [
- '-framework CoreFoundation',
- '-framework IOKit',
- '-arch x86_64',
- '-arch arm64'
- ]
- }
- }
- ],
- ['OS=="linux"',
- {
- 'sources': [
- 'src/serialport_unix.cpp',
- 'src/poller.cpp',
- 'src/serialport_linux.cpp'
- ]
- }
- ],
- ['OS=="android"',
- {
- 'sources': [
- 'src/serialport_unix.cpp',
- 'src/poller.cpp',
- 'src/serialport_linux.cpp'
- ]
- }
- ],
- ['OS!="win"',
- {
- 'sources': [
- 'src/serialport_unix.cpp',
- 'src/poller.cpp'
- ]
- }
- ]
- ]
- }],
- }
|