comparison 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
comparison
equal deleted inserted replaced
555:962d8436a303 556:c9d23f7279a4
7 opt.tool_options('compiler_cc') 7 opt.tool_options('compiler_cc')
8 pass 8 pass
9 9
10 def configure(conf): 10 def configure(conf):
11 import Options 11 import Options
12 import os
13
12 conf.check_tool('compiler_cxx') 14 conf.check_tool('compiler_cxx')
13 conf.check_tool('compiler_cc') 15 conf.check_tool('compiler_cc')
14 conf.check_tool('node_addon') 16 conf.check_tool('node_addon')
15 conf.env.SRCDIR = Options.options.srcdir 17 conf.env.SRCDIR = Options.options.srcdir
18 conf.env.TOP_BUILDDIR = os.environ['TOP_BUILDDIR']
16 pass 19 pass
17 20
18 def build(conf): 21 def build(conf):
19 import os 22 import Utils
23
20 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') 24 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon')
21 obj.target = 'mbfly' 25 obj.target = 'mbfly'
22 obj.source = 'mbfly_njs.cc' 26 obj.source = 'mbfly_njs.cc'
23 obj.add_objects = 'X_supp_njs.o' 27 obj.add_objects = 'X_supp_njs.o'
28 obj.staticlib = 'mbfly'
24 29
25 obj = conf.new_task_gen('cc', 'shlib', 'node_addon') 30 obj = conf.new_task_gen('cc', 'shlib', 'node_addon')
26 obj.target = 'X_supp_njs.o' 31 obj.target = 'X_supp_njs.o'
27 obj.source = 'X_supp_njs.c' 32 obj.source = 'X_supp_njs.c'
28 pass 33 pass