Permalink
Browse files

Skeleton.

  • Loading branch information...
0 parents commit 5d08df64ebfa239e1a6299992b341e617e61cc1a @bodil bodil committed Jan 23, 2011
Showing with 29 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +9 −0 libnotify.cc
  3. +18 −0 wscript
@@ -0,0 +1,2 @@
+.lock-wscript
+build
@@ -0,0 +1,9 @@
+#include <v8.h>
+
+using namespace v8;
+
+extern "C" void init(Handle<Object> target) {
+ HandleScope scope;
+ target->Set(String::New("hello"), String::New("world"));
+}
+
18 wscript
@@ -0,0 +1,18 @@
+srcdir = '.'
+blddir = 'build'
+VERSION = '0.0.1'
+
+def set_options(opt):
+ opt.tool_options('compiler_cxx')
+
+def configure(conf):
+ conf.check_tool('compiler_cxx')
+ conf.check_tool('node_addon')
+
+def build(bld):
+ obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
+ obj.target = 'libnotify'
+ obj.source = 'libnotify.cc'
+ obj.uselib = 'notify'
+
+

0 comments on commit 5d08df6

Please sign in to comment.