Mercurial > MadButterfly
changeset 547:371690a166df Android_Skia
Remove hello.c and initial plugin at mbfly_njs.cc
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 05 Jun 2010 22:29:22 +0800 |
parents | 249bcbf07eb0 |
children | f69b0814ef3c |
files | nodejs/Makefile.am nodejs/hello.cc nodejs/mbfly_njs.cc nodejs/wscript |
diffstat | 4 files changed, 11 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/nodejs/Makefile.am Sat Jun 05 22:24:04 2010 +0800 +++ b/nodejs/Makefile.am Sat Jun 05 22:29:22 2010 +0800 @@ -1,5 +1,5 @@ -mbfly_node_SRCS = hello.cc +mbfly_node_SRCS = mbfly_njs.cc X_supp_njs.c mbfly_node_CFLAGS= -I$(abs_top_srcdir)/include -I$(prefix)/include \ @pangocairo_CFLAGS@ $(CFLAGS)
--- a/nodejs/hello.cc Sat Jun 05 22:24:04 2010 +0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -#include <v8.h> - -using namespace v8; - -extern "C" void -init(Handle<Object> target) { - HandleScope scope; - - target->Set(String::New("Hello"), String::New("World")); -}
--- a/nodejs/mbfly_njs.cc Sat Jun 05 22:24:04 2010 +0800 +++ b/nodejs/mbfly_njs.cc Sat Jun 05 22:29:22 2010 +0800 @@ -1,2 +1,11 @@ #include <stdio.h> +#include <v8.h> +using namespace v8; + +extern "C" void +init(Handle<Object> target) { + HandleScope scope; + + target->Set(String::New("Hello"), String::New("World")); +}
--- a/nodejs/wscript Sat Jun 05 22:24:04 2010 +0800 +++ b/nodejs/wscript Sat Jun 05 22:29:22 2010 +0800 @@ -19,7 +19,7 @@ import os obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') obj.target = 'mbfly' - obj.source = 'hello.cc mbfly_njs.cc' + obj.source = 'mbfly_njs.cc' obj.add_objects = 'X_supp_njs.o' obj = conf.new_task_gen('cc', 'shlib', 'node_addon')