38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
|
{
|
||
|
'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')\")" ]
|
||
|
}]
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|