comparison nodejs/wscript @ 546:249bcbf07eb0 Android_Skia

Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
author Thinker K.F. Li <thinker@branda.to>
date Sat, 05 Jun 2010 22:24:04 +0800
parents 16f4f8305c8f
children 371690a166df
comparison
equal deleted inserted replaced
545:49f8f57f184a 546:249bcbf07eb0
2 blddir = 'build' 2 blddir = 'build'
3 VERSION = '0.0.1' 3 VERSION = '0.0.1'
4 4
5 def set_options(opt): 5 def set_options(opt):
6 opt.tool_options('compiler_cxx') 6 opt.tool_options('compiler_cxx')
7 opt.tool_options('compiler_cc')
7 pass 8 pass
8 9
9 def configure(conf): 10 def configure(conf):
10 import Options 11 import Options
11 conf.check_tool('compiler_cxx') 12 conf.check_tool('compiler_cxx')
13 conf.check_tool('compiler_cc')
12 conf.check_tool('node_addon') 14 conf.check_tool('node_addon')
13 conf.env.SRCDIR = Options.options.srcdir 15 conf.env.SRCDIR = Options.options.srcdir
14 pass 16 pass
15 17
16 def build(conf): 18 def build(conf):
19 import os
17 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') 20 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon')
18 obj.target = 'mbfly' 21 obj.target = 'mbfly'
19 obj.source = 'hello.cc' 22 obj.source = 'hello.cc mbfly_njs.cc'
23 obj.add_objects = 'X_supp_njs.o'
24
25 obj = conf.new_task_gen('cc', 'shlib', 'node_addon')
26 obj.target = 'X_supp_njs.o'
27 obj.source = 'X_supp_njs.c'
20 pass 28 pass