Mercurial > MadButterfly
comparison nodejs/wscript @ 665:7db0b76c9480
Simplify wscript
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 04 Aug 2010 21:33:43 +0800 |
parents | 90c7726bc953 |
children | 7685c57e29d0 |
comparison
equal
deleted
inserted
replaced
664:08fd45d119c9 | 665:7db0b76c9480 |
---|---|
25 source='observer.m4', target='observer-inc.h', | 25 source='observer.m4', target='observer-inc.h', |
26 name='observer-inc', shell=True, always=True, before=['cxx']) | 26 name='observer-inc', shell=True, always=True, before=['cxx']) |
27 conf(rule='m4 -I ${SRCDIR}/../tools gen_v8_binding.m4 ${SRC} > ${TGT}', | 27 conf(rule='m4 -I ${SRCDIR}/../tools gen_v8_binding.m4 ${SRC} > ${TGT}', |
28 source='coord.m4', target='coord-inc.h', | 28 source='coord.m4', target='coord-inc.h', |
29 name='coord-inc', shell=True, always=True, before=['cxx']) | 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']) | |
30 | 33 |
31 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') | 34 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') |
32 obj.target = 'mbfly' | 35 obj.target = 'mbfly' |
33 obj.source = 'mbfly_njs.cc shapes.cc paints.cc font.cc ' + \ | 36 obj.source = 'shapes.cc paints.cc font.cc ' + \ |
34 'image_ldr.cc' | 37 'image_ldr.cc' |
35 obj.add_objects = 'X_supp_njs.o observer.o coord.o' | 38 obj.add_objects = 'X_supp_njs.o observer.o coord.o mbfly_njs.o' |
36 obj.staticlib = 'mbfly' | 39 obj.staticlib = 'mbfly' |
37 | 40 |
41 for src in 'observer.cc coord.cc mbfly_njs.cc'.split(): | |
42 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') | |
43 obj.target = src[:-3] + '.o' | |
44 obj.source = src | |
45 obj.includes = '.' | |
46 pass | |
47 | |
38 obj = conf.new_task_gen('cc', 'shlib', 'node_addon') | 48 obj = conf.new_task_gen('cc', 'shlib', 'node_addon') |
39 obj.target = 'X_supp_njs.o' | 49 obj.target = 'X_supp_njs.o' |
40 obj.source = 'X_supp_njs.c' | 50 obj.source = 'X_supp_njs.c' |
41 | |
42 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') | |
43 obj.target = 'observer.o' | |
44 obj.source = 'observer.cc' | |
45 obj.includes = '.' | |
46 | |
47 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') | |
48 obj.target = 'coord.o' | |
49 obj.source = 'coord.cc' | |
50 obj.includes = '.' | |
51 pass | 51 pass |