fixed parse readers string function
added .editorconfig formatted code updated dependencies improved package.json fixed version number
This commit is contained in:
96
binding.gyp
96
binding.gyp
@@ -1,37 +1,63 @@
|
||||
{
|
||||
'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')\")" ]
|
||||
}]
|
||||
]
|
||||
}
|
||||
]
|
||||
"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')\")"
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user