Mercurial > MadButterfly
diff nodejs/wscript @ 556:c9d23f7279a4 Android_Skia
The first testcase that nodejs code can show a MadButterfly window.
This testcase call MadButterfly from Javascript with nodejs framework.
The testcase show a MadButterfly window in X.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 06 Jun 2010 19:13:21 +0800 |
parents | 371690a166df |
children | 0ca8437a91fa |
line wrap: on
line diff
--- a/nodejs/wscript Sun Jun 06 15:27:28 2010 +0800 +++ b/nodejs/wscript Sun Jun 06 19:13:21 2010 +0800 @@ -9,18 +9,23 @@ def configure(conf): import Options + import os + conf.check_tool('compiler_cxx') conf.check_tool('compiler_cc') conf.check_tool('node_addon') conf.env.SRCDIR = Options.options.srcdir + conf.env.TOP_BUILDDIR = os.environ['TOP_BUILDDIR'] pass def build(conf): - import os + import Utils + obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') obj.target = 'mbfly' obj.source = 'mbfly_njs.cc' obj.add_objects = 'X_supp_njs.o' + obj.staticlib = 'mbfly' obj = conf.new_task_gen('cc', 'shlib', 'node_addon') obj.target = 'X_supp_njs.o'