diff nodejs/wscript @ 544:16f4f8305c8f Android_Skia

Start MadButterfly nodejs plugin
author Thinker K.F. Li <thinker@branda.to>
date Fri, 04 Jun 2010 22:29:26 +0800
parents
children 249bcbf07eb0
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nodejs/wscript	Fri Jun 04 22:29:26 2010 +0800
@@ -0,0 +1,20 @@
+srcdir = '.'
+blddir = 'build'
+VERSION = '0.0.1'
+
+def set_options(opt):
+    opt.tool_options('compiler_cxx')
+    pass
+
+def configure(conf):
+    import Options
+    conf.check_tool('compiler_cxx')
+    conf.check_tool('node_addon')
+    conf.env.SRCDIR = Options.options.srcdir
+    pass
+
+def build(conf):
+    obj = conf.new_task_gen('cxx', 'shlib', 'node_addon')
+    obj.target = 'mbfly'
+    obj.source = 'hello.cc'
+    pass