Changeset 19323
- Timestamp:
- 09/15/08 11:16:10 (5 years ago)
- Location:
- lang/cplusplus/fcgi-v8/trunk
- Files:
-
- 5 modified
- 4 moved
-
Sconstruct (modified) (2 diffs)
-
ext/Sconstruct (modified) (3 diffs)
-
ext/fcgi.cc (moved) (moved from lang/cplusplus/fcgi-v8/trunk/src/fcgi.cc)
-
ext/sqlite3-amalgamination.c (moved) (moved from lang/cplusplus/fcgi-v8/trunk/src/sqlite3-amalgamination.c)
-
ext/sqlite3.cc (moved) (moved from lang/cplusplus/fcgi-v8/trunk/src/sqlite3.cc) (2 diffs)
-
ext/sqlite3.h (moved) (moved from lang/cplusplus/fcgi-v8/trunk/src/sqlite3.h)
-
src/llv8call.cc (modified) (1 diff)
-
src/v8-util.h (modified) (1 diff)
-
t/06_sqlite.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/fcgi-v8/trunk/Sconstruct
r19321 r19323 10 10 "file.cc", 11 11 "dir.cc", 12 "sqlite3-amalgamination.c",13 "sqlite3.cc",14 12 ] 15 13 include = ['../v8/include/'] … … 49 47 env.Append(CCFLAGS = ['-DREADLINE_STATIC']) 50 48 51 if conf.CheckLib('fcgi'):52 print "have libfcgi"53 libs.append('fcgi')54 env.Append(CCFLAGS = ['-DHAVE_FCGI'])55 SOURCES.append('fcgi.cc')56 57 49 env.Append(CCFLAGS = ['-g']) 58 50 -
lang/cplusplus/fcgi-v8/trunk/ext/Sconstruct
r19321 r19323 5 5 6 6 env.Append( 7 CPPPATH = ['../../v8/include/' ],7 CPPPATH = ['../../v8/include/', '../src/'], 8 8 LIBPATH = ['../../v8/'], 9 9 ); … … 16 16 ) 17 17 18 if conf.CheckLib('curl') :18 if conf.CheckLib('curl') and conf.CheckLib('iconv'): 19 19 env.SharedLibrary( 20 20 "curl", … … 23 23 ) 24 24 25 if conf.CheckLib('fcgi'): 26 env.SharedLibrary( 27 "fcgi", 28 ['fcgi.cc'], 29 LIBS=['v8', 'fcgi'], 30 ) 31 32 env.SharedLibrary( 33 "sqlite3", 34 ["sqlite3-amalgamination.c", 'sqlite3.cc'], 35 LIBS=['v8'], 36 ) -
lang/cplusplus/fcgi-v8/trunk/ext/sqlite3.cc
r19281 r19323 179 179 180 180 181 void setup_sqlite3(Handle<ObjectTemplate> target) { 181 extern "C" 182 void init_lib(Handle<Object> target) { 182 183 HandleScope scope; 183 184 … … 205 206 target->Set( 206 207 String::New("SQLite3"), 207 ft, 208 PropertyAttribute(ReadOnly | DontDelete) 208 ft->GetFunction() 209 209 ); 210 210 } -
lang/cplusplus/fcgi-v8/trunk/src/llv8call.cc
r19322 r19323 85 85 setup_core(global); 86 86 setup_io(global); 87 setup_sqlite3(global);88 87 #ifdef HAVE_DIR 89 88 setup_dir(global); 90 #endif91 #ifdef HAVE_FCGI92 setup_fcgi(global);93 89 #endif 94 90 -
lang/cplusplus/fcgi-v8/trunk/src/v8-util.h
r19284 r19323 8 8 void setup_curl(v8::Handle<v8::ObjectTemplate> global); 9 9 void setup_sqlite3(v8::Handle<v8::ObjectTemplate> global); 10 #ifdef ENABLE_MEMCACHED11 void setup_memcached(v8::Handle<v8::ObjectTemplate> global);12 #endif13 10 #ifdef HAVE_DIR 14 11 void setup_dir(v8::Handle<v8::ObjectTemplate> global); 15 #endif16 #ifdef HAVE_FCGI17 void setup_fcgi(v8::Handle<v8::ObjectTemplate> global);18 12 #endif 19 13 -
lang/cplusplus/fcgi-v8/trunk/t/06_sqlite.js
r19281 r19323 1 1 require('t/util.js'); 2 3 load_dll("ext/libsqlite3.dylib"); 2 4 3 5 Test.More.plan({tests:8});
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)