Skip to content

Commit

Permalink
Merge pull request #39 from IngwiePhoenix/master
Browse files Browse the repository at this point in the history
Updating this nice library to be compatible with more modern node, and node-gyp
  • Loading branch information
xk committed Apr 7, 2014
2 parents 1a73ae3 + b86afb5 commit f0dc074
Show file tree
Hide file tree
Showing 8 changed files with 311 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -12,7 +12,8 @@ From source:

git clone http://github.com/xk/node-threads-a-gogo.git
cd node-threads-a-gogo
node-waf configure install
node-gyp rebuild
# It also works with node-waf, but this is outdated, so please use node-gyp nowdays.

To include the module in your project:

Expand Down
16 changes: 16 additions & 0 deletions binding.gyp
@@ -0,0 +1,16 @@
{
"targets": [
{
"target_name": "threads_a_gogo",
#"requires": ["minifier"], |> We dont need this, as the script files are pre-made already.
"sources": [
"src/threads_a_gogo.cc",
# Generated
"src/createPool.js.c",
"src/events.js.c",
"src/load.js.c",
"src/thread_nextTick.js.c"
]
}#,{}
]
}
File renamed without changes.
1 change: 1 addition & 0 deletions lib/index.js
@@ -0,0 +1 @@
module.exports=require("bindings")("threads_a_gogo");
97 changes: 97 additions & 0 deletions node_modules/bindings/README.md

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

159 changes: 159 additions & 0 deletions node_modules/bindings/bindings.js

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

32 changes: 32 additions & 0 deletions node_modules/bindings/package.json

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

5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -26,10 +26,13 @@
"url": "http://github.com/xk/node-threads-a-gogo.git"
},
"scripts": {
"install": "node-waf configure install"
"install": "node-gyp rebuild"
},
"os": ["macos", "linux", "darwin"],
"engines": {
"node": ">=0.5.1"
},
"dependencies": {
"bindings":"*"
}
}

0 comments on commit f0dc074

Please sign in to comment.