Changeset 19321
- Timestamp:
- 09/15/08 10:31:26 (5 years ago)
- Location:
- lang/cplusplus/fcgi-v8/trunk
- Files:
-
- 4 modified
- 1 moved
-
Sconstruct (modified) (2 diffs)
-
ext/Sconstruct (modified) (2 diffs)
-
ext/curl.cc (moved) (moved from lang/cplusplus/fcgi-v8/trunk/src/urlfetch.cc) (2 diffs)
-
src/llv8call.cc (modified) (1 diff)
-
t/02_urlfetch.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/fcgi-v8/trunk/Sconstruct
r19319 r19321 8 8 "util.cc", 9 9 "core.cc", 10 "urlfetch.cc",11 10 "file.cc", 12 11 "dir.cc", … … 29 28 OS_GUESS = GuessOS() 30 29 31 libs=['v8', 'pthread' , 'curl']30 libs=['v8', 'pthread'] 32 31 33 32 if OS_GUESS == 'win32': -
lang/cplusplus/fcgi-v8/trunk/ext/Sconstruct
r19319 r19321 3 3 env = Environment() 4 4 conf = Configure(env) 5 include = ['../../v8/include/'] 5 6 env.Append( 7 CPPPATH = ['../../v8/include/'], 8 LIBPATH = ['../../v8/'], 9 ); 6 10 7 11 if conf.CheckLib('memcached'): … … 10 14 ['libmemcached.cc'], 11 15 LIBS=['v8', 'memcached'], 12 CPPPATH=include,13 LIBPATH=['../../v8/'],14 16 ) 15 17 18 if conf.CheckLib('curl'): 19 env.SharedLibrary( 20 "curl", 21 ['curl.cc'], 22 LIBS=['v8', 'curl', 'iconv'], 23 ) 24 -
lang/cplusplus/fcgi-v8/trunk/ext/curl.cc
r19067 r19321 6 6 #include <iconv.h> 7 7 #include <errno.h> 8 #include "v8-util.h"9 8 10 9 #ifdef _WIN32 … … 215 214 } 216 215 217 void setup_curl(v8::Handle<v8::ObjectTemplate> target) { 218 target->Set(v8::String::New("urlfetch"), v8::FunctionTemplate::New(UrlFetch)); 219 } 220 216 extern "C" 217 void init_lib(v8::Handle<v8::Object> target) { 218 target->Set(v8::String::New("urlfetch"), v8::FunctionTemplate::New(UrlFetch)->GetFunction()); 219 } 220 -
lang/cplusplus/fcgi-v8/trunk/src/llv8call.cc
r19281 r19321 85 85 setup_core(global); 86 86 setup_io(global); 87 setup_curl(global);88 87 setup_sqlite3(global); 89 88 #ifdef ENABLE_MEMCACHED -
lang/cplusplus/fcgi-v8/trunk/t/02_urlfetch.js
r19071 r19321 2 2 3 3 Test.More.plan({tests:1}); 4 5 if (!File.isFile("ext/libcurl.dylib")) { 6 try { 7 Test.More.skipRest("this test requires memcached"); 8 } catch(e) { 9 } 10 } else { 11 load_dll("ext/libcurl.dylib"); 12 } 13 4 14 var t = urlfetch("http://search.cpan.org/").responseText; 5 15 Test.More.like(t, /Perl6/i);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)