mirror of
https://github.com/LukeHagar/yotocol.git
synced 2025-12-06 04:22:12 +00:00
64 lines
968 B
Python
64 lines
968 B
Python
{
|
|
"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')\")"
|
|
]
|
|
}
|
|
]
|
|
]
|
|
}
|
|
]
|
|
}
|