annotate nodejs/wscript @ 544:16f4f8305c8f Android_Skia

Start MadButterfly nodejs plugin
author Thinker K.F. Li <thinker@branda.to>
date Fri, 04 Jun 2010 22:29:26 +0800
parents
children 249bcbf07eb0
rev   line source
544
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 srcdir = '.'
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 blddir = 'build'
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3 VERSION = '0.0.1'
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
4
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5 def set_options(opt):
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6 opt.tool_options('compiler_cxx')
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
7 pass
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9 def configure(conf):
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
10 import Options
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11 conf.check_tool('compiler_cxx')
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
12 conf.check_tool('node_addon')
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
13 conf.env.SRCDIR = Options.options.srcdir
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
14 pass
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
15
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
16 def build(conf):
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
17 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon')
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
18 obj.target = 'mbfly'
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
19 obj.source = 'hello.cc'
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
20 pass