comparison nodejs/wscript @ 687:da12923a789a

Migrate paints.cc to use gen_v8_binding.m4
author Thinker K.F. Li <thinker@branda.to>
date Sat, 07 Aug 2010 21:37:57 +0800
parents 7685c57e29d0
children 60e7e666a573
comparison
equal deleted inserted replaced
686:ddce24029561 687:da12923a789a
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}', 24 for m in 'observer coord mbfly_njs shapes paints'.split():
25 source='observer.m4', target='observer-inc.h', 25 conf(rule='m4 -I ${SRCDIR}/../tools gen_v8_binding.m4 ${SRC} > ${TGT}',
26 name='observer-inc', shell=True, always=True, before=['cxx']) 26 source=m+'.m4', target=m+'-inc.h',
27 conf(rule='m4 -I ${SRCDIR}/../tools gen_v8_binding.m4 ${SRC} > ${TGT}', 27 name=m+'-inc', shell=True, always=True, before=['cxx'])
28 source='coord.m4', target='coord-inc.h', 28 pass
29 name='coord-inc', shell=True, always=True, before=['cxx'])
30 conf(rule='m4 -I ${SRCDIR}/../tools gen_v8_binding.m4 ${SRC} > ${TGT}',
31 source='mbfly_njs.m4', target='mbfly_njs-inc.h',
32 name='mbfly_njs-inc', shell=True, always=True, before=['cxx'])
33 conf(rule='m4 -I ${SRCDIR}/../tools gen_v8_binding.m4 ${SRC} > ${TGT}',
34 source='shapes.m4', target='shapes-inc.h',
35 name='shapes-inc', shell=True, always=True, before=['cxx'])
36 29
37 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') 30 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon')
38 obj.target = 'mbfly' 31 obj.target = 'mbfly'
39 obj.source = 'paints.cc font.cc image_ldr.cc' 32 obj.source = 'font.cc image_ldr.cc'
40 obj.add_objects = 'X_supp_njs.o observer.o coord.o mbfly_njs.o shapes.o' 33 obj.add_objects = 'X_supp_njs.o observer.o coord.o mbfly_njs.o ' + \
34 'shapes.o paints.o'
41 obj.staticlib = 'mbfly' 35 obj.staticlib = 'mbfly'
42 36
43 for src in 'observer.cc coord.cc mbfly_njs.cc shapes.cc'.split(): 37 for src in 'observer.cc coord.cc mbfly_njs.cc shapes.cc paints.cc'.split():
44 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') 38 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon')
45 obj.target = src[:-3] + '.o' 39 obj.target = src[:-3] + '.o'
46 obj.source = src 40 obj.source = src
47 obj.includes = '.' 41 obj.includes = '.'
48 pass 42 pass