Permalink
Browse files

added binding.gyp for node >= 0.8.0

  • Loading branch information...
1 parent d1f6f41 commit ba5630e926bfd0541f6b3bd35784d32a97461500 @9re 9re committed Feb 11, 2013
Showing with 20 additions and 0 deletions.
  1. +6 −0 README.md
  2. +14 −0 binding.gyp
View
@@ -6,6 +6,12 @@ You will need:
Building:
+If you are using node >= v0.8.0
+
+ node-gyp configure && node-gyp build
+
+If you are using node < v0.8.0
+
node-waf configure && node-waf build
Copy Generated library to current directory. Depending on the version of node.js you are using, one of the 2 commands below is the correct one.
View
@@ -0,0 +1,14 @@
+{
+ 'targets' : [
+ {
+ 'target_name' : 'curllib.node',
+ 'type' : 'shared_library',
+ 'sources' : [
+ 'curllib.cc'
+ ],
+ 'libraries' : [
+ '-lcurl'
+ ]
+ }
+ ]
+}

0 comments on commit ba5630e

Please sign in to comment.