Skip to content

Commit

Permalink
Napi porting
Browse files Browse the repository at this point in the history
  • Loading branch information
6sigmadc authored and abbr committed Nov 9, 2019
1 parent 6aebf33 commit 3e48db1
Show file tree
Hide file tree
Showing 5 changed files with 309 additions and 224 deletions.
14 changes: 13 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
"targets": [
{
"target_name": "NodeSSPI",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "10.7",
},
"msvs_settings": {
"VCCLCompilerTool": { "ExceptionHandling": 1 },
},
"sources": [
"src/*.h",
"src/*.cpp",
Expand All @@ -20,7 +29,10 @@
}
},
"include_dirs" : [
"<!(node -e \"require('nan')\")"
"<!@(node -p \"require('node-addon-api').include\")"
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
]
}
]
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"install": "node ./build.js"
},
"dependencies": {
"bindings": "^1.1.1",
"nan": "^2.11.1"
"node-addon-api": "1.7.1",
"bindings": "^1.1.1"
},
"engines": {
"node": ">=4.0.0"
Expand Down
Loading

0 comments on commit 3e48db1

Please sign in to comment.