Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

node-curl, first commit.

  • Loading branch information...
commit 32acb5e84e009d754d8cfe960bc5f6e56ef5c66e 0 parents
@bnoordhuis authored
Showing with 30 additions and 0 deletions.
  1. +2 −0  .gitignore
  2. +15 −0 curl.cc
  3. +13 −0 wscript
2  .gitignore
@@ -0,0 +1,2 @@
+.lock-wscript
+build/
15 curl.cc
@@ -0,0 +1,15 @@
+#include <curl/curl.h>
+#include "node.h"
+
+using namespace v8;
+using namespace node;
+
+namespace {
+
+void RegisterModule(Handle<Object> target) {
+
+}
+
+} // namespace
+
+NODE_MODULE(curl, RegisterModule);
13 wscript
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+
+def set_options(ctx):
+ ctx.tool_options('compiler_cxx')
+
+def configure(ctx):
+ ctx.check_tool('compiler_cxx')
+ ctx.check_tool('node_addon')
+
+def build(ctx):
+ t = ctx.new_task_gen('cxx', 'shlib', 'node_addon')
+ t.target = 'curl'
+ t.source = 'curl.cc'
Please sign in to comment.
Something went wrong with that request. Please try again.