atcheck/lsscanner/new_ubuntu/node_modules_win/pcsclite/binding.gyp

38 lines
1.2 KiB
Python
Executable File

{
'targets': [
{
'target_name': 'pcsclite',
'sources': [ 'src/addon.cpp', 'src/pcsclite.cpp', 'src/cardreader.cpp' ],
'cflags': [
'-Wall',
'-Wextra',
'-Wno-unused-parameter',
'-fPIC',
'-fno-strict-aliasing',
'-fno-exceptions',
'-pedantic'
],
'conditions': [
['OS=="linux"', {
'include_dirs': [
'/usr/include/PCSC',
'<!(node -e "require(\'nan\')")'
],
'link_settings': {
'libraries': [ '-lpcsclite' ],
'library_dirs': [ '/usr/lib' ]
}
}],
['OS=="mac"', {
'libraries': ['-framework', 'PCSC'],
"include_dirs" : [ "<!(node -e \"require('nan')\")" ]
}],
['OS=="win"', {
'libraries': ['-lWinSCard'],
"include_dirs" : [ "<!(node -e \"require('nan')\")" ]
}]
]
}
]
}