annotate nodejs/wscript @ 546:249bcbf07eb0 Android_Skia

Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
author Thinker K.F. Li <thinker@branda.to>
date Sat, 05 Jun 2010 22:24:04 +0800
parents 16f4f8305c8f
children 371690a166df
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')
546
249bcbf07eb0 Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
Thinker K.F. Li <thinker@branda.to>
parents: 544
diff changeset
7 opt.tool_options('compiler_cc')
544
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8 pass
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
10 def configure(conf):
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11 import Options
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
12 conf.check_tool('compiler_cxx')
546
249bcbf07eb0 Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
Thinker K.F. Li <thinker@branda.to>
parents: 544
diff changeset
13 conf.check_tool('compiler_cc')
544
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
14 conf.check_tool('node_addon')
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
15 conf.env.SRCDIR = Options.options.srcdir
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
16 pass
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
17
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
18 def build(conf):
546
249bcbf07eb0 Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
Thinker K.F. Li <thinker@branda.to>
parents: 544
diff changeset
19 import os
544
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
20 obj = conf.new_task_gen('cxx', 'shlib', 'node_addon')
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
21 obj.target = 'mbfly'
546
249bcbf07eb0 Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
Thinker K.F. Li <thinker@branda.to>
parents: 544
diff changeset
22 obj.source = 'hello.cc mbfly_njs.cc'
249bcbf07eb0 Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
Thinker K.F. Li <thinker@branda.to>
parents: 544
diff changeset
23 obj.add_objects = 'X_supp_njs.o'
249bcbf07eb0 Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
Thinker K.F. Li <thinker@branda.to>
parents: 544
diff changeset
24
249bcbf07eb0 Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
Thinker K.F. Li <thinker@branda.to>
parents: 544
diff changeset
25 obj = conf.new_task_gen('cc', 'shlib', 'node_addon')
249bcbf07eb0 Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
Thinker K.F. Li <thinker@branda.to>
parents: 544
diff changeset
26 obj.target = 'X_supp_njs.o'
249bcbf07eb0 Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
Thinker K.F. Li <thinker@branda.to>
parents: 544
diff changeset
27 obj.source = 'X_supp_njs.c'
544
16f4f8305c8f Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
28 pass