Changeset 20916 for lang/cplusplus
- Timestamp:
- 10/07/08 19:48:46 (2 months ago)
- Location:
- lang/cplusplus/llv8call/trunk/ext/mysql
- Files:
-
- 2 modified
-
SConscript (modified) (1 diff)
-
mysql.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/trunk/ext/mysql/SConscript
r20031 r20916 1 import platform 2 1 3 Import("env") 2 4 Import("conf") 3 5 4 if conf.CheckLib('mysqlclient'): 5 env.SharedLibrary( 6 "mysql", 7 ['mysql.cc'], 8 LIBS=['v8', 'mysqlclient'], 9 ) 6 if not platform.system() == 'Windows': 7 if conf.CheckLib('mysqlclient'): 8 env.SharedLibrary( 9 "mysql", 10 ['mysql.cc'], 11 LIBS=['v8', 'mysqlclient'], 12 ) 13 else: 14 if conf.CheckLib('mysqlclient'): 15 env.SharedLibrary( 16 "mysql", 17 ['mysql.cc'], 18 LIBS=['v8', 'mysqlclient', 'ws2_32', 'advapi32'], 19 ) -
lang/cplusplus/llv8call/trunk/ext/mysql/mysql.cc
r20816 r20916 4 4 // http://www.python.jp/doc/contrib/peps/pep-0249.txt 5 5 6 #ifdef _WIN32 7 #include <winsock2.h> 8 #include <mysql.h> 9 #else 6 10 #include <mysql/mysql.h> 11 #endif 7 12 #include <v8.h> 8 13 #include <string>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)