added plataform conditions to binding.gyp\nfixed winsdcard.h references on apple platform
This commit is contained in:
41
binding.gyp
41
binding.gyp
@@ -3,18 +3,35 @@
|
||||
{
|
||||
'target_name': 'pcsclite',
|
||||
'sources': [ 'src/addon.cpp', 'src/pcsclite.cpp', 'src/cardreader.cpp' ],
|
||||
'include_dirs': [
|
||||
'/usr/include/PCSC',
|
||||
'<!(node -e "require(\'nan\')")'
|
||||
],
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-lpcsclite'
|
||||
],
|
||||
'library_dirs': [
|
||||
'/usr/lib'
|
||||
]
|
||||
}
|
||||
'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