comparison nodejs/wscript @ 651:aa52883534fc

Code generated by generator can be built
author Thinker K.F. Li <thinker@branda.to>
date Sat, 31 Jul 2010 13:28:48 +0800
parents 683889344459
children 90c7726bc953
comparison
equal deleted inserted replaced
650:123e7eeff10c 651:aa52883534fc
13 13
14 conf.check_tool('compiler_cxx') 14 conf.check_tool('compiler_cxx')
15 conf.check_tool('compiler_cc') 15 conf.check_tool('compiler_cc')
16 conf.check_tool('node_addon') 16 conf.check_tool('node_addon')
17 conf.env.SRCDIR = Options.options.srcdir 17 conf.env.SRCDIR = Options.options.srcdir
18 conf.env.TOP_BUILDDIR = os.environ['TOP_BUILDDIR'] 18 conf.env.TOP_BUILDDIR = os.environ['TOP_BUILDDIR']
19 pass 19 pass
20 20
21 def build(conf): 21 def build(conf):
22 import Utils 22 import Utils
23 23
24 conf(rule='m4 -I ${SRCDIR}/../tools gen_v8_binding.m4 ${SRC} > ${TGT}',
25 source='observer.m4', target='observer-inc.h',
26 name='observer-inc', shell=True, always=True, before=['cxx'])
27
24 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') 28 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon')
25 obj.target = 'mbfly' 29 obj.target = 'mbfly'
26 obj.source = 'mbfly_njs.cc coord.cc shapes.cc paints.cc font.cc ' + \ 30 obj.source = 'mbfly_njs.cc coord.cc shapes.cc paints.cc font.cc ' + \
27 'image_ldr.cc' 31 'image_ldr.cc'
28 obj.add_objects = 'X_supp_njs.o' 32 obj.add_objects = 'X_supp_njs.o observer.o'
29 obj.staticlib = 'mbfly' 33 obj.staticlib = 'mbfly'
30 34
31 obj = conf.new_task_gen('cc', 'shlib', 'node_addon') 35 obj = conf.new_task_gen('cc', 'shlib', 'node_addon')
32 obj.target = 'X_supp_njs.o' 36 obj.target = 'X_supp_njs.o'
33 obj.source = 'X_supp_njs.c' 37 obj.source = 'X_supp_njs.c'
38
39 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon')
40 obj.target = 'observer.o'
41 obj.source = 'observer.cc'
42 obj.includes = '.'
34 pass 43 pass