Mercurial > MadButterfly
comparison nodejs/wscript @ 1067:7b4e80ab671a openvg
merge from default branch
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 01 Dec 2010 12:25:56 +0800 |
parents | 60e7e666a573 |
children | 613a7caa9bd6 |
comparison
equal
deleted
inserted
replaced
630:bd18951b51d5 | 1067:7b4e80ab671a |
---|---|
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 for m in 'observer coord mbfly_njs shapes paints'.split(): | |
25 conf(rule='m4 -I ${SRCDIR}/../tools gen_v8_binding.m4 ${SRC} > ${TGT}', | |
26 source=m+'.m4', target=m+'-inc.h', | |
27 name=m+'-inc', shell=True, always=True, before=['cxx']) | |
28 pass | |
29 | |
24 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') | 30 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') |
25 obj.target = 'mbfly' | 31 obj.target = 'mbfly' |
26 obj.source = 'mbfly_njs.cc coord.cc shapes.cc paints.cc font.cc' | 32 obj.source = 'font.cc image_ldr.cc' |
27 obj.add_objects = 'X_supp_njs.o' | 33 obj.add_objects = 'njs_mb_supp.o observer.o coord.o mbfly_njs.o ' + \ |
34 'shapes.o paints.o' | |
28 obj.staticlib = 'mbfly' | 35 obj.staticlib = 'mbfly' |
36 | |
37 for src in 'observer.cc coord.cc mbfly_njs.cc shapes.cc paints.cc'.split(): | |
38 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') | |
39 obj.target = src[:-3] + '.o' | |
40 obj.source = src | |
41 obj.includes = '.' | |
42 pass | |
29 | 43 |
30 obj = conf.new_task_gen('cc', 'shlib', 'node_addon') | 44 obj = conf.new_task_gen('cc', 'shlib', 'node_addon') |
31 obj.target = 'X_supp_njs.o' | 45 obj.target = 'njs_mb_supp.o' |
32 obj.source = 'X_supp_njs.c' | 46 obj.source = 'njs_mb_supp.c' |
33 pass | 47 pass |