Mercurial > MadButterfly
view 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 |
line wrap: on
line source
srcdir = '.' blddir = 'build' VERSION = '0.0.1' def set_options(opt): opt.tool_options('compiler_cxx') opt.tool_options('compiler_cc') pass def configure(conf): import Options conf.check_tool('compiler_cxx') conf.check_tool('compiler_cc') conf.check_tool('node_addon') conf.env.SRCDIR = Options.options.srcdir pass def build(conf): import os obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') obj.target = 'mbfly' obj.source = 'hello.cc mbfly_njs.cc' obj.add_objects = 'X_supp_njs.o' obj = conf.new_task_gen('cc', 'shlib', 'node_addon') obj.target = 'X_supp_njs.o' obj.source = 'X_supp_njs.c' pass