Mercurial > MadButterfly
view nodejs/wscript @ 601:8863d23cea4b openvg
Load images with Imlib2.
Image loader, now, use Imlib2 to load images into ARGB 32bits pixels.
It can load png, jpg, bmp, tiff, ...., etc.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 02 Jul 2010 11:59:17 +0800 |
parents | 97159102f886 |
children | 683889344459 |
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 import os conf.check_tool('compiler_cxx') conf.check_tool('compiler_cc') conf.check_tool('node_addon') conf.env.SRCDIR = Options.options.srcdir conf.env.TOP_BUILDDIR = os.environ['TOP_BUILDDIR'] pass def build(conf): import Utils obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') obj.target = 'mbfly' obj.source = 'mbfly_njs.cc coord.cc shapes.cc paints.cc font.cc' obj.add_objects = 'X_supp_njs.o' obj.staticlib = 'mbfly' obj = conf.new_task_gen('cc', 'shlib', 'node_addon') obj.target = 'X_supp_njs.o' obj.source = 'X_supp_njs.c' pass