Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

81 lines (79 sloc) 2.119 kb
{
'variables': {
'use_udev%': 1,
'use_system_libusb%': 'false',
},
'targets': [
{
'target_name': 'usb_bindings',
'sources': [
'./src/node_usb.cc',
'./src/device.cc',
'./src/transfer.cc',
],
'cflags_cc': [
'-std=c++0x'
],
'defines': [
'_FILE_OFFSET_BITS=64',
'_LARGEFILE_SOURCE',
],
'include_dirs+': [
'src/',
"<!(node -e \"require('nan')\")",
],
'conditions' : [
['use_system_libusb=="false"', {
'dependencies': [
'libusb.gypi:libusb',
],
}],
['use_system_libusb=="true"', {
'include_dirs+': [
'<!@(pkg-config libusb-1.0 --cflags-only-I | sed s/-I//g)'
],
'libraries': [
'<!@(pkg-config libusb-1.0 --libs)'
],
}],
['OS=="mac"', {
'xcode_settings': {
'OTHER_CFLAGS': [ '--std=c++1y' ],
'OTHER_LDFLAGS': [ '-framework', 'CoreFoundation', '-framework', 'IOKit' ],
'SDKROOT': 'macosx',
'MACOSX_DEPLOYMENT_TARGET': '10.5',
},
}],
['OS=="win"', {
'defines':[
'WIN32_LEAN_AND_MEAN'
],
'default_configuration': 'Debug',
'configurations': {
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 1, # static debug
},
},
},
'Release': {
'defines': [ 'NDEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 0, # static release
},
},
}
},
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [ '/EHsc' ],
},
},
}]
]
},
]
}
Jump to Line
Something went wrong with that request. Please try again.