changeset 638:683889344459

Skeleton of image loader for nodejs
author Thinker K.F. Li <thinker@branda.to>
date Mon, 26 Jul 2010 09:50:44 +0800
parents 714cd6470bd9
children dc32c1c140ae
files nodejs/mbfly_njs.cc nodejs/mbfly_njs.h nodejs/wscript
diffstat 3 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/mbfly_njs.cc	Mon Jul 26 09:39:51 2010 +0800
+++ b/nodejs/mbfly_njs.cc	Mon Jul 26 09:50:44 2010 +0800
@@ -148,6 +148,7 @@
     xnjsmb_shapes_init_mb_rt_temp(mb_rt_func);
     xnjsmb_paints_init_mb_rt_temp(mb_rt_func);
     xnjsmb_font_init_mb_rt_temp(mb_rt_func);
+    xnjsmb_img_ldr_init_mb_rt_temp(mb_rt_func);
     
     target->Set(String::New("mb_rt"), mb_rt_func->GetFunction());    
 }
--- a/nodejs/mbfly_njs.h	Mon Jul 26 09:39:51 2010 +0800
+++ b/nodejs/mbfly_njs.h	Mon Jul 26 09:50:44 2010 +0800
@@ -32,4 +32,8 @@
 /* From font.cc */
 void xnjsmb_font_init_mb_rt_temp(v8::Handle<v8::FunctionTemplate> mb_rt_temp);
 
+/* From image_ldr.cc */
+void
+xnjsmb_img_ldr_init_mb_rt_temp(v8::Handle<v8::FunctionTemplate> mb_rt_temp);
+
 #endif /* __MBFLY_NJS_H_ */
--- a/nodejs/wscript	Mon Jul 26 09:39:51 2010 +0800
+++ b/nodejs/wscript	Mon Jul 26 09:50:44 2010 +0800
@@ -23,7 +23,8 @@
     
     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.source = 'mbfly_njs.cc coord.cc shapes.cc paints.cc font.cc ' + \
+	'image_ldr.cc'
     obj.add_objects = 'X_supp_njs.o'
     obj.staticlib = 'mbfly'