Mercurial > MadButterfly
comparison nodejs/wscript @ 572:dcd7adb2c0fc
Merge from Android_Skia
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 09 Jun 2010 17:30:09 +0800 |
parents | a12c3448afb6 |
children | 97159102f886 |
comparison
equal
deleted
inserted
replaced
463:aa2b388fba4e | 572:dcd7adb2c0fc |
---|---|
1 srcdir = '.' | |
2 blddir = 'build' | |
3 VERSION = '0.0.1' | |
4 | |
5 def set_options(opt): | |
6 opt.tool_options('compiler_cxx') | |
7 opt.tool_options('compiler_cc') | |
8 pass | |
9 | |
10 def configure(conf): | |
11 import Options | |
12 import os | |
13 | |
14 conf.check_tool('compiler_cxx') | |
15 conf.check_tool('compiler_cc') | |
16 conf.check_tool('node_addon') | |
17 conf.env.SRCDIR = Options.options.srcdir | |
18 conf.env.TOP_BUILDDIR = os.environ['TOP_BUILDDIR'] | |
19 pass | |
20 | |
21 def build(conf): | |
22 import Utils | |
23 | |
24 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') | |
25 obj.target = 'mbfly' | |
26 obj.source = 'mbfly_njs.cc coord.cc shapes.cc paints.cc' | |
27 obj.add_objects = 'X_supp_njs.o' | |
28 obj.staticlib = 'mbfly' | |
29 | |
30 obj = conf.new_task_gen('cc', 'shlib', 'node_addon') | |
31 obj.target = 'X_supp_njs.o' | |
32 obj.source = 'X_supp_njs.c' | |
33 pass |